#BAB838#BAB838
#BAB838 is a light, vivid yellow. Relative luminance 0.450; OKLCH L 76.1% C 0.145 H 108.5°. Best body text is #000000 at 10.00:1 contrast (WCAG AA passes).
Color values
| HEX | #BAB838 |
|---|---|
| RGB | rgb(186, 184, 56) |
| HSL | hsl(59, 54%, 47%) |
| HSV | hsv(59, 70%, 73%) |
| CMYK | cmyk(0%, 1.1%, 69.9%, 27.1%) |
| CIE-LAB | lab(72.90, -14.49, 61.79) |
| CIE-LCH | lch(72.90, 63.46, 103.20°) |
| OKLab | oklab(76.14% -0.046 0.1374) |
| OKLCH | oklch(76.14% 0.145 108.5) |
| XYZ | xyz(38.1054, 45.0068, 10.4205) |
| Luminance | 0.4501 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Puke Yellow
#C2BE0E
ΔE00 3.61
Olive Yellow
#C2B709
ΔE00 3.89
Mustard Green
#A8B504
ΔE00 4.28
Snot
#ACBB0D
ΔE00 4.33
Vomit Yellow
#C7C10C
ΔE00 4.42
Bile
#B5C306
ΔE00 4.95
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#BAB838 #383ABA
analogous
#BA7738 #BAB838 #7BBA38
triadic
#BAB838 #38BAB8 #B838BA
tetradic
#BAB838 #38BA77 #383ABA #BA387B
square
#BAB838 #38BA77 #383ABA #BA387B
split-complementary
#BAB838 #387BBA #7738BA
monochromatic
#5C5B1C #8B892A #BAB838 #CFCD60 #DDDC8F
Accessibility & contrast
On white
2.10
#BAB838 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
10.00
#BAB838 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #BAB838
10.00:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##BAB838 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##BAB838 | 1.00 | 2.10 | 10.00 | 10.00 |
| #FFFFFF | 2.10 | 1.00 | 21.00 | 21.00 |
| #000000 | 10.00 | 21.00 | 1.00 | 1.00 |
| ##000000 | 10.00 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#C7B123
Deuteranopia (green-blind)
#C9B541
Tritanopia (blue-blind)
#C7AC9F
Achromatopsia (no color)
#B3B3B3
Design tokens & code
CSS
--color: #bab838; /* rgb */ color: rgb(186, 184, 56); /* oklch */ color: oklch(76.1% 0.145 108.5);
Tailwind
colors: {
custom: {
50: '#d2cd77',
500: '#bab838',
950: '#000000',
},
}SCSS
$custom: #bab838; $custom-light: #d2cd77; $custom-dark: #000000;
JSON
{
"hex": "#bab838",
"rgb": {
"r": 186,
"g": 184,
"b": 56
},
"hsl": {
"h": 59.077,
"s": 53.719,
"l": 47.451
},
"oklch": {
"l": 0.76137,
"c": 0.14491,
"h": 108.5
},
"luminance": 0.45006
}Semantic roles & 50–950 ramp
primary
#BAB838
secondary
#8687C8
accent
#4DDD4B
background
#FDFCF7
surface
#FAF8EE
border
#D3D1C9
text
#151309
muted
#83827B