#A6AF2F#A6AF2F
#A6AF2F is a light, vivid yellow. Relative luminance 0.390; OKLCH L 72.4% C 0.146 H 113.5°. Best body text is #000000 at 8.79:1 contrast (WCAG AA passes).
Color values
| HEX | #A6AF2F |
|---|---|
| RGB | rgb(166, 175, 47) |
| HSL | hsl(64, 58%, 44%) |
| HSV | hsv(64, 73%, 69%) |
| CMYK | cmyk(5.1%, 0%, 73.1%, 31.4%) |
| CIE-LAB | lab(68.73, -18.95, 60.45) |
| CIE-LCH | lch(68.73, 63.35, 107.41°) |
| OKLab | oklab(72.39% -0.0582 0.1337) |
| OKLCH | oklch(72.39% 0.146 113.5) |
| XYZ | xyz(31.5699, 38.9728, 8.5482) |
| Luminance | 0.3897 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Puke Green
#9AAE07
ΔE00 2.99
Mustard Green
#A8B504
ΔE00 3.08
Vomit
#A2A415
ΔE00 3.68
Pea Soup Green
#94A617
ΔE00 3.80
Barf Green
#94AC02
ΔE00 3.86
Puke
#A5A502
ΔE00 4.13
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A6AF2F #382FAF
analogous
#AF782F #A6AF2F #66AF2F
triadic
#A6AF2F #2FA6AF #AF2FA6
tetradic
#A6AF2F #2FAF78 #382FAF #AF2F66
square
#A6AF2F #2FAF78 #382FAF #AF2F66
split-complementary
#A6AF2F #2F66AF #782FAF
monochromatic
#4A4F15 #787F22 #A6AF2F #C6CF4C #D5DC7C
Accessibility & contrast
On white
2.39
#A6AF2F on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.79
#A6AF2F on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #A6AF2F
8.79:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A6AF2F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##A6AF2F | 1.00 | 2.39 | 8.79 | 8.79 |
| #FFFFFF | 2.39 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.79 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.79 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#BCA616
Deuteranopia (green-blind)
#BCA939
Tritanopia (blue-blind)
#B1A496
Achromatopsia (no color)
#A8A8A8
Design tokens & code
CSS
--color: #a6af2f; /* rgb */ color: rgb(166, 175, 47); /* oklch */ color: oklch(72.4% 0.146 113.5);
Tailwind
colors: {
custom: {
50: '#c4c671',
500: '#a6af2f',
950: '#000000',
},
}SCSS
$custom: #a6af2f; $custom-light: #c4c671; $custom-dark: #000000;
JSON
{
"hex": "#a6af2f",
"rgb": {
"r": 166,
"g": 175,
"b": 47
},
"hsl": {
"h": 64.219,
"s": 57.658,
"l": 43.529
},
"oklch": {
"l": 0.72394,
"c": 0.1458,
"h": 113.5
},
"luminance": 0.38972
}Semantic roles & 50–950 ramp
primary
#A6AF2F
secondary
#7B75C4
accent
#47E152
background
#FCFCF7
surface
#F8F8ED
border
#D1D1C8
text
#131308
muted
#82827B