#A8B228#A8B228
#A8B228 is a light, vivid yellow. Relative luminance 0.403; OKLCH L 73.2% C 0.152 H 113.9°. Best body text is #000000 at 9.06:1 contrast (WCAG AA passes).
Color values
| HEX | #A8B228 |
|---|---|
| RGB | rgb(168, 178, 40) |
| HSL | hsl(64, 63%, 43%) |
| HSV | hsv(64, 78%, 70%) |
| CMYK | cmyk(5.6%, 0%, 77.5%, 30.2%) |
| CIE-LAB | lab(69.70, -19.91, 63.71) |
| CIE-LCH | lch(69.70, 66.75, 107.36°) |
| OKLab | oklab(73.19% -0.0616 0.1393) |
| OKLCH | oklch(73.19% 0.152 113.9) |
| XYZ | xyz(32.4529, 40.3195, 8.0800) |
| Luminance | 0.4032 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Mustard Green
#A8B504
ΔE00 2.00
Puke Green
#9AAE07
ΔE00 2.84
Snot
#ACBB0D
ΔE00 3.02
Barf Green
#94AC02
ΔE00 3.92
Sick Green
#9DB92C
ΔE00 4.09
Booger Green
#96B403
ΔE00 4.16
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A8B228 #3228B2
analogous
#B27728 #A8B228 #63B228
triadic
#A8B228 #28A8B2 #B228A8
tetradic
#A8B228 #28B277 #3228B2 #B22863
square
#A8B228 #28B277 #3228B2 #B22863
split-complementary
#A8B228 #2863B2 #7728B2
monochromatic
#4A4E12 #79801D #A8B228 #CAD543 #D8E075
Accessibility & contrast
On white
2.32
#A8B228 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.06
#A8B228 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #A8B228
9.06:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A8B228 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##A8B228 | 1.00 | 2.32 | 9.06 | 9.06 |
| #FFFFFF | 2.32 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.06 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.06 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#BFA900
Deuteranopia (green-blind)
#BFAC35
Tritanopia (blue-blind)
#B4A798
Achromatopsia (no color)
#AAAAAA
Design tokens & code
CSS
--color: #a8b228; /* rgb */ color: rgb(168, 178, 40); /* oklch */ color: oklch(73.2% 0.152 113.9);
Tailwind
colors: {
custom: {
50: '#c6c86e',
500: '#a8b228',
950: '#000000',
},
}SCSS
$custom: #a8b228; $custom-light: #c6c86e; $custom-dark: #000000;
JSON
{
"hex": "#a8b228",
"rgb": {
"r": 168,
"g": 178,
"b": 40
},
"hsl": {
"h": 64.348,
"s": 63.303,
"l": 42.745
},
"oklch": {
"l": 0.73195,
"c": 0.15227,
"h": 113.9
},
"luminance": 0.40319
}Semantic roles & 50–950 ramp
primary
#A8B228
secondary
#756FC7
accent
#41E64D
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#131308
muted
#82827B