#AF9E2C#AF9E2C
#AF9E2C is a light, vivid yellow. Relative luminance 0.338; OKLCH L 69.4% C 0.130 H 100.5°. Best body text is #000000 at 7.75:1 contrast (WCAG AA passes).
Color values
| HEX | #AF9E2C |
|---|---|
| RGB | rgb(175, 158, 44) |
| HSL | hsl(52, 60%, 43%) |
| HSV | hsv(52, 75%, 69%) |
| CMYK | cmyk(0%, 9.7%, 74.9%, 31.4%) |
| CIE-LAB | lab(64.76, -6.33, 58.01) |
| CIE-LCH | lch(64.76, 58.35, 96.22°) |
| OKLab | oklab(69.41% -0.0236 0.1276) |
| OKLCH | oklch(69.41% 0.13 100.5) |
| XYZ | xyz(30.3621, 33.7510, 7.2977) |
| Luminance | 0.3375 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Brown Yellow
#B29705
ΔE00 3.83
Baby Poo
#AB9004
ΔE00 5.09
Baby Shit Brown
#AD900D
ΔE00 5.28
Dark Gold
#B59410
ΔE00 5.32
Puke
#A5A502
ΔE00 5.33
Muddy Yellow
#BFAC05
ΔE00 5.38
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AF9E2C #2C3DAF
analogous
#AF5D2C #AF9E2C #7EAF2C
triadic
#AF9E2C #2CAF9E #9E2CAF
tetradic
#AF9E2C #2CAF5D #2C3DAF #AF2C7E
square
#AF9E2C #2CAF5D #2C3DAF #AF2C7E
split-complementary
#AF9E2C #2C7EAF #5D2CAF
monochromatic
#4D4613 #7E7220 #AF9E2C #D1BF47 #DDD078
Accessibility & contrast
On white
2.71
#AF9E2C on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
7.75
#AF9E2C on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AF9E2C
7.75:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AF9E2C | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AF9E2C | 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)
#AD9917
Deuteranopia (green-blind)
#B2A034
Tritanopia (blue-blind)
#BD9288
Achromatopsia (no color)
#9D9D9D
Design tokens & code
CSS
--color: #af9e2c; /* rgb */ color: rgb(175, 158, 44); /* oklch */ color: oklch(69.4% 0.130 100.5);
Tailwind
colors: {
custom: {
50: '#cbba6e',
500: '#af9e2c',
950: '#000000',
},
}SCSS
$custom: #af9e2c; $custom-light: #cbba6e; $custom-dark: #000000;
JSON
{
"hex": "#af9e2c",
"rgb": {
"r": 175,
"g": 158,
"b": 44
},
"hsl": {
"h": 52.214,
"s": 59.817,
"l": 42.941
},
"oklch": {
"l": 0.6941,
"c": 0.12979,
"h": 100.5
},
"luminance": 0.3375
}Semantic roles & 50–950 ramp
primary
#AF9E2C
secondary
#727DC5
accent
#59E345
background
#FCFBF6
surface
#F9F6EC
border
#D2D0C7
text
#141108
muted
#82807B