#A8A21F#A8A21F
#A8A21F is a light, vivid yellow. Relative luminance 0.343; OKLCH L 69.6% C 0.141 H 106.7°. Best body text is #000000 at 7.85:1 contrast (WCAG AA passes).
Color values
| HEX | #A8A21F |
|---|---|
| RGB | rgb(168, 162, 31) |
| HSL | hsl(57, 69%, 39%) |
| HSV | hsv(57, 82%, 66%) |
| CMYK | cmyk(0%, 3.6%, 81.5%, 34.1%) |
| CIE-LAB | lab(65.17, -12.05, 62.33) |
| CIE-LCH | lch(65.17, 63.48, 100.94°) |
| OKLab | oklab(69.56% -0.0404 0.1347) |
| OKLCH | oklch(69.56% 0.141 106.7) |
| XYZ | xyz(29.3174, 34.2655, 6.3657) |
| Luminance | 0.3426 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Puke
#A5A502
ΔE00 2.06
Vomit
#A2A415
ΔE00 2.11
Pea Soup
#929901
ΔE00 4.91
Muddy Yellow
#BFAC05
ΔE00 5.49
Baby Poop Green
#8F9805
ΔE00 5.59
Pea Soup Green
#94A617
ΔE00 5.91
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A8A21F #1F25A8
analogous
#A85E1F #A8A21F #6AA81F
triadic
#A8A21F #1FA8A2 #A21FA8
tetradic
#A8A21F #1FA85E #1F25A8 #A81F6A
square
#A8A21F #1FA85E #1F25A8 #A81F6A
split-complementary
#A8A21F #1F6AA8 #5E1FA8
monochromatic
#413E0C #747015 #A8A21F #D8D12C #E2DC60
Accessibility & contrast
On white
2.67
#A8A21F on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
7.85
#A8A21F on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #A8A21F
7.85:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A8A21F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##A8A21F | 1.00 | 2.67 | 7.85 | 7.85 |
| #FFFFFF | 2.67 | 1.00 | 21.00 | 21.00 |
| #000000 | 7.85 | 21.00 | 1.00 | 1.00 |
| ##000000 | 7.85 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#B19C00
Deuteranopia (green-blind)
#B3A02B
Tritanopia (blue-blind)
#B5978A
Achromatopsia (no color)
#9E9E9E
Design tokens & code
CSS
--color: #a8a21f; /* rgb */ color: rgb(168, 162, 31); /* oklch */ color: oklch(69.6% 0.141 106.7);
Tailwind
colors: {
custom: {
50: '#c6bd68',
500: '#a8a21f',
950: '#000000',
},
}SCSS
$custom: #a8a21f; $custom-light: #c6bd68; $custom-dark: #000000;
JSON
{
"hex": "#a8a21f",
"rgb": {
"r": 168,
"g": 162,
"b": 31
},
"hsl": {
"h": 57.372,
"s": 68.844,
"l": 39.02
},
"oklch": {
"l": 0.69564,
"c": 0.1406,
"h": 106.7
},
"luminance": 0.34264
}Semantic roles & 50–950 ramp
primary
#A8A21F
secondary
#5D61C6
accent
#44EC3C
background
#FCFBF6
surface
#F9F6EB
border
#D2D0C6
text
#131207
muted
#82817A