#A2B231#A2B231
#A2B231 is a light, vivid yellow. Relative luminance 0.397; OKLCH L 72.8% C 0.149 H 116.4°. Best body text is #000000 at 8.95:1 contrast (WCAG AA passes).
Color values
| HEX | #A2B231 |
|---|---|
| RGB | rgb(162, 178, 49) |
| HSL | hsl(67, 57%, 45%) |
| HSV | hsv(67, 72%, 70%) |
| CMYK | cmyk(9%, 0%, 72.5%, 30.2%) |
| CIE-LAB | lab(69.29, -22.06, 60.17) |
| CIE-LCH | lch(69.29, 64.09, 110.13°) |
| OKLab | oklab(72.77% -0.0664 0.1336) |
| OKLCH | oklch(72.77% 0.149 116.4) |
| XYZ | xyz(31.3758, 39.7444, 8.9237) |
| Luminance | 0.3974 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Puke Green
#9AAE07
ΔE00 2.57
Booger
#9BB53C
ΔE00 2.72
Sick Green
#9DB92C
ΔE00 2.80
Sickly Green
#94B21C
ΔE00 3.00
Barf Green
#94AC02
ΔE00 3.24
Mustard Green
#A8B504
ΔE00 3.27
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A2B231 #4131B2
analogous
#B28231 #A2B231 #62B231
triadic
#A2B231 #31A2B2 #B231A2
tetradic
#A2B231 #31B282 #4131B2 #B23162
square
#A2B231 #31B282 #4131B2 #B23162
split-complementary
#A2B231 #3162B2 #8231B2
monochromatic
#4B5217 #768224 #A2B231 #BFCF51 #D1DC81
Accessibility & contrast
On white
2.35
#A2B231 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.95
#A2B231 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #A2B231
8.95:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A2B231 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##A2B231 | 1.00 | 2.35 | 8.95 | 8.95 |
| #FFFFFF | 2.35 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.95 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.95 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#BEA919
Deuteranopia (green-blind)
#BDAA3C
Tritanopia (blue-blind)
#ACA899
Achromatopsia (no color)
#A9A9A9
Design tokens & code
CSS
--color: #a2b231; /* rgb */ color: rgb(162, 178, 49); /* oklch */ color: oklch(72.8% 0.149 116.4);
Tailwind
colors: {
custom: {
50: '#c1c872',
500: '#a2b231',
950: '#000000',
},
}SCSS
$custom: #a2b231; $custom-light: #c1c872; $custom-dark: #000000;
JSON
{
"hex": "#a2b231",
"rgb": {
"r": 162,
"g": 178,
"b": 49
},
"hsl": {
"h": 67.442,
"s": 56.828,
"l": 44.51
},
"oklch": {
"l": 0.72768,
"c": 0.14916,
"h": 116.4
},
"luminance": 0.39744
}Semantic roles & 50–950 ramp
primary
#A2B231
secondary
#8379C5
accent
#48E05B
background
#FCFCF7
surface
#F8F8ED
border
#D1D1C8
text
#131308
muted
#82827B