#AF9A31#AF9A31
#AF9A31 is a light, vivid yellow. Relative luminance 0.324; OKLCH L 68.6% C 0.123 H 97.6°. Best body text is #000000 at 7.49:1 contrast (WCAG AA passes).
Color values
| HEX | #AF9A31 |
|---|---|
| RGB | rgb(175, 154, 49) |
| HSL | hsl(50, 56%, 44%) |
| HSV | hsv(50, 72%, 69%) |
| CMYK | cmyk(0%, 12%, 72%, 31.4%) |
| CIE-LAB | lab(63.71, -3.95, 55.09) |
| CIE-LCH | lch(63.71, 55.23, 94.10°) |
| OKLab | oklab(68.59% -0.0163 0.1224) |
| OKLCH | oklch(68.59% 0.123 97.6) |
| XYZ | xyz(29.7906, 32.4484, 7.5991) |
| Luminance | 0.3245 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Brown Yellow
#B29705
ΔE00 3.31
Baby Poo
#AB9004
ΔE00 4.08
Baby Shit Brown
#AD900D
ΔE00 4.09
Dark Gold
#B59410
ΔE00 4.18
Yellow Brown
#B79400
ΔE00 4.89
Ocher
#BF9B0C
ΔE00 5.10
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AF9A31 #3146AF
analogous
#AF5B31 #AF9A31 #85AF31
triadic
#AF9A31 #31AF9A #9A31AF
tetradic
#AF9A31 #31AF5B #3146AF #AF3185
square
#AF9A31 #31AF5B #3146AF #AF3185
split-complementary
#AF9A31 #3185AF #5B31AF
monochromatic
#4F4616 #7F7024 #AF9A31 #CEB94F #DBCC7F
Accessibility & contrast
On white
2.80
#AF9A31 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
7.49
#AF9A31 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AF9A31
7.49:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AF9A31 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AF9A31 | 1.00 | 2.80 | 7.49 | 7.49 |
| #FFFFFF | 2.80 | 1.00 | 21.00 | 21.00 |
| #000000 | 7.49 | 21.00 | 1.00 | 1.00 |
| ##000000 | 7.49 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#A99621
Deuteranopia (green-blind)
#AF9D37
Tritanopia (blue-blind)
#BD8E85
Achromatopsia (no color)
#9A9A9A
Design tokens & code
CSS
--color: #af9a31; /* rgb */ color: rgb(175, 154, 49); /* oklch */ color: oklch(68.6% 0.123 97.6);
Tailwind
colors: {
custom: {
50: '#cab770',
500: '#af9a31',
950: '#000000',
},
}SCSS
$custom: #af9a31; $custom-light: #cab770; $custom-dark: #000000;
JSON
{
"hex": "#af9a31",
"rgb": {
"r": 175,
"g": 154,
"b": 49
},
"hsl": {
"h": 50,
"s": 56.25,
"l": 43.922
},
"oklch": {
"l": 0.68586,
"c": 0.12348,
"h": 97.6
},
"luminance": 0.32447
}Semantic roles & 50–950 ramp
primary
#AF9A31
secondary
#7884C4
accent
#61E048
background
#FCFBF7
surface
#F9F6ED
border
#D2D0C8
text
#141108
muted
#82807B