#AF9937#AF9937
#AF9937 is a light, moderate yellow. Relative luminance 0.322; OKLCH L 68.4% C 0.119 H 96.4°. Best body text is #000000 at 7.43:1 contrast (WCAG AA passes).
Color values
| HEX | #AF9937 |
|---|---|
| RGB | rgb(175, 153, 55) |
| HSL | hsl(49, 52%, 45%) |
| HSV | hsv(49, 69%, 69%) |
| CMYK | cmyk(0%, 12.6%, 68.6%, 31.4%) |
| CIE-LAB | lab(63.49, -3.09, 52.39) |
| CIE-LCH | lch(63.49, 52.48, 93.37°) |
| OKLab | oklab(68.42% -0.0132 0.1178) |
| OKLCH | oklch(68.42% 0.119 96.4) |
| XYZ | xyz(29.7614, 32.1738, 8.2562) |
| Luminance | 0.3217 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Brown Yellow
#B29705
ΔE00 3.86
Baby Shit Brown
#AD900D
ΔE00 4.20
Dark Gold
#B59410
ΔE00 4.31
Baby Poo
#AB9004
ΔE00 4.31
Yellow Brown
#B79400
ΔE00 5.05
Ocher
#BF9B0C
ΔE00 5.36
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AF9937 #374DAF
analogous
#AF5D37 #AF9937 #89AF37
triadic
#AF9937 #37AF99 #9937AF
tetradic
#AF9937 #37AF5D #374DAF #AF3789
square
#AF9937 #37AF5D #374DAF #AF3789
split-complementary
#AF9937 #3789AF #5D37AF
monochromatic
#52481A #807028 #AF9937 #CBB659 #D9CA87
Accessibility & contrast
On white
2.82
#AF9937 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
7.43
#AF9937 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AF9937
7.43:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AF9937 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AF9937 | 1.00 | 2.82 | 7.43 | 7.43 |
| #FFFFFF | 2.82 | 1.00 | 21.00 | 21.00 |
| #000000 | 7.43 | 21.00 | 1.00 | 1.00 |
| ##000000 | 7.43 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#A8962A
Deuteranopia (green-blind)
#AE9D3C
Tritanopia (blue-blind)
#BD8E85
Achromatopsia (no color)
#9A9A9A
Design tokens & code
CSS
--color: #af9937; /* rgb */ color: rgb(175, 153, 55); /* oklch */ color: oklch(68.4% 0.119 96.4);
Tailwind
colors: {
custom: {
50: '#cab673',
500: '#af9937',
950: '#000000',
},
}SCSS
$custom: #af9937; $custom-light: #cab673; $custom-dark: #000000;
JSON
{
"hex": "#af9937",
"rgb": {
"r": 175,
"g": 153,
"b": 55
},
"hsl": {
"h": 49,
"s": 52.174,
"l": 45.098
},
"oklch": {
"l": 0.68421,
"c": 0.11851,
"h": 96.4
},
"luminance": 0.32172
}Semantic roles & 50–950 ramp
primary
#AF9937
secondary
#7F8BC3
accent
#66DC4C
background
#FCFBF7
surface
#F9F6ED
border
#D2D0C8
text
#141108
muted
#82807B