#A8A31F#A8A31F
#A8A31F is a light, vivid yellow. Relative luminance 0.346; OKLCH L 69.8% C 0.142 H 107.2°. Best body text is #000000 at 7.92:1 contrast (WCAG AA passes).
Color values
| HEX | #A8A31F |
|---|---|
| RGB | rgb(168, 163, 31) |
| HSL | hsl(58, 69%, 39%) |
| HSV | hsv(58, 82%, 66%) |
| CMYK | cmyk(0%, 3%, 81.5%, 34.1%) |
| CIE-LAB | lab(65.45, -12.57, 62.57) |
| CIE-LCH | lch(65.45, 63.82, 101.36°) |
| OKLab | oklab(69.79% -0.0419 0.1352) |
| OKLCH | oklch(69.79% 0.142 107.2) |
| XYZ | xyz(29.4942, 34.6192, 6.4246) |
| Luminance | 0.3462 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Puke
#A5A502
ΔE00 1.79
Vomit
#A2A415
ΔE00 1.83
Pea Soup
#929901
ΔE00 4.92
Muddy Yellow
#BFAC05
ΔE00 5.50
Baby Poop Green
#8F9805
ΔE00 5.59
Pea Soup Green
#94A617
ΔE00 5.65
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A8A31F #1F24A8
analogous
#A85F1F #A8A31F #69A81F
triadic
#A8A31F #1FA8A3 #A31FA8
tetradic
#A8A31F #1FA85F #1F24A8 #A81F69
square
#A8A31F #1FA85F #1F24A8 #A81F69
split-complementary
#A8A31F #1F69A8 #5F1FA8
monochromatic
#413F0C #747115 #A8A31F #D8D22C #E2DD60
Accessibility & contrast
On white
2.65
#A8A31F on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
7.92
#A8A31F on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #A8A31F
7.92:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A8A31F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##A8A31F | 1.00 | 2.65 | 7.92 | 7.92 |
| #FFFFFF | 2.65 | 1.00 | 21.00 | 21.00 |
| #000000 | 7.92 | 21.00 | 1.00 | 1.00 |
| ##000000 | 7.92 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#B19C00
Deuteranopia (green-blind)
#B4A12B
Tritanopia (blue-blind)
#B5988B
Achromatopsia (no color)
#9F9F9F
Design tokens & code
CSS
--color: #a8a31f; /* rgb */ color: rgb(168, 163, 31); /* oklch */ color: oklch(69.8% 0.142 107.2);
Tailwind
colors: {
custom: {
50: '#c6bd68',
500: '#a8a31f',
950: '#000000',
},
}SCSS
$custom: #a8a31f; $custom-light: #c6bd68; $custom-dark: #000000;
JSON
{
"hex": "#a8a31f",
"rgb": {
"r": 168,
"g": 163,
"b": 31
},
"hsl": {
"h": 57.81,
"s": 68.844,
"l": 39.02
},
"oklch": {
"l": 0.69786,
"c": 0.14153,
"h": 107.2
},
"luminance": 0.34618
}Semantic roles & 50–950 ramp
primary
#A8A31F
secondary
#5D60C6
accent
#43EC3C
background
#FCFBF6
surface
#F9F6EB
border
#D2D0C6
text
#131207
muted
#82817A