#AF9E2A#AF9E2A
#AF9E2A is a light, vivid yellow. Relative luminance 0.337; OKLCH L 69.4% C 0.131 H 100.6°. Best body text is #000000 at 7.75:1 contrast (WCAG AA passes).
Color values
| HEX | #AF9E2A |
|---|---|
| RGB | rgb(175, 158, 42) |
| HSL | hsl(52, 61%, 43%) |
| HSV | hsv(52, 76%, 69%) |
| CMYK | cmyk(0%, 9.7%, 76%, 31.4%) |
| CIE-LAB | lab(64.75, -6.41, 58.71) |
| CIE-LCH | lch(64.75, 59.06, 96.23°) |
| OKLab | oklab(69.4% -0.024 0.1287) |
| OKLCH | oklch(69.4% 0.131 100.6) |
| XYZ | xyz(30.3254, 33.7363, 7.1044) |
| Luminance | 0.3373 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Brown Yellow
#B29705
ΔE00 3.74
Baby Poo
#AB9004
ΔE00 5.04
Puke
#A5A502
ΔE00 5.23
Baby Shit Brown
#AD900D
ΔE00 5.25
Muddy Yellow
#BFAC05
ΔE00 5.27
Dark Gold
#B59410
ΔE00 5.28
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AF9E2A #2A3BAF
analogous
#AF5C2A #AF9E2A #7DAF2A
triadic
#AF9E2A #2AAF9E #9E2AAF
tetradic
#AF9E2A #2AAF5C #2A3BAF #AF2A7D
square
#AF9E2A #2AAF5C #2A3BAF #AF2A7D
split-complementary
#AF9E2A #2A7DAF #5C2AAF
monochromatic
#4C4512 #7E711E #AF9E2A #D2C044 #DED175
Accessibility & contrast
On white
2.71
#AF9E2A on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
7.75
#AF9E2A on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AF9E2A
7.75:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AF9E2A | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AF9E2A | 1.00 | 2.71 | 7.75 | 7.75 |
| #FFFFFF | 2.71 | 1.00 | 21.00 | 21.00 |
| #000000 | 7.75 | 21.00 | 1.00 | 1.00 |
| ##000000 | 7.75 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#AD9912
Deuteranopia (green-blind)
#B2A032
Tritanopia (blue-blind)
#BD9288
Achromatopsia (no color)
#9D9D9D
Design tokens & code
CSS
--color: #af9e2a; /* rgb */ color: rgb(175, 158, 42); /* oklch */ color: oklch(69.4% 0.131 100.6);
Tailwind
colors: {
custom: {
50: '#cbba6d',
500: '#af9e2a',
950: '#000000',
},
}SCSS
$custom: #af9e2a; $custom-light: #cbba6d; $custom-dark: #000000;
JSON
{
"hex": "#af9e2a",
"rgb": {
"r": 175,
"g": 158,
"b": 42
},
"hsl": {
"h": 52.331,
"s": 61.29,
"l": 42.549
},
"oklch": {
"l": 0.69397,
"c": 0.13095,
"h": 100.6
},
"luminance": 0.33735
}Semantic roles & 50–950 ramp
primary
#AF9E2A
secondary
#6F7AC6
accent
#58E443
background
#FCFBF6
surface
#F9F6EC
border
#D2D0C7
text
#141107
muted
#82807A