#A8A221#A8A221
#A8A221 is a light, vivid yellow. Relative luminance 0.343; OKLCH L 69.6% C 0.140 H 106.7°. Best body text is #000000 at 7.86:1 contrast (WCAG AA passes).
Color values
| HEX | #A8A221 |
|---|---|
| RGB | rgb(168, 162, 33) |
| HSL | hsl(57, 67%, 39%) |
| HSV | hsv(57, 80%, 66%) |
| CMYK | cmyk(0%, 3.6%, 80.4%, 34.1%) |
| CIE-LAB | lab(65.18, -11.98, 61.77) |
| CIE-LCH | lch(65.18, 62.92, 100.98°) |
| OKLab | oklab(69.57% -0.0401 0.1338) |
| OKLCH | oklch(69.57% 0.14 106.7) |
| XYZ | xyz(29.3445, 34.2764, 6.5088) |
| Luminance | 0.3427 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Vomit
#A2A415
ΔE00 2.14
Puke
#A5A502
ΔE00 2.15
Pea Soup
#929901
ΔE00 4.92
Muddy Yellow
#BFAC05
ΔE00 5.56
Baby Poop Green
#8F9805
ΔE00 5.59
Pea Soup Green
#94A617
ΔE00 5.90
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A8A221 #2127A8
analogous
#A85E21 #A8A221 #6BA821
triadic
#A8A221 #21A8A2 #A221A8
tetradic
#A8A221 #21A85E #2127A8 #A8216B
square
#A8A221 #21A85E #2127A8 #A8216B
split-complementary
#A8A221 #216BA8 #5E21A8
monochromatic
#423F0D #757117 #A8A221 #D6CF30 #E0DB63
Accessibility & contrast
On white
2.67
#A8A221 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
7.86
#A8A221 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #A8A221
7.86:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A8A221 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##A8A221 | 1.00 | 2.67 | 7.86 | 7.86 |
| #FFFFFF | 2.67 | 1.00 | 21.00 | 21.00 |
| #000000 | 7.86 | 21.00 | 1.00 | 1.00 |
| ##000000 | 7.86 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#B09C00
Deuteranopia (green-blind)
#B3A02C
Tritanopia (blue-blind)
#B5978B
Achromatopsia (no color)
#9E9E9E
Design tokens & code
CSS
--color: #a8a221; /* rgb */ color: rgb(168, 162, 33); /* oklch */ color: oklch(69.6% 0.140 106.7);
Tailwind
colors: {
custom: {
50: '#c6bd69',
500: '#a8a221',
950: '#000000',
},
}SCSS
$custom: #a8a221; $custom-light: #c6bd69; $custom-dark: #000000;
JSON
{
"hex": "#a8a221",
"rgb": {
"r": 168,
"g": 162,
"b": 33
},
"hsl": {
"h": 57.333,
"s": 67.164,
"l": 39.412
},
"oklch": {
"l": 0.69574,
"c": 0.1397,
"h": 106.7
},
"luminance": 0.34275
}Semantic roles & 50–950 ramp
primary
#A8A221
secondary
#5F64C5
accent
#45EA3E
background
#FCFBF6
surface
#F9F6EB
border
#D2D0C6
text
#131207
muted
#82817A