#AF9A2A#AF9A2A
#AF9A2A is a light, vivid yellow. Relative luminance 0.324; OKLCH L 68.5% C 0.128 H 98.1°. Best body text is #000000 at 7.48:1 contrast (WCAG AA passes).
Color values
| HEX | #AF9A2A |
|---|---|
| RGB | rgb(175, 154, 42) |
| HSL | hsl(51, 61%, 43%) |
| HSV | hsv(51, 76%, 69%) |
| CMYK | cmyk(0%, 12%, 76%, 31.4%) |
| CIE-LAB | lab(63.67, -4.27, 57.69) |
| CIE-LCH | lch(63.67, 57.85, 94.24°) |
| OKLab | oklab(68.54% -0.018 0.1266) |
| OKLCH | oklch(68.54% 0.128 98.1) |
| XYZ | xyz(29.6542, 32.3939, 6.8807) |
| Luminance | 0.3239 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Brown Yellow
#B29705
ΔE00 2.74
Baby Poo
#AB9004
ΔE00 3.72
Baby Shit Brown
#AD900D
ΔE00 3.81
Dark Gold
#B59410
ΔE00 3.92
Yellow Brown
#B79400
ΔE00 4.57
Ocher
#BF9B0C
ΔE00 4.79
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AF9A2A #2A3FAF
analogous
#AF572A #AF9A2A #82AF2A
triadic
#AF9A2A #2AAF9A #9A2AAF
tetradic
#AF9A2A #2AAF57 #2A3FAF #AF2A82
square
#AF9A2A #2AAF57 #2A3FAF #AF2A82
split-complementary
#AF9A2A #2A82AF #572AAF
monochromatic
#4C4312 #7E6F1E #AF9A2A #D2BC44 #DECD75
Accessibility & contrast
On white
2.81
#AF9A2A on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
7.48
#AF9A2A on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AF9A2A
7.48:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AF9A2A | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AF9A2A | 1.00 | 2.81 | 7.48 | 7.48 |
| #FFFFFF | 2.81 | 1.00 | 21.00 | 21.00 |
| #000000 | 7.48 | 21.00 | 1.00 | 1.00 |
| ##000000 | 7.48 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#AA9614
Deuteranopia (green-blind)
#AF9D31
Tritanopia (blue-blind)
#BD8E84
Achromatopsia (no color)
#9A9A9A
Design tokens & code
CSS
--color: #af9a2a; /* rgb */ color: rgb(175, 154, 42); /* oklch */ color: oklch(68.5% 0.128 98.1);
Tailwind
colors: {
custom: {
50: '#cbb76c',
500: '#af9a2a',
950: '#000000',
},
}SCSS
$custom: #af9a2a; $custom-light: #cbb76c; $custom-dark: #000000;
JSON
{
"hex": "#af9a2a",
"rgb": {
"r": 175,
"g": 154,
"b": 42
},
"hsl": {
"h": 50.526,
"s": 61.29,
"l": 42.549
},
"oklch": {
"l": 0.68536,
"c": 0.12784,
"h": 98.1
},
"luminance": 0.32392
}Semantic roles & 50–950 ramp
primary
#AF9A2A
secondary
#6F7DC6
accent
#5DE443
background
#FDFBF6
surface
#FAF6EC
border
#D3D0C7
text
#141107
muted
#83807A