#BAC42F#BAC42F
#BAC42F is a light, vivid yellow. Relative luminance 0.501; OKLCH L 78.7% C 0.162 H 113.5°. Best body text is #000000 at 11.02:1 contrast (WCAG AA passes).
Color values
| HEX | #BAC42F |
|---|---|
| RGB | rgb(186, 196, 47) |
| HSL | hsl(64, 61%, 48%) |
| HSV | hsv(64, 76%, 77%) |
| CMYK | cmyk(5.1%, 0%, 76%, 23.1%) |
| CIE-LAB | lab(76.15, -20.92, 67.95) |
| CIE-LCH | lch(76.15, 71.10, 107.11°) |
| OKLab | oklab(78.72% -0.0647 0.1489) |
| OKLCH | oklch(78.72% 0.162 113.5) |
| XYZ | xyz(40.5040, 50.1251, 10.2302) |
| Luminance | 0.5012 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Bile
#B5C306
ΔE00 1.88
Baby Puke Green
#B6C406
ΔE00 1.88
Snot
#ACBB0D
ΔE00 2.98
Green Yellow
#B5CE08
ΔE00 3.77
Puke Yellow
#C2BE0E
ΔE00 4.02
Pea
#A4BF20
ΔE00 4.13
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#BAC42F #392FC4
analogous
#C4842F #BAC42F #6FC42F
triadic
#BAC42F #2FBAC4 #C42FBA
tetradic
#BAC42F #2FC484 #392FC4 #C42F6F
square
#BAC42F #2FC484 #392FC4 #C42F6F
split-complementary
#BAC42F #2F6FC4 #842FC4
monochromatic
#5C6117 #8B9323 #BAC42F #CFD759 #DDE38A
Accessibility & contrast
On white
1.90
#BAC42F on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
11.02
#BAC42F on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #BAC42F
11.02:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##BAC42F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##BAC42F | 1.00 | 1.90 | 11.02 | 11.02 |
| #FFFFFF | 1.90 | 1.00 | 21.00 | 21.00 |
| #000000 | 11.02 | 21.00 | 1.00 | 1.00 |
| ##000000 | 11.02 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#D3BA05
Deuteranopia (green-blind)
#D3BD3C
Tritanopia (blue-blind)
#C7B8A8
Achromatopsia (no color)
#BCBCBC
Design tokens & code
CSS
--color: #bac42f; /* rgb */ color: rgb(186, 196, 47); /* oklch */ color: oklch(78.7% 0.162 113.5);
Tailwind
colors: {
custom: {
50: '#d3d574',
500: '#bac42f',
950: '#000000',
},
}SCSS
$custom: #bac42f; $custom-light: #d3d574; $custom-dark: #000000;
JSON
{
"hex": "#bac42f",
"rgb": {
"r": 186,
"g": 196,
"b": 47
},
"hsl": {
"h": 64.027,
"s": 61.317,
"l": 47.647
},
"oklch": {
"l": 0.7872,
"c": 0.16234,
"h": 113.5
},
"luminance": 0.50124
}Semantic roles & 50–950 ramp
primary
#BAC42F
secondary
#302B6C
accent
#43E44E
background
#FEFEFB
surface
#FBFBF1
border
#D4D4CB
text
#151409
muted
#84837D