#A8B227#A8B227
#A8B227 is a light, vivid yellow. Relative luminance 0.403; OKLCH L 73.2% C 0.153 H 113.9°. Best body text is #000000 at 9.06:1 contrast (WCAG AA passes).
Color values
| HEX | #A8B227 |
|---|---|
| RGB | rgb(168, 178, 39) |
| HSL | hsl(64, 64%, 43%) |
| HSV | hsv(64, 78%, 70%) |
| CMYK | cmyk(5.6%, 0%, 78.1%, 30.2%) |
| CIE-LAB | lab(69.69, -19.95, 64.01) |
| CIE-LCH | lch(69.69, 67.04, 107.31°) |
| OKLab | oklab(73.19% -0.0618 0.1397) |
| OKLCH | oklch(73.19% 0.153 113.9) |
| XYZ | xyz(32.4361, 40.3128, 7.9915) |
| Luminance | 0.4031 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Mustard Green
#A8B504
ΔE00 1.93
Puke Green
#9AAE07
ΔE00 2.82
Snot
#ACBB0D
ΔE00 2.98
Barf Green
#94AC02
ΔE00 3.91
Sick Green
#9DB92C
ΔE00 4.11
Booger Green
#96B403
ΔE00 4.16
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A8B227 #3127B2
analogous
#B27727 #A8B227 #62B227
triadic
#A8B227 #27A8B2 #B227A8
tetradic
#A8B227 #27B277 #3127B2 #B22762
square
#A8B227 #27B277 #3127B2 #B22762
split-complementary
#A8B227 #2762B2 #7727B2
monochromatic
#494E11 #79801C #A8B227 #CBD541 #D8E073
Accessibility & contrast
On white
2.32
#A8B227 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.06
#A8B227 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #A8B227
9.06:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A8B227 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##A8B227 | 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)
#C0A900
Deuteranopia (green-blind)
#BFAC34
Tritanopia (blue-blind)
#B4A798
Achromatopsia (no color)
#AAAAAA
Design tokens & code
CSS
--color: #a8b227; /* rgb */ color: rgb(168, 178, 39); /* oklch */ color: oklch(73.2% 0.153 113.9);
Tailwind
colors: {
custom: {
50: '#c6c86e',
500: '#a8b227',
950: '#000000',
},
}SCSS
$custom: #a8b227; $custom-light: #c6c86e; $custom-dark: #000000;
JSON
{
"hex": "#a8b227",
"rgb": {
"r": 168,
"g": 178,
"b": 39
},
"hsl": {
"h": 64.317,
"s": 64.055,
"l": 42.549
},
"oklch": {
"l": 0.73189,
"c": 0.15277,
"h": 113.9
},
"luminance": 0.40312
}Semantic roles & 50–950 ramp
primary
#A8B227
secondary
#746DC8
accent
#41E74D
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#131308
muted
#82827B