#A6B228#A6B228
#A6B228 is a light, vivid yellow. Relative luminance 0.401; OKLCH L 73.0% C 0.153 H 114.7°. Best body text is #000000 at 9.02:1 contrast (WCAG AA passes).
Color values
| HEX | #A6B228 |
|---|---|
| RGB | rgb(166, 178, 40) |
| HSL | hsl(65, 63%, 43%) |
| HSV | hsv(65, 78%, 70%) |
| CMYK | cmyk(6.7%, 0%, 77.5%, 30.2%) |
| CIE-LAB | lab(69.54, -20.77, 63.51) |
| CIE-LCH | lch(69.54, 66.82, 108.11°) |
| OKLab | oklab(73.03% -0.0638 0.1389) |
| OKLCH | oklch(73.03% 0.153 114.7) |
| XYZ | xyz(32.0302, 40.1016, 8.0601) |
| Luminance | 0.4010 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Mustard Green
#A8B504
ΔE00 2.08
Puke Green
#9AAE07
ΔE00 2.49
Snot
#ACBB0D
ΔE00 3.07
Barf Green
#94AC02
ΔE00 3.54
Sick Green
#9DB92C
ΔE00 3.66
Booger Green
#96B403
ΔE00 3.73
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A6B228 #3428B2
analogous
#B27928 #A6B228 #61B228
triadic
#A6B228 #28A6B2 #B228A6
tetradic
#A6B228 #28B279 #3428B2 #B22861
square
#A6B228 #28B279 #3428B2 #B22861
split-complementary
#A6B228 #2861B2 #7928B2
monochromatic
#494E12 #77801D #A6B228 #C8D543 #D7E075
Accessibility & contrast
On white
2.33
#A6B228 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.02
#A6B228 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #A6B228
9.02:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A6B228 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##A6B228 | 1.00 | 2.33 | 9.02 | 9.02 |
| #FFFFFF | 2.33 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.02 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.02 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#BFA900
Deuteranopia (green-blind)
#BFAB35
Tritanopia (blue-blind)
#B1A798
Achromatopsia (no color)
#AAAAAA
Design tokens & code
CSS
--color: #a6b228; /* rgb */ color: rgb(166, 178, 40); /* oklch */ color: oklch(73.0% 0.153 114.7);
Tailwind
colors: {
custom: {
50: '#c4c86e',
500: '#a6b228',
950: '#000000',
},
}SCSS
$custom: #a6b228; $custom-light: #c4c86e; $custom-dark: #000000;
JSON
{
"hex": "#a6b228",
"rgb": {
"r": 166,
"g": 178,
"b": 40
},
"hsl": {
"h": 65.217,
"s": 63.303,
"l": 42.745
},
"oklch": {
"l": 0.73032,
"c": 0.15289,
"h": 114.7
},
"luminance": 0.40101
}Semantic roles & 50–950 ramp
primary
#A6B228
secondary
#766FC7
accent
#41E650
background
#FCFCF7
surface
#F8F8ED
border
#D1D1C8
text
#131308
muted
#82827B