#A7B228#A7B228
#A7B228 is a light, vivid yellow. Relative luminance 0.402; OKLCH L 73.1% C 0.153 H 114.3°. Best body text is #000000 at 9.04:1 contrast (WCAG AA passes).
Color values
| HEX | #A7B228 |
|---|---|
| RGB | rgb(167, 178, 40) |
| HSL | hsl(65, 63%, 43%) |
| HSV | hsv(65, 78%, 70%) |
| CMYK | cmyk(6.2%, 0%, 77.5%, 30.2%) |
| CIE-LAB | lab(69.62, -20.34, 63.61) |
| CIE-LCH | lch(69.62, 66.78, 107.73°) |
| OKLab | oklab(73.11% -0.0627 0.1391) |
| OKLCH | oklch(73.11% 0.153 114.3) |
| XYZ | xyz(32.2407, 40.2101, 8.0700) |
| Luminance | 0.4021 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Mustard Green
#A8B504
ΔE00 2.03
Puke Green
#9AAE07
ΔE00 2.66
Snot
#ACBB0D
ΔE00 3.04
Barf Green
#94AC02
ΔE00 3.72
Sick Green
#9DB92C
ΔE00 3.87
Booger Green
#96B403
ΔE00 3.95
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A7B228 #3328B2
analogous
#B27828 #A7B228 #62B228
triadic
#A7B228 #28A7B2 #B228A7
tetradic
#A7B228 #28B278 #3328B2 #B22862
square
#A7B228 #28B278 #3328B2 #B22862
split-complementary
#A7B228 #2862B2 #7828B2
monochromatic
#494E12 #78801D #A7B228 #C9D543 #D7E075
Accessibility & contrast
On white
2.32
#A7B228 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.04
#A7B228 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #A7B228
9.04:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A7B228 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##A7B228 | 1.00 | 2.32 | 9.04 | 9.04 |
| #FFFFFF | 2.32 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.04 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.04 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#BFA900
Deuteranopia (green-blind)
#BFAB35
Tritanopia (blue-blind)
#B2A798
Achromatopsia (no color)
#AAAAAA
Design tokens & code
CSS
--color: #a7b228; /* rgb */ color: rgb(167, 178, 40); /* oklch */ color: oklch(73.1% 0.153 114.3);
Tailwind
colors: {
custom: {
50: '#c5c86e',
500: '#a7b228',
950: '#000000',
},
}SCSS
$custom: #a7b228; $custom-light: #c5c86e; $custom-dark: #000000;
JSON
{
"hex": "#a7b228",
"rgb": {
"r": 167,
"g": 178,
"b": 40
},
"hsl": {
"h": 64.783,
"s": 63.303,
"l": 42.745
},
"oklch": {
"l": 0.73113,
"c": 0.15257,
"h": 114.3
},
"luminance": 0.40209
}Semantic roles & 50–950 ramp
primary
#A7B228
secondary
#766FC7
accent
#41E64F
background
#FCFCF7
surface
#F8F8ED
border
#D1D1C8
text
#131308
muted
#82827B