#A5A231#A5A231
#A5A231 is a light, vivid yellow. Relative luminance 0.341; OKLCH L 69.4% C 0.131 H 107.9°. Best body text is #000000 at 7.81:1 contrast (WCAG AA passes).
Color values
| HEX | #A5A231 |
|---|---|
| RGB | rgb(165, 162, 49) |
| HSL | hsl(58, 54%, 42%) |
| HSV | hsv(58, 70%, 65%) |
| CMYK | cmyk(0%, 1.8%, 70.3%, 35.3%) |
| CIE-LAB | lab(65.01, -12.61, 56.07) |
| CIE-LCH | lch(65.01, 57.48, 102.68°) |
| OKLab | oklab(69.41% -0.0402 0.1248) |
| OKLCH | oklch(69.41% 0.131 107.9) |
| XYZ | xyz(28.9928, 34.0627, 7.9527) |
| Luminance | 0.3406 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Vomit
#A2A415
ΔE00 2.52
Puke
#A5A502
ΔE00 3.22
Pea Soup
#929901
ΔE00 4.70
Baby Poop Green
#8F9805
ΔE00 5.20
Pea Soup Green
#94A617
ΔE00 5.24
Puke Green
#9AAE07
ΔE00 6.28
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A5A231 #3134A5
analogous
#A56831 #A5A231 #6EA531
triadic
#A5A231 #31A5A2 #A231A5
tetradic
#A5A231 #31A568 #3134A5 #A5316E
square
#A5A231 #31A568 #3134A5 #A5316E
split-complementary
#A5A231 #316EA5 #6831A5
monochromatic
#474515 #767423 #A5A231 #C9C64A #D7D579
Accessibility & contrast
On white
2.69
#A5A231 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
7.81
#A5A231 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #A5A231
7.81:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A5A231 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##A5A231 | 1.00 | 2.69 | 7.81 | 7.81 |
| #FFFFFF | 2.69 | 1.00 | 21.00 | 21.00 |
| #000000 | 7.81 | 21.00 | 1.00 | 1.00 |
| ##000000 | 7.81 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#AF9C1F
Deuteranopia (green-blind)
#B1A039
Tritanopia (blue-blind)
#B1978C
Achromatopsia (no color)
#9E9E9E
Design tokens & code
CSS
--color: #a5a231; /* rgb */ color: rgb(165, 162, 49); /* oklch */ color: oklch(69.4% 0.131 107.9);
Tailwind
colors: {
custom: {
50: '#c3bd71',
500: '#a5a231',
950: '#000000',
},
}SCSS
$custom: #a5a231; $custom-light: #c3bd71; $custom-dark: #000000;
JSON
{
"hex": "#a5a231",
"rgb": {
"r": 165,
"g": 162,
"b": 49
},
"hsl": {
"h": 58.448,
"s": 54.206,
"l": 41.961
},
"oklch": {
"l": 0.69405,
"c": 0.13115,
"h": 107.9
},
"luminance": 0.34062
}Semantic roles & 50–950 ramp
primary
#A5A231
secondary
#7274C0
accent
#4EDE4A
background
#FCFBF7
surface
#F8F6ED
border
#D1D0C8
text
#131208
muted
#82817B