#A8A231#A8A231
#A8A231 is a light, vivid yellow. Relative luminance 0.344; OKLCH L 69.7% C 0.131 H 106.3°. Best body text is #000000 at 7.88:1 contrast (WCAG AA passes).
Color values
| HEX | #A8A231 |
|---|---|
| RGB | rgb(168, 162, 49) |
| HSL | hsl(57, 55%, 43%) |
| HSV | hsv(57, 71%, 66%) |
| CMYK | cmyk(0%, 3.6%, 70.8%, 34.1%) |
| CIE-LAB | lab(65.27, -11.29, 56.41) |
| CIE-LCH | lch(65.27, 57.53, 101.32°) |
| OKLab | oklab(69.67% -0.0367 0.1255) |
| OKLCH | oklch(69.67% 0.131 106.3) |
| XYZ | xyz(29.6243, 34.3883, 7.9823) |
| Luminance | 0.3439 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Vomit
#A2A415
ΔE00 2.90
Puke
#A5A502
ΔE00 3.32
Pea Soup
#929901
ΔE00 5.25
Baby Poop Green
#8F9805
ΔE00 5.80
Pea Soup Green
#94A617
ΔE00 6.01
Muddy Yellow
#BFAC05
ΔE00 6.32
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A8A231 #3137A8
analogous
#A86731 #A8A231 #72A831
triadic
#A8A231 #31A8A2 #A231A8
tetradic
#A8A231 #31A867 #3137A8 #A83172
square
#A8A231 #31A867 #3137A8 #A83172
split-complementary
#A8A231 #3172A8 #6731A8
monochromatic
#494715 #797423 #A8A231 #CBC44C #D8D47B
Accessibility & contrast
On white
2.67
#A8A231 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
7.88
#A8A231 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #A8A231
7.88:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A8A231 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##A8A231 | 1.00 | 2.67 | 7.88 | 7.88 |
| #FFFFFF | 2.67 | 1.00 | 21.00 | 21.00 |
| #000000 | 7.88 | 21.00 | 1.00 | 1.00 |
| ##000000 | 7.88 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#B09C1F
Deuteranopia (green-blind)
#B2A139
Tritanopia (blue-blind)
#B4978C
Achromatopsia (no color)
#9E9E9E
Design tokens & code
CSS
--color: #a8a231; /* rgb */ color: rgb(168, 162, 49); /* oklch */ color: oklch(69.7% 0.131 106.3);
Tailwind
colors: {
custom: {
50: '#c5bd71',
500: '#a8a231',
950: '#000000',
},
}SCSS
$custom: #a8a231; $custom-light: #c5bd71; $custom-dark: #000000;
JSON
{
"hex": "#a8a231",
"rgb": {
"r": 168,
"g": 162,
"b": 49
},
"hsl": {
"h": 56.975,
"s": 54.839,
"l": 42.549
},
"oklch": {
"l": 0.69672,
"c": 0.13071,
"h": 106.3
},
"luminance": 0.34387
}Semantic roles & 50–950 ramp
primary
#A8A231
secondary
#7478C1
accent
#51DE4A
background
#FCFBF7
surface
#F8F6ED
border
#D1D0C8
text
#131208
muted
#82817B