Action
Primary button
Use the controls above or point to and press the button to inspect its visual states.
Color reference
Soft Mid-light Yellow
This is a soft, mid-light yellow under the deterministic OKLCH hue, lightness, and chroma ranges. Its closest standardized CSS named color is Dark Goldenrod (#B8860B), measured with straight-line OKLab distance.
Copyable values
Values are calculated from the same opaque sRGB color. Display rounding does not alter the internal calculations.
| Format | Value | Action |
|---|---|---|
| HEX | #AD944A |
|
| RGB | rgb(173 148 74) |
|
| HSL | hsl(45 40.08% 48.43%) |
|
| HSV | hsv(45 57.23% 67.84%) |
|
| HWB | hwb(45 29.02% 32.16%) |
|
| XYZ D65 | color(xyz-d65 0.290585 0.305591 0.108467) |
|
| LAB | lab(62.4591% 2.8858 42.0847) |
|
| LCH | lch(62.4591% 42.1835 86.0773) |
|
| OKLAB | oklab(67.3667% -0.001633 0.098364) |
|
| OKLCH | oklch(67.3667% 0.098377 90.9509) |
Real-world test
Preview the source as a primary action, subtle status, form treatment, and card surface. Persistent state controls help touch and keyboard users inspect the same normal, hover, and active colors.
Action
Use the controls above or point to and press the button to inspect its visual states.
Status
A 12% source tint over white provides the background; readable text is selected separately.
Form
Source ring on white: 2.95:1 · does not meet the 3:1 non-text threshold where applicable.
Surface
The selected state becomes the card surface with its strongest black-or-white text pairing.
Accessibility diagnostics
Each result applies only to the named foreground, background, text size, and requirement. It is not a complete accessibility or component-conformance claim.
On white
On black
Use guidance
Not recommended
#AD944A does not reach 4.5:1 on white or Hue Codex paper, so it should not be used there for normal-sized text.
Needs a boundary
Against Hue Codex paper, the color reaches only 2.83:1. Use a contrasting border or another non-color boundary for meaningful controls and graphics.
Readable pairing available
Black text provides the stronger black/white pairing on #AD944A at 7.11:1. This validates only that text pair, not hover, focus, disabled, or adjacent-color states.
Distinctive accent
Its OKLCH chroma of 0.0984 gives it enough visual presence for an accent or primary role when the tested foreground and neighboring colors pass.
Pair available
The stronger black/white background is black at 7.11:1. Always retest against the actual rendered background and text size.
Tested backgrounds
| Pair | Background | Contrast ratio |
|---|---|---|
| Black#000000 | 7.11:1 | |
| Hue Codex ink#10212B | 5.58:1 | |
| White#FFFFFF | 2.95:1 | |
| Hue Codex paper#FBFAF5 | 2.83:1 | |
| Soft neutral#F2EFE6 | 2.57:1 |
Design-system starting point
The source color is preserved at the nearest lightness step. Other swatches keep its OKLCH hue, moderate chroma toward the extremes, and reduce chroma only when needed to remain in sRGB.
This is a Hue Codex reference scale, not a claim that the values match Tailwind, Material, or another framework’s named palette.
Adjust the #AD944A scale in Tints, Shades & TonesColor relationships
Hue rotations use OKLCH while preserving lightness and requested chroma. When a rotated result falls outside sRGB, chroma is reduced deterministically and disclosed.
Applied pairing
The source anchors the main action while the complement marks a secondary status. Contrast is selected separately for each fill.
Distance matching
Matches use straight-line OKLab distance ×100. A smaller value means the coordinates are closer in this model; it is not a claim that two tokens are interchangeable in a design system.
CSS named color
#B8860B OKLab distance ×100: 4.43
Tailwind v4 default
oklch(68.1% 0.162 75.834)
OKLab distance ×100: 7.21 · sRGB preview #D08700
Print boundary
Reliable print matching needs licensed reference data plus a defined ink, paper, profile, and viewing condition.
Read the print methodologyColor-vision screening
These encoded-sRGB matrix previews are screening approximations. They help reveal possible color-only distinctions but do not reproduce every person’s vision or establish accessibility conformance.
Red-vision deficiency approximation
Green-vision deficiency approximation
Blue-yellow deficiency approximation
Monochromatic-vision approximation
Ready to use
Exports preserve the source, readable foreground, and generated 50–900 scale. Tailwind v4 CSS-first and Tailwind v3 JavaScript-config formats are labeled separately.
Semantic aliases and the complete 50–900 scale.
:root {
--color-primary: #AD944A;
--color-on-primary: #000000;
--color-primary-oklch: oklch(67.3667% 0.098377 90.9509);
--color-primary-50: #FFF5D8;
--color-primary-100: #EFDDAB;
--color-primary-200: #D7C389;
--color-primary-300: #C0A967;
--color-primary-400: #AD944A;
--color-primary-500: #8F7831;
--color-primary-600: #77611A;
--color-primary-700: #5F4B00;
--color-primary-800: #453600;
--color-primary-900: #2E2300;
}
Current @theme syntax for bg-brand, text-brand, and scale utilities.
@import "tailwindcss";
@theme {
--color-brand: #AD944A;
--color-brand-foreground: #000000;
--color-brand-50: #FFF5D8;
--color-brand-100: #EFDDAB;
--color-brand-200: #D7C389;
--color-brand-300: #C0A967;
--color-brand-400: #AD944A;
--color-brand-500: #8F7831;
--color-brand-600: #77611A;
--color-brand-700: #5F4B00;
--color-brand-800: #453600;
--color-brand-900: #2E2300;
}
CommonJS theme.extend.colors for JavaScript-config projects.
module.exports = {
theme: {
extend: {
colors: {
brand: {
'50': '#FFF5D8',
'100': '#EFDDAB',
'200': '#D7C389',
'300': '#C0A967',
'400': '#AD944A',
'500': '#8F7831',
'600': '#77611A',
'700': '#5F4B00',
'800': '#453600',
'900': '#2E2300',
DEFAULT: '#AD944A',
foreground: '#000000',
},
},
},
},
};
Semantic source, foreground, OKLCH, and scale variables.
$color-primary: #AD944A;
$color-on-primary: #000000;
$color-primary-oklch: oklch(67.3667% 0.098377 90.9509);
$color-primary-50: #FFF5D8;
$color-primary-100: #EFDDAB;
$color-primary-200: #D7C389;
$color-primary-300: #C0A967;
$color-primary-400: #AD944A;
$color-primary-500: #8F7831;
$color-primary-600: #77611A;
$color-primary-700: #5F4B00;
$color-primary-800: #453600;
$color-primary-900: #2E2300;
Static fallbacks followed by OKLab tint and shade declarations.
:root {
--color-primary: #AD944A;
--color-primary-tint: #D7C389;
--color-primary-tint: color-mix(in oklab, var(--color-primary) 72%, white);
--color-primary-shade: #5F4B00;
--color-primary-shade: color-mix(in oklab, var(--color-primary) 82%, black);
}
Source formats, readable text, and the generated scale.
{
"name": "Soft Mid-light Yellow",
"hex": "#AD944A",
"rgb": "rgb(173 148 74)",
"oklch": "oklch(67.3667% 0.098377 90.9509)",
"recommendedText": "#000000",
"scale": {
"50": "#FFF5D8",
"100": "#EFDDAB",
"200": "#D7C389",
"300": "#C0A967",
"400": "#AD944A",
"500": "#8F7831",
"600": "#77611A",
"700": "#5F4B00",
"800": "#453600",
"900": "#2E2300"
}
}
Continue the decision
Reference values are a starting point. Test the color in its real role, background, states, typography, and surrounding palette before shipping.