#AF9938#AF9938
#AF9938 is a light, moderate yellow. Relative luminance 0.322; OKLCH L 68.4% C 0.118 H 96.3°. Best body text is #000000 at 7.44:1 contrast (WCAG AA passes).
Color values
| HEX | #AF9938 |
|---|---|
| RGB | rgb(175, 153, 56) |
| HSL | hsl(49, 52%, 45%) |
| HSV | hsv(49, 68%, 69%) |
| CMYK | cmyk(0%, 12.6%, 68%, 31.4%) |
| CIE-LAB | lab(63.49, -3.03, 51.97) |
| CIE-LCH | lch(63.49, 52.06, 93.33°) |
| OKLab | oklab(68.43% -0.0129 0.1171) |
| OKLCH | oklch(68.43% 0.118 96.3) |
| XYZ | xyz(29.7856, 32.1835, 8.3837) |
| Luminance | 0.3218 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Brown Yellow
#B29705
ΔE00 3.98
Baby Shit Brown
#AD900D
ΔE00 4.28
Dark Gold
#B59410
ΔE00 4.39
Baby Poo
#AB9004
ΔE00 4.40
Yellow Brown
#B79400
ΔE00 5.13
Ocher
#BF9B0C
ΔE00 5.43
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AF9938 #384EAF
analogous
#AF5E38 #AF9938 #89AF38
triadic
#AF9938 #38AF99 #9938AF
tetradic
#AF9938 #38AF5E #384EAF #AF3889
square
#AF9938 #38AF5E #384EAF #AF3889
split-complementary
#AF9938 #3889AF #5E38AF
monochromatic
#52481A #817029 #AF9938 #CAB55A #D9CA88
Accessibility & contrast
On white
2.82
#AF9938 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
7.44
#AF9938 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AF9938
7.44:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AF9938 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AF9938 | 1.00 | 2.82 | 7.44 | 7.44 |
| #FFFFFF | 2.82 | 1.00 | 21.00 | 21.00 |
| #000000 | 7.44 | 21.00 | 1.00 | 1.00 |
| ##000000 | 7.44 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#A8962B
Deuteranopia (green-blind)
#AE9D3D
Tritanopia (blue-blind)
#BD8E85
Achromatopsia (no color)
#9A9A9A
Design tokens & code
CSS
--color: #af9938; /* rgb */ color: rgb(175, 153, 56); /* oklch */ color: oklch(68.4% 0.118 96.3);
Tailwind
colors: {
custom: {
50: '#cab674',
500: '#af9938',
950: '#000000',
},
}SCSS
$custom: #af9938; $custom-light: #cab674; $custom-dark: #000000;
JSON
{
"hex": "#af9938",
"rgb": {
"r": 175,
"g": 153,
"b": 56
},
"hsl": {
"h": 48.908,
"s": 51.515,
"l": 45.294
},
"oklch": {
"l": 0.6843,
"c": 0.11777,
"h": 96.3
},
"luminance": 0.32182
}Semantic roles & 50–950 ramp
primary
#AF9938
secondary
#808CC3
accent
#67DB4D
background
#FCFBF7
surface
#F9F6ED
border
#D2D0C8
text
#141108
muted
#82807B