#BAB242#BAB242
#BAB242 is a light, vivid yellow. Relative luminance 0.427; OKLCH L 74.9% C 0.132 H 105.2°. Best body text is #000000 at 9.53:1 contrast (WCAG AA passes).
Color values
| HEX | #BAB242 |
|---|---|
| RGB | rgb(186, 178, 66) |
| HSL | hsl(56, 48%, 49%) |
| HSV | hsv(56, 65%, 73%) |
| CMYK | cmyk(0%, 4.3%, 64.5%, 27.1%) |
| CIE-LAB | lab(71.33, -10.85, 56.22) |
| CIE-LCH | lch(71.33, 57.26, 100.92°) |
| OKLab | oklab(74.91% -0.0347 0.1273) |
| OKLCH | oklch(74.91% 0.132 105.2) |
| XYZ | xyz(37.1548, 42.6746, 11.4331) |
| Luminance | 0.4267 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Olive Yellow
#C2B709
ΔE00 4.75
Muddy Yellow
#BFAC05
ΔE00 5.13
Puke Yellow
#C2BE0E
ΔE00 5.49
Darkkhaki
#BDB76B
ΔE00 5.61
Puke
#A5A502
ΔE00 5.64
Vomit
#A2A415
ΔE00 5.76
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#BAB242 #424ABA
analogous
#BA7642 #BAB242 #86BA42
triadic
#BAB242 #42BAB2 #B242BA
tetradic
#BAB242 #42BA76 #424ABA #BA4286
square
#BAB242 #42BA76 #424ABA #BA4286
split-complementary
#BAB242 #4286BA #7642BA
monochromatic
#605C22 #8D8732 #BAB242 #CBC56E #DBD79B
Accessibility & contrast
On white
2.20
#BAB242 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.53
#BAB242 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #BAB242
9.53:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##BAB242 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##BAB242 | 1.00 | 2.20 | 9.53 | 9.53 |
| #FFFFFF | 2.20 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.53 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.53 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#C1AC34
Deuteranopia (green-blind)
#C4B149
Tritanopia (blue-blind)
#C7A79B
Achromatopsia (no color)
#AFAFAF
Design tokens & code
CSS
--color: #bab242; /* rgb */ color: rgb(186, 178, 66); /* oklch */ color: oklch(74.9% 0.132 105.2);
Tailwind
colors: {
custom: {
50: '#d2c87c',
500: '#bab242',
950: '#000000',
},
}SCSS
$custom: #bab242; $custom-light: #d2c87c; $custom-dark: #000000;
JSON
{
"hex": "#bab242",
"rgb": {
"r": 186,
"g": 178,
"b": 66
},
"hsl": {
"h": 56,
"s": 47.619,
"l": 49.412
},
"oklch": {
"l": 0.74914,
"c": 0.13195,
"h": 105.2
},
"luminance": 0.42673
}Semantic roles & 50–950 ramp
primary
#BAB242
secondary
#9094C8
accent
#5AD751
background
#FDFCF7
surface
#FAF8EE
border
#D3D1C9
text
#14130A
muted
#83827C