#BAB42D#BAB42D
#BAB42D is a light, vivid yellow. Relative luminance 0.433; OKLCH L 75.2% C 0.148 H 106.8°. Best body text is #000000 at 9.65:1 contrast (WCAG AA passes).
Color values
| HEX | #BAB42D |
|---|---|
| RGB | rgb(186, 180, 45) |
| HSL | hsl(57, 61%, 45%) |
| HSV | hsv(57, 76%, 73%) |
| CMYK | cmyk(0%, 3.2%, 75.8%, 27.1%) |
| CIE-LAB | lab(71.74, -12.95, 64.53) |
| CIE-LCH | lch(71.74, 65.82, 101.35°) |
| OKLab | oklab(75.19% -0.0427 0.1412) |
| OKLCH | oklch(75.19% 0.148 106.8) |
| XYZ | xyz(37.0461, 43.2724, 8.8831) |
| Luminance | 0.4327 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Olive Yellow
#C2B709
ΔE00 2.82
Puke Yellow
#C2BE0E
ΔE00 3.48
Muddy Yellow
#BFAC05
ΔE00 4.25
Vomit Yellow
#C7C10C
ΔE00 4.33
Mustard Green
#A8B504
ΔE00 4.65
Puke
#A5A502
ΔE00 4.96
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#BAB42D #2D33BA
analogous
#BA6E2D #BAB42D #79BA2D
triadic
#BAB42D #2DBAB4 #B42DBA
tetradic
#BAB42D #2DBA6E #2D33BA #BA2D79
square
#BAB42D #2DBA6E #2D33BA #BA2D79
split-complementary
#BAB42D #2D79BA #6E2DBA
monochromatic
#575515 #898421 #BAB42D #D5CF50 #E0DC81
Accessibility & contrast
On white
2.18
#BAB42D on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.65
#BAB42D on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #BAB42D
9.65:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##BAB42D | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##BAB42D | 1.00 | 2.18 | 9.65 | 9.65 |
| #FFFFFF | 2.18 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.65 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.65 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#C4AD0C
Deuteranopia (green-blind)
#C6B238
Tritanopia (blue-blind)
#C8A89B
Achromatopsia (no color)
#B0B0B0
Design tokens & code
CSS
--color: #bab42d; /* rgb */ color: rgb(186, 180, 45); /* oklch */ color: oklch(75.2% 0.148 106.8);
Tailwind
colors: {
custom: {
50: '#d3ca71',
500: '#bab42d',
950: '#000000',
},
}SCSS
$custom: #bab42d; $custom-light: #d3ca71; $custom-dark: #000000;
JSON
{
"hex": "#bab42d",
"rgb": {
"r": 186,
"g": 180,
"b": 45
},
"hsl": {
"h": 57.447,
"s": 61.039,
"l": 45.294
},
"oklch": {
"l": 0.75194,
"c": 0.14757,
"h": 106.8
},
"luminance": 0.43271
}Semantic roles & 50–950 ramp
primary
#BAB42D
secondary
#797DC9
accent
#4AE444
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#151308
muted
#83827B