#BAC838#BAC838
#BAC838 is a light, vivid yellow. Relative luminance 0.520; OKLCH L 79.7% C 0.162 H 115.0°. Best body text is #000000 at 11.41:1 contrast (WCAG AA passes).
Color values
| HEX | #BAC838 |
|---|---|
| RGB | rgb(186, 200, 56) |
| HSL | hsl(66, 57%, 50%) |
| HSV | hsv(66, 72%, 78%) |
| CMYK | cmyk(7%, 0%, 72%, 21.6%) |
| CIE-LAB | lab(77.30, -22.48, 66.07) |
| CIE-LCH | lch(77.30, 69.79, 108.79°) |
| OKLab | oklab(79.66% -0.0683 0.1465) |
| OKLCH | oklch(79.66% 0.162 115) |
| XYZ | xyz(41.6189, 52.0339, 11.5917) |
| Luminance | 0.5203 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Baby Puke Green
#B6C406
ΔE00 2.62
Bile
#B5C306
ΔE00 2.68
Green Yellow
#B5CE08
ΔE00 3.19
Snot
#ACBB0D
ΔE00 3.84
Pea
#A4BF20
ΔE00 3.98
Gross Green
#A0BF16
ΔE00 4.63
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#BAC838 #4638C8
analogous
#C88E38 #BAC838 #72C838
triadic
#BAC838 #38BAC8 #C838BA
tetradic
#BAC838 #38C88E #4638C8 #C83872
square
#BAC838 #38C88E #4638C8 #C83872
split-complementary
#BAC838 #3872C8 #8E38C8
monochromatic
#61691D #8E992A #BAC838 #CBD568 #DBE398
Accessibility & contrast
On white
1.84
#BAC838 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
11.41
#BAC838 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #BAC838
11.41:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##BAC838 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##BAC838 | 1.00 | 1.84 | 11.41 | 11.41 |
| #FFFFFF | 1.84 | 1.00 | 21.00 | 21.00 |
| #000000 | 11.41 | 21.00 | 1.00 | 1.00 |
| ##000000 | 11.41 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#D6BE1C
Deuteranopia (green-blind)
#D5C044
Tritanopia (blue-blind)
#C6BCAC
Achromatopsia (no color)
#BFBFBF
Design tokens & code
CSS
--color: #bac838; /* rgb */ color: rgb(186, 200, 56); /* oklch */ color: oklch(79.7% 0.162 115.0);
Tailwind
colors: {
custom: {
50: '#d2d879',
500: '#bac838',
950: '#000000',
},
}SCSS
$custom: #bac838; $custom-light: #d2d879; $custom-dark: #000000;
JSON
{
"hex": "#bac838",
"rgb": {
"r": 186,
"g": 200,
"b": 56
},
"hsl": {
"h": 65.833,
"s": 56.693,
"l": 50.196
},
"oklch": {
"l": 0.79661,
"c": 0.1616,
"h": 115
},
"luminance": 0.52033
}Semantic roles & 50–950 ramp
primary
#BAC838
secondary
#383273
accent
#48E057
background
#FEFEFB
surface
#FBFBF2
border
#D4D4CC
text
#15140A
muted
#84837D