#A5B331#A5B331
#A5B331 is a light, vivid yellow. Relative luminance 0.405; OKLCH L 73.2% C 0.149 H 115.6°. Best body text is #000000 at 9.09:1 contrast (WCAG AA passes).
Color values
| HEX | #A5B331 |
|---|---|
| RGB | rgb(165, 179, 49) |
| HSL | hsl(66, 57%, 45%) |
| HSV | hsv(66, 73%, 70%) |
| CMYK | cmyk(7.8%, 0%, 72.6%, 29.8%) |
| CIE-LAB | lab(69.80, -21.28, 60.74) |
| CIE-LCH | lch(69.80, 64.36, 109.31°) |
| OKLab | oklab(73.23% -0.0644 0.1347) |
| OKLCH | oklch(73.23% 0.149 115.6) |
| XYZ | xyz(32.1924, 40.4618, 9.0192) |
| Luminance | 0.4046 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Puke Green
#9AAE07
ΔE00 2.79
Mustard Green
#A8B504
ΔE00 2.86
Sick Green
#9DB92C
ΔE00 3.05
Booger
#9BB53C
ΔE00 3.20
Sickly Green
#94B21C
ΔE00 3.49
Snot
#ACBB0D
ΔE00 3.51
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A5B331 #3F31B3
analogous
#B38031 #A5B331 #64B331
triadic
#A5B331 #31A5B3 #B331A5
tetradic
#A5B331 #31B380 #3F31B3 #B33164
square
#A5B331 #31B380 #3F31B3 #B33164
split-complementary
#A5B331 #3164B3 #8031B3
monochromatic
#4C5317 #798324 #A5B331 #C2D052 #D3DD82
Accessibility & contrast
On white
2.31
#A5B331 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.09
#A5B331 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #A5B331
9.09:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A5B331 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##A5B331 | 1.00 | 2.31 | 9.09 | 9.09 |
| #FFFFFF | 2.31 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.09 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.09 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#C0AA18
Deuteranopia (green-blind)
#BFAC3C
Tritanopia (blue-blind)
#B0A99A
Achromatopsia (no color)
#ABABAB
Design tokens & code
CSS
--color: #a5b331; /* rgb */ color: rgb(165, 179, 49); /* oklch */ color: oklch(73.2% 0.149 115.6);
Tailwind
colors: {
custom: {
50: '#c3c972',
500: '#a5b331',
950: '#000000',
},
}SCSS
$custom: #a5b331; $custom-light: #c3c972; $custom-dark: #000000;
JSON
{
"hex": "#a5b331",
"rgb": {
"r": 165,
"g": 179,
"b": 49
},
"hsl": {
"h": 66.462,
"s": 57.018,
"l": 44.706
},
"oklch": {
"l": 0.73234,
"c": 0.14931,
"h": 115.6
},
"luminance": 0.40461
}Semantic roles & 50–950 ramp
primary
#A5B331
secondary
#827AC6
accent
#48E058
background
#FCFCF7
surface
#F8F8ED
border
#D1D1C8
text
#131308
muted
#82827B