#AF9F38#AF9F38
#AF9F38 is a light, vivid yellow. Relative luminance 0.342; OKLCH L 69.7% C 0.123 H 100.4°. Best body text is #000000 at 7.84:1 contrast (WCAG AA passes).
Color values
| HEX | #AF9F38 |
|---|---|
| RGB | rgb(175, 159, 56) |
| HSL | hsl(52, 52%, 45%) |
| HSV | hsv(52, 68%, 69%) |
| CMYK | cmyk(0%, 9.1%, 68%, 31.4%) |
| CIE-LAB | lab(65.12, -6.25, 53.65) |
| CIE-LCH | lch(65.12, 54.02, 96.64°) |
| OKLab | oklab(69.72% -0.0221 0.1206) |
| OKLCH | oklch(69.72% 0.123 100.4) |
| XYZ | xyz(30.7925, 34.1971, 8.7194) |
| Luminance | 0.3420 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Brown Yellow
#B29705
ΔE00 4.83
Vomit
#A2A415
ΔE00 5.72
Puke
#A5A502
ΔE00 5.79
Baby Poo
#AB9004
ΔE00 5.88
Baby Shit Brown
#AD900D
ΔE00 5.99
Dark Gold
#B59410
ΔE00 6.02
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AF9F38 #3848AF
analogous
#AF6438 #AF9F38 #83AF38
triadic
#AF9F38 #38AF9F #9F38AF
tetradic
#AF9F38 #38AF64 #3848AF #AF3883
square
#AF9F38 #38AF64 #3848AF #AF3883
split-complementary
#AF9F38 #3883AF #6438AF
monochromatic
#524B1A #817529 #AF9F38 #CABB5A #D9CE88
Accessibility & contrast
On white
2.68
#AF9F38 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
7.84
#AF9F38 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AF9F38
7.84:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AF9F38 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AF9F38 | 1.00 | 2.68 | 7.84 | 7.84 |
| #FFFFFF | 2.68 | 1.00 | 21.00 | 21.00 |
| #000000 | 7.84 | 21.00 | 1.00 | 1.00 |
| ##000000 | 7.84 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#AE9B2A
Deuteranopia (green-blind)
#B2A13E
Tritanopia (blue-blind)
#BC948A
Achromatopsia (no color)
#9E9E9E
Design tokens & code
CSS
--color: #af9f38; /* rgb */ color: rgb(175, 159, 56); /* oklch */ color: oklch(69.7% 0.123 100.4);
Tailwind
colors: {
custom: {
50: '#cabb74',
500: '#af9f38',
950: '#000000',
},
}SCSS
$custom: #af9f38; $custom-light: #cabb74; $custom-dark: #000000;
JSON
{
"hex": "#af9f38",
"rgb": {
"r": 175,
"g": 159,
"b": 56
},
"hsl": {
"h": 51.933,
"s": 51.515,
"l": 45.294
},
"oklch": {
"l": 0.69717,
"c": 0.12261,
"h": 100.4
},
"luminance": 0.34196
}Semantic roles & 50–950 ramp
primary
#AF9F38
secondary
#8089C3
accent
#60DB4D
background
#FCFBF7
surface
#F9F6ED
border
#D2D0C8
text
#141109
muted
#82807B