#BAB840#BAB840
#BAB840 is a light, vivid yellow. Relative luminance 0.451; OKLCH L 76.2% C 0.139 H 108.4°. Best body text is #000000 at 10.02:1 contrast (WCAG AA passes).
Color values
| HEX | #BAB840 |
|---|---|
| RGB | rgb(186, 184, 64) |
| HSL | hsl(59, 49%, 49%) |
| HSV | hsv(59, 66%, 73%) |
| CMYK | cmyk(0%, 1.1%, 65.6%, 27.1%) |
| CIE-LAB | lab(72.95, -14.05, 58.73) |
| CIE-LCH | lch(72.95, 60.39, 103.45°) |
| OKLab | oklab(76.2% -0.0439 0.1323) |
| OKLCH | oklch(76.2% 0.139 108.4) |
| XYZ | xyz(38.3169, 45.0914, 11.5346) |
| Luminance | 0.4509 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Puke Yellow
#C2BE0E
ΔE00 4.34
Olive Yellow
#C2B709
ΔE00 4.57
Mustard Green
#A8B504
ΔE00 4.74
Snot
#ACBB0D
ΔE00 4.79
Vomit Yellow
#C7C10C
ΔE00 5.08
Bile
#B5C306
ΔE00 5.45
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#BAB840 #4042BA
analogous
#BA7B40 #BAB840 #7FBA40
triadic
#BAB840 #40BAB8 #B840BA
tetradic
#BAB840 #40BA7B #4042BA #BA407F
square
#BAB840 #40BA7B #4042BA #BA407F
split-complementary
#BAB840 #407FBA #7B40BA
monochromatic
#5F5E21 #8C8B30 #BAB840 #CCCB6B #DCDB99
Accessibility & contrast
On white
2.10
#BAB840 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
10.02
#BAB840 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #BAB840
10.02:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##BAB840 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##BAB840 | 1.00 | 2.10 | 10.02 | 10.02 |
| #FFFFFF | 2.10 | 1.00 | 21.00 | 21.00 |
| #000000 | 10.02 | 21.00 | 1.00 | 1.00 |
| ##000000 | 10.02 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#C7B12F
Deuteranopia (green-blind)
#C9B548
Tritanopia (blue-blind)
#C7ADA0
Achromatopsia (no color)
#B3B3B3
Design tokens & code
CSS
--color: #bab840; /* rgb */ color: rgb(186, 184, 64); /* oklch */ color: oklch(76.2% 0.139 108.4);
Tailwind
colors: {
custom: {
50: '#d2cd7b',
500: '#bab840',
950: '#000000',
},
}SCSS
$custom: #bab840; $custom-light: #d2cd7b; $custom-dark: #000000;
JSON
{
"hex": "#bab840",
"rgb": {
"r": 186,
"g": 184,
"b": 64
},
"hsl": {
"h": 59.016,
"s": 48.8,
"l": 49.02
},
"oklch": {
"l": 0.76199,
"c": 0.13942,
"h": 108.4
},
"luminance": 0.4509
}Semantic roles & 50–950 ramp
primary
#BAB840
secondary
#8E8FC8
accent
#52D84F
background
#FDFCF7
surface
#FAF8EE
border
#D3D1C9
text
#14130A
muted
#83827C