#A6AF21#A6AF21
#A6AF21 is a light, vivid yellow. Relative luminance 0.389; OKLCH L 72.3% C 0.153 H 113.5°. Best body text is #000000 at 8.78:1 contrast (WCAG AA passes).
Color values
| HEX | #A6AF21 |
|---|---|
| RGB | rgb(166, 175, 33) |
| HSL | hsl(64, 68%, 41%) |
| HSV | hsv(64, 81%, 69%) |
| CMYK | cmyk(5.1%, 0%, 81.1%, 31.4%) |
| CIE-LAB | lab(68.66, -19.53, 64.75) |
| CIE-LCH | lch(68.66, 67.63, 106.78°) |
| OKLab | oklab(72.32% -0.0609 0.1403) |
| OKLCH | oklch(72.32% 0.153 113.5) |
| XYZ | xyz(31.3314, 38.8774, 7.2922) |
| Luminance | 0.3888 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Mustard Green
#A8B504
ΔE00 2.22
Puke Green
#9AAE07
ΔE00 2.58
Vomit
#A2A415
ΔE00 3.35
Puke
#A5A502
ΔE00 3.55
Snot
#ACBB0D
ΔE00 3.57
Barf Green
#94AC02
ΔE00 3.64
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A6AF21 #2A21AF
analogous
#AF7121 #A6AF21 #5FAF21
triadic
#A6AF21 #21A6AF #AF21A6
tetradic
#A6AF21 #21AF71 #2A21AF #AF215F
square
#A6AF21 #21AF71 #2A21AF #AF215F
split-complementary
#A6AF21 #215FAF #7121AF
monochromatic
#44480E #757C17 #A6AF21 #CED934 #DBE368
Accessibility & contrast
On white
2.39
#A6AF21 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.78
#A6AF21 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #A6AF21
8.78:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A6AF21 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##A6AF21 | 1.00 | 2.39 | 8.78 | 8.78 |
| #FFFFFF | 2.39 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.78 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.78 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#BDA600
Deuteranopia (green-blind)
#BCA92F
Tritanopia (blue-blind)
#B2A496
Achromatopsia (no color)
#A7A7A7
Design tokens & code
CSS
--color: #a6af21; /* rgb */ color: rgb(166, 175, 33); /* oklch */ color: oklch(72.3% 0.153 113.5);
Tailwind
colors: {
custom: {
50: '#c4c66b',
500: '#a6af21',
950: '#000000',
},
}SCSS
$custom: #a6af21; $custom-light: #c4c66b; $custom-dark: #000000;
JSON
{
"hex": "#a6af21",
"rgb": {
"r": 166,
"g": 175,
"b": 33
},
"hsl": {
"h": 63.803,
"s": 68.269,
"l": 40.784
},
"oklch": {
"l": 0.72317,
"c": 0.15298,
"h": 113.5
},
"luminance": 0.38877
}Semantic roles & 50–950 ramp
primary
#A6AF21
secondary
#6A64C8
accent
#3DEB48
background
#FCFCF6
surface
#F8F8EC
border
#D1D1C7
text
#131307
muted
#82827A