#BABF40#BABF40
#BABF40 is a light, vivid yellow. Relative luminance 0.481; OKLCH L 77.7% C 0.147 H 111.5°. Best body text is #000000 at 10.61:1 contrast (WCAG AA passes).
Color values
| HEX | #BABF40 |
|---|---|
| RGB | rgb(186, 191, 64) |
| HSL | hsl(62, 50%, 50%) |
| HSV | hsv(62, 66%, 75%) |
| CMYK | cmyk(2.6%, 0%, 66.5%, 25.1%) |
| CIE-LAB | lab(74.87, -17.59, 60.70) |
| CIE-LCH | lch(74.87, 63.20, 106.16°) |
| OKLab | oklab(77.73% -0.0539 0.1365) |
| OKLCH | oklch(77.73% 0.147 111.5) |
| XYZ | xyz(39.8071, 48.0718, 12.0313) |
| Luminance | 0.4807 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Snot
#ACBB0D
ΔE00 3.71
Bile
#B5C306
ΔE00 3.84
Baby Puke Green
#B6C406
ΔE00 3.93
Puke Yellow
#C2BE0E
ΔE00 4.35
Mustard Green
#A8B504
ΔE00 4.42
Pea
#A4BF20
ΔE00 4.93
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#BABF40 #4540BF
analogous
#BF8440 #BABF40 #7BBF40
triadic
#BABF40 #40BABF #BF40BA
tetradic
#BABF40 #40BF84 #4540BF #BF407B
square
#BABF40 #40BF84 #4540BF #BF407B
split-complementary
#BABF40 #407BBF #8440BF
monochromatic
#616321 #8D9131 #BABF40 #CBCE6E #DBDE9C
Accessibility & contrast
On white
1.98
#BABF40 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
10.61
#BABF40 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #BABF40
10.61:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##BABF40 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##BABF40 | 1.00 | 1.98 | 10.61 | 10.61 |
| #FFFFFF | 1.98 | 1.00 | 21.00 | 21.00 |
| #000000 | 10.61 | 21.00 | 1.00 | 1.00 |
| ##000000 | 10.61 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#CDB72E
Deuteranopia (green-blind)
#CEBA49
Tritanopia (blue-blind)
#C6B4A5
Achromatopsia (no color)
#B8B8B8
Design tokens & code
CSS
--color: #babf40; /* rgb */ color: rgb(186, 191, 64); /* oklch */ color: oklch(77.7% 0.147 111.5);
Tailwind
colors: {
custom: {
50: '#d2d27c',
500: '#babf40',
950: '#000000',
},
}SCSS
$custom: #babf40; $custom-light: #d2d27c; $custom-dark: #000000;
JSON
{
"hex": "#babf40",
"rgb": {
"r": 186,
"g": 191,
"b": 64
},
"hsl": {
"h": 62.362,
"s": 49.804,
"l": 50
},
"oklch": {
"l": 0.77731,
"c": 0.14672,
"h": 111.5
},
"luminance": 0.48071
}Semantic roles & 50–950 ramp
primary
#BABF40
secondary
#9391CA
accent
#4ED954
background
#FDFCF7
surface
#FAF9EE
border
#D3D2C9
text
#14140A
muted
#83827C