#A6A42F#A6A42F
#A6A42F is a light, vivid yellow. Relative luminance 0.349; OKLCH L 69.9% C 0.134 H 108.4°. Best body text is #000000 at 7.97:1 contrast (WCAG AA passes).
Color values
| HEX | #A6A42F |
|---|---|
| RGB | rgb(166, 164, 47) |
| HSL | hsl(59, 56%, 42%) |
| HSV | hsv(59, 72%, 65%) |
| CMYK | cmyk(0%, 1.2%, 71.7%, 34.9%) |
| CIE-LAB | lab(65.64, -13.32, 57.48) |
| CIE-LCH | lch(65.64, 59.00, 103.05°) |
| OKLab | oklab(69.92% -0.0425 0.1274) |
| OKLCH | oklch(69.92% 0.134 108.4) |
| XYZ | xyz(29.5155, 34.8641, 7.8634) |
| Luminance | 0.3486 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Vomit
#A2A415
ΔE00 2.08
Puke
#A5A502
ΔE00 2.75
Pea Soup
#929901
ΔE00 4.86
Pea Soup Green
#94A617
ΔE00 4.92
Baby Poop Green
#8F9805
ΔE00 5.38
Puke Green
#9AAE07
ΔE00 5.73
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A6A42F #2F31A6
analogous
#A6692F #A6A42F #6CA62F
triadic
#A6A42F #2FA6A4 #A42FA6
tetradic
#A6A42F #2FA669 #2F31A6 #A62F6C
square
#A6A42F #2FA669 #2F31A6 #A62F6C
split-complementary
#A6A42F #2F6CA6 #692FA6
monochromatic
#474614 #767521 #A6A42F #CBC947 #D8D777
Accessibility & contrast
On white
2.63
#A6A42F on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
7.97
#A6A42F on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #A6A42F
7.97:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A6A42F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##A6A42F | 1.00 | 2.63 | 7.97 | 7.97 |
| #FFFFFF | 2.63 | 1.00 | 21.00 | 21.00 |
| #000000 | 7.97 | 21.00 | 1.00 | 1.00 |
| ##000000 | 7.97 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#B29D1A
Deuteranopia (green-blind)
#B3A138
Tritanopia (blue-blind)
#B2998D
Achromatopsia (no color)
#9F9F9F
Design tokens & code
CSS
--color: #a6a42f; /* rgb */ color: rgb(166, 164, 47); /* oklch */ color: oklch(69.9% 0.134 108.4);
Tailwind
colors: {
custom: {
50: '#c4be70',
500: '#a6a42f',
950: '#000000',
},
}SCSS
$custom: #a6a42f; $custom-light: #c4be70; $custom-dark: #000000;
JSON
{
"hex": "#a6a42f",
"rgb": {
"r": 166,
"g": 164,
"b": 47
},
"hsl": {
"h": 58.992,
"s": 55.869,
"l": 41.765
},
"oklch": {
"l": 0.69924,
"c": 0.13429,
"h": 108.4
},
"luminance": 0.34863
}Semantic roles & 50–950 ramp
primary
#A6A42F
secondary
#7072C1
accent
#4BDF49
background
#FCFBF7
surface
#F8F6ED
border
#D1D0C8
text
#131208
muted
#82817B