#A8A42F#A8A42F
#A8A42F is a light, vivid yellow. Relative luminance 0.351; OKLCH L 70.1% C 0.134 H 107.4°. Best body text is #000000 at 8.02:1 contrast (WCAG AA passes).
Color values
| HEX | #A8A42F |
|---|---|
| RGB | rgb(168, 164, 47) |
| HSL | hsl(58, 56%, 42%) |
| HSV | hsv(58, 72%, 66%) |
| CMYK | cmyk(0%, 2.4%, 72%, 34.1%) |
| CIE-LAB | lab(65.81, -12.44, 57.70) |
| CIE-LCH | lch(65.81, 59.02, 102.17°) |
| OKLab | oklab(70.1% -0.0401 0.1278) |
| OKLCH | oklch(70.1% 0.134 107.4) |
| XYZ | xyz(29.9381, 35.0820, 7.8833) |
| Luminance | 0.3508 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Vomit
#A2A415
ΔE00 2.32
Puke
#A5A502
ΔE00 2.78
Pea Soup
#929901
ΔE00 5.19
Pea Soup Green
#94A617
ΔE00 5.44
Baby Poop Green
#8F9805
ΔE00 5.75
Puke Green
#9AAE07
ΔE00 6.14
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A8A42F #2F33A8
analogous
#A8682F #A8A42F #6FA82F
triadic
#A8A42F #2FA8A4 #A42FA8
tetradic
#A8A42F #2FA868 #2F33A8 #A82F6F
square
#A8A42F #2FA868 #2F33A8 #A82F6F
split-complementary
#A8A42F #2F6FA8 #682FA8
monochromatic
#484714 #787522 #A8A42F #CCC848 #D9D678
Accessibility & contrast
On white
2.62
#A8A42F on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.02
#A8A42F on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #A8A42F
8.02:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A8A42F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##A8A42F | 1.00 | 2.62 | 8.02 | 8.02 |
| #FFFFFF | 2.62 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.02 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.02 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#B29E1A
Deuteranopia (green-blind)
#B4A237
Tritanopia (blue-blind)
#B4998D
Achromatopsia (no color)
#A0A0A0
Design tokens & code
CSS
--color: #a8a42f; /* rgb */ color: rgb(168, 164, 47); /* oklch */ color: oklch(70.1% 0.134 107.4);
Tailwind
colors: {
custom: {
50: '#c5be70',
500: '#a8a42f',
950: '#000000',
},
}SCSS
$custom: #a8a42f; $custom-light: #c5be70; $custom-dark: #000000;
JSON
{
"hex": "#a8a42f",
"rgb": {
"r": 168,
"g": 164,
"b": 47
},
"hsl": {
"h": 58.017,
"s": 56.279,
"l": 42.157
},
"oklch": {
"l": 0.70101,
"c": 0.13395,
"h": 107.4
},
"luminance": 0.35081
}Semantic roles & 50–950 ramp
primary
#A8A42F
secondary
#7174C1
accent
#4DE048
background
#FCFBF7
surface
#F8F6ED
border
#D1D0C8
text
#131208
muted
#82817B