#A8AF21#A8AF21
#A8AF21 is a light, vivid yellow. Relative luminance 0.391; OKLCH L 72.5% C 0.152 H 112.6°. Best body text is #000000 at 8.82:1 contrast (WCAG AA passes).
Color values
| HEX | #A8AF21 |
|---|---|
| RGB | rgb(168, 175, 33) |
| HSL | hsl(63, 68%, 41%) |
| HSV | hsv(63, 81%, 69%) |
| CMYK | cmyk(4%, 0%, 81.1%, 31.4%) |
| CIE-LAB | lab(68.82, -18.66, 64.95) |
| CIE-LCH | lch(68.82, 67.58, 106.03°) |
| OKLab | oklab(72.48% -0.0586 0.1407) |
| OKLCH | oklch(72.48% 0.152 112.6) |
| XYZ | xyz(31.7540, 39.0953, 7.3120) |
| Luminance | 0.3910 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Mustard Green
#A8B504
ΔE00 2.29
Puke Green
#9AAE07
ΔE00 3.03
Vomit
#A2A415
ΔE00 3.22
Puke
#A5A502
ΔE00 3.30
Snot
#ACBB0D
ΔE00 3.63
Barf Green
#94AC02
ΔE00 4.10
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A8AF21 #2821AF
analogous
#AF6F21 #A8AF21 #61AF21
triadic
#A8AF21 #21A8AF #AF21A8
tetradic
#A8AF21 #21AF6F #2821AF #AF2161
square
#A8AF21 #21AF6F #2821AF #AF2161
split-complementary
#A8AF21 #2161AF #6F21AF
monochromatic
#45480E #777C17 #A8AF21 #D1D934 #DCE368
Accessibility & contrast
On white
2.38
#A8AF21 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.82
#A8AF21 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #A8AF21
8.82:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A8AF21 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##A8AF21 | 1.00 | 2.38 | 8.82 | 8.82 |
| #FFFFFF | 2.38 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.82 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.82 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#BDA600
Deuteranopia (green-blind)
#BDA92F
Tritanopia (blue-blind)
#B4A496
Achromatopsia (no color)
#A8A8A8
Design tokens & code
CSS
--color: #a8af21; /* rgb */ color: rgb(168, 175, 33); /* oklch */ color: oklch(72.5% 0.152 112.6);
Tailwind
colors: {
custom: {
50: '#c6c66b',
500: '#a8af21',
950: '#000000',
},
}SCSS
$custom: #a8af21; $custom-light: #c6c66b; $custom-dark: #000000;
JSON
{
"hex": "#a8af21",
"rgb": {
"r": 168,
"g": 175,
"b": 33
},
"hsl": {
"h": 62.958,
"s": 68.269,
"l": 40.784
},
"oklch": {
"l": 0.72482,
"c": 0.15241,
"h": 112.6
},
"luminance": 0.39095
}Semantic roles & 50–950 ramp
primary
#A8AF21
secondary
#6964C8
accent
#3DEB45
background
#FCFCF6
surface
#F9F8EC
border
#D2D1C7
text
#131307
muted
#82827A