#BAB227#BAB227
#BAB227 is a light, vivid yellow. Relative luminance 0.424; OKLCH L 74.7% C 0.149 H 106.0°. Best body text is #000000 at 9.49:1 contrast (WCAG AA passes).
Color values
| HEX | #BAB227 |
|---|---|
| RGB | rgb(186, 178, 39) |
| HSL | hsl(57, 65%, 44%) |
| HSV | hsv(57, 79%, 73%) |
| CMYK | cmyk(0%, 4.3%, 79%, 27.1%) |
| CIE-LAB | lab(71.16, -12.15, 65.88) |
| CIE-LCH | lch(71.16, 66.99, 100.45°) |
| OKLab | oklab(74.73% -0.041 0.143) |
| OKLCH | oklch(74.73% 0.149 106) |
| XYZ | xyz(36.5379, 42.4278, 8.1838) |
| Luminance | 0.4243 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Olive Yellow
#C2B709
ΔE00 2.53
Muddy Yellow
#BFAC05
ΔE00 3.49
Puke Yellow
#C2BE0E
ΔE00 3.71
Vomit Yellow
#C7C10C
ΔE00 4.51
Puke
#A5A502
ΔE00 4.67
Brownish Yellow
#C9B003
ΔE00 4.88
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#BAB227 #272FBA
analogous
#BA6927 #BAB227 #79BA27
triadic
#BAB227 #27BAB2 #B227BA
tetradic
#BAB227 #27BA69 #272FBA #BA2779
square
#BAB227 #27BA69 #272FBA #BA2779
split-complementary
#BAB227 #2779BA #6927BA
monochromatic
#555112 #87821C #BAB227 #D8D046 #E3DD79
Accessibility & contrast
On white
2.21
#BAB227 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.49
#BAB227 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #BAB227
9.49:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##BAB227 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##BAB227 | 1.00 | 2.21 | 9.49 | 9.49 |
| #FFFFFF | 2.21 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.49 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.49 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#C2AB00
Deuteranopia (green-blind)
#C5B133
Tritanopia (blue-blind)
#C8A699
Achromatopsia (no color)
#AEAEAE
Design tokens & code
CSS
--color: #bab227; /* rgb */ color: rgb(186, 178, 39); /* oklch */ color: oklch(74.7% 0.149 106.0);
Tailwind
colors: {
custom: {
50: '#d3c86e',
500: '#bab227',
950: '#000000',
},
}SCSS
$custom: #bab227; $custom-light: #d3c86e; $custom-dark: #000000;
JSON
{
"hex": "#bab227",
"rgb": {
"r": 186,
"g": 178,
"b": 39
},
"hsl": {
"h": 56.735,
"s": 65.333,
"l": 44.118
},
"oklch": {
"l": 0.74726,
"c": 0.14876,
"h": 106
},
"luminance": 0.42426
}Semantic roles & 50–950 ramp
primary
#BAB227
secondary
#7277CB
accent
#49E840
background
#FDFCF7
surface
#FBF8ED
border
#D4D1C8
text
#151308
muted
#83827B