#A8A51F#A8A51F
#A8A51F is a light, vivid yellow. Relative luminance 0.353; OKLCH L 70.2% C 0.143 H 108.2°. Best body text is #000000 at 8.07:1 contrast (WCAG AA passes).
Color values
| HEX | #A8A51F |
|---|---|
| RGB | rgb(168, 165, 31) |
| HSL | hsl(59, 69%, 39%) |
| HSV | hsv(59, 82%, 66%) |
| CMYK | cmyk(0%, 1.8%, 81.5%, 34.1%) |
| CIE-LAB | lab(66.01, -13.61, 63.05) |
| CIE-LCH | lch(66.01, 64.51, 102.18°) |
| OKLab | oklab(70.23% -0.0448 0.1362) |
| OKLCH | oklch(70.23% 0.143 108.2) |
| XYZ | xyz(29.8521, 35.3350, 6.5439) |
| Luminance | 0.3533 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Puke
#A5A502
ΔE00 1.40
Vomit
#A2A415
ΔE00 1.42
Pea Soup
#929901
ΔE00 5.02
Pea Soup Green
#94A617
ΔE00 5.19
Mustard Green
#A8B504
ΔE00 5.48
Puke Green
#9AAE07
ΔE00 5.54
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A8A51F #1F22A8
analogous
#A8611F #A8A51F #67A81F
triadic
#A8A51F #1FA8A5 #A51FA8
tetradic
#A8A51F #1FA861 #1F22A8 #A81F67
square
#A8A51F #1FA861 #1F22A8 #A81F67
split-complementary
#A8A51F #1F67A8 #611FA8
monochromatic
#41400C #747215 #A8A51F #D8D42C #E2DF60
Accessibility & contrast
On white
2.60
#A8A51F on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.07
#A8A51F on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #A8A51F
8.07:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A8A51F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##A8A51F | 1.00 | 2.60 | 8.07 | 8.07 |
| #FFFFFF | 2.60 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.07 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.07 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#B39E00
Deuteranopia (green-blind)
#B5A22C
Tritanopia (blue-blind)
#B59A8D
Achromatopsia (no color)
#A0A0A0
Design tokens & code
CSS
--color: #a8a51f; /* rgb */ color: rgb(168, 165, 31); /* oklch */ color: oklch(70.2% 0.143 108.2);
Tailwind
colors: {
custom: {
50: '#c6bf69',
500: '#a8a51f',
950: '#000000',
},
}SCSS
$custom: #a8a51f; $custom-light: #c6bf69; $custom-dark: #000000;
JSON
{
"hex": "#a8a51f",
"rgb": {
"r": 168,
"g": 165,
"b": 31
},
"hsl": {
"h": 58.686,
"s": 68.844,
"l": 39.02
},
"oklch": {
"l": 0.70231,
"c": 0.1434,
"h": 108.2
},
"luminance": 0.35334
}Semantic roles & 50–950 ramp
primary
#A8A51F
secondary
#5D5FC6
accent
#40EC3C
background
#FCFBF6
surface
#F9F6EB
border
#D2D0C6
text
#131207
muted
#82817A