#A2B227#A2B227
#A2B227 is a light, vivid yellow. Relative luminance 0.397; OKLCH L 72.7% C 0.155 H 116.3°. Best body text is #000000 at 8.93:1 contrast (WCAG AA passes).
Color values
| HEX | #A2B227 |
|---|---|
| RGB | rgb(162, 178, 39) |
| HSL | hsl(67, 64%, 43%) |
| HSV | hsv(67, 78%, 70%) |
| CMYK | cmyk(9%, 0%, 78.1%, 30.2%) |
| CIE-LAB | lab(69.23, -22.52, 63.42) |
| CIE-LCH | lch(69.23, 67.30, 109.55°) |
| OKLab | oklab(72.71% -0.0685 0.1387) |
| OKLCH | oklch(72.71% 0.155 116.3) |
| XYZ | xyz(31.1877, 39.6691, 7.9330) |
| Luminance | 0.3967 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Puke Green
#9AAE07
ΔE00 1.95
Mustard Green
#A8B504
ΔE00 2.47
Barf Green
#94AC02
ΔE00 2.86
Sick Green
#9DB92C
ΔE00 2.90
Booger Green
#96B403
ΔE00 2.91
Sickly Green
#94B21C
ΔE00 2.95
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A2B227 #3727B2
analogous
#B27C27 #A2B227 #5DB227
triadic
#A2B227 #27A2B2 #B227A2
tetradic
#A2B227 #27B27C #3727B2 #B2275D
square
#A2B227 #27B27C #3727B2 #B2275D
split-complementary
#A2B227 #275DB2 #7C27B2
monochromatic
#474E11 #74801C #A2B227 #C4D541 #D4E073
Accessibility & contrast
On white
2.35
#A2B227 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.93
#A2B227 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #A2B227
8.93:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A2B227 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##A2B227 | 1.00 | 2.35 | 8.93 | 8.93 |
| #FFFFFF | 2.35 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.93 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.93 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#BFA800
Deuteranopia (green-blind)
#BDAA34
Tritanopia (blue-blind)
#ADA898
Achromatopsia (no color)
#A9A9A9
Design tokens & code
CSS
--color: #a2b227; /* rgb */ color: rgb(162, 178, 39); /* oklch */ color: oklch(72.7% 0.155 116.3);
Tailwind
colors: {
custom: {
50: '#c1c86e',
500: '#a2b227',
950: '#000000',
},
}SCSS
$custom: #a2b227; $custom-light: #c1c86e; $custom-dark: #000000;
JSON
{
"hex": "#a2b227",
"rgb": {
"r": 162,
"g": 178,
"b": 39
},
"hsl": {
"h": 66.906,
"s": 64.055,
"l": 42.549
},
"oklch": {
"l": 0.72707,
"c": 0.15471,
"h": 116.3
},
"luminance": 0.39669
}Semantic roles & 50–950 ramp
primary
#A2B227
secondary
#786DC8
accent
#41E754
background
#FCFCF7
surface
#F8F8ED
border
#D1D1C8
text
#131308
muted
#82827B