#AF9B31#AF9B31
#AF9B31 is a light, vivid yellow. Relative luminance 0.328; OKLCH L 68.8% C 0.124 H 98.3°. Best body text is #000000 at 7.56:1 contrast (WCAG AA passes).
Color values
| HEX | #AF9B31 |
|---|---|
| RGB | rgb(175, 155, 49) |
| HSL | hsl(50, 56%, 44%) |
| HSV | hsv(50, 72%, 69%) |
| CMYK | cmyk(0%, 11.4%, 72%, 31.4%) |
| CIE-LAB | lab(63.98, -4.48, 55.36) |
| CIE-LCH | lch(63.98, 55.54, 94.63°) |
| OKLab | oklab(68.8% -0.0178 0.123) |
| OKLCH | oklch(68.8% 0.124 98.3) |
| XYZ | xyz(29.9564, 32.7799, 7.6544) |
| Luminance | 0.3278 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Brown Yellow
#B29705
ΔE00 3.45
Baby Poo
#AB9004
ΔE00 4.34
Baby Shit Brown
#AD900D
ΔE00 4.40
Dark Gold
#B59410
ΔE00 4.48
Yellow Brown
#B79400
ΔE00 5.15
Ocher
#BF9B0C
ΔE00 5.26
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AF9B31 #3145AF
analogous
#AF5C31 #AF9B31 #84AF31
triadic
#AF9B31 #31AF9B #9B31AF
tetradic
#AF9B31 #31AF5C #3145AF #AF3184
square
#AF9B31 #31AF5C #3145AF #AF3184
split-complementary
#AF9B31 #3184AF #5C31AF
monochromatic
#4F4616 #7F7124 #AF9B31 #CEBA4F #DBCD7F
Accessibility & contrast
On white
2.78
#AF9B31 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
7.56
#AF9B31 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AF9B31
7.56:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AF9B31 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AF9B31 | 1.00 | 2.78 | 7.56 | 7.56 |
| #FFFFFF | 2.78 | 1.00 | 21.00 | 21.00 |
| #000000 | 7.56 | 21.00 | 1.00 | 1.00 |
| ##000000 | 7.56 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#AA9721
Deuteranopia (green-blind)
#B09E37
Tritanopia (blue-blind)
#BD8F86
Achromatopsia (no color)
#9B9B9B
Design tokens & code
CSS
--color: #af9b31; /* rgb */ color: rgb(175, 155, 49); /* oklch */ color: oklch(68.8% 0.124 98.3);
Tailwind
colors: {
custom: {
50: '#cab870',
500: '#af9b31',
950: '#000000',
},
}SCSS
$custom: #af9b31; $custom-light: #cab870; $custom-dark: #000000;
JSON
{
"hex": "#af9b31",
"rgb": {
"r": 175,
"g": 155,
"b": 49
},
"hsl": {
"h": 50.476,
"s": 56.25,
"l": 43.922
},
"oklch": {
"l": 0.688,
"c": 0.12425,
"h": 98.3
},
"luminance": 0.32778
}Semantic roles & 50–950 ramp
primary
#AF9B31
secondary
#7884C4
accent
#60E048
background
#FCFBF7
surface
#F9F6ED
border
#D2D0C8
text
#141108
muted
#82807B