#BAB831#BAB831
#BAB831 is a light, vivid yellow. Relative luminance 0.449; OKLCH L 76.1% C 0.149 H 108.6°. Best body text is #000000 at 9.99:1 contrast (WCAG AA passes).
Color values
| HEX | #BAB831 |
|---|---|
| RGB | rgb(186, 184, 49) |
| HSL | hsl(59, 58%, 46%) |
| HSV | hsv(59, 74%, 73%) |
| CMYK | cmyk(0%, 1.1%, 73.7%, 27.1%) |
| CIE-LAB | lab(72.85, -14.82, 64.24) |
| CIE-LCH | lch(72.85, 65.93, 103.00°) |
| OKLab | oklab(76.09% -0.0476 0.1414) |
| OKLCH | oklch(76.09% 0.149 108.6) |
| XYZ | xyz(37.9460, 44.9430, 9.5812) |
| Luminance | 0.4494 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Puke Yellow
#C2BE0E
ΔE00 3.07
Olive Yellow
#C2B709
ΔE00 3.39
Vomit Yellow
#C7C10C
ΔE00 3.94
Mustard Green
#A8B504
ΔE00 4.01
Snot
#ACBB0D
ΔE00 4.07
Bile
#B5C306
ΔE00 4.62
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#BAB831 #3133BA
analogous
#BA7331 #BAB831 #77BA31
triadic
#BAB831 #31BAB8 #B831BA
tetradic
#BAB831 #31BA73 #3133BA #BA3177
square
#BAB831 #31BA73 #3133BA #BA3177
split-complementary
#BAB831 #3177BA #7331BA
monochromatic
#595817 #8A8824 #BAB831 #D2D156 #DFDE86
Accessibility & contrast
On white
2.10
#BAB831 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.99
#BAB831 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #BAB831
9.99:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##BAB831 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##BAB831 | 1.00 | 2.10 | 9.99 | 9.99 |
| #FFFFFF | 2.10 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.99 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.99 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#C7B015
Deuteranopia (green-blind)
#C9B53C
Tritanopia (blue-blind)
#C7AC9E
Achromatopsia (no color)
#B3B3B3
Design tokens & code
CSS
--color: #bab831; /* rgb */ color: rgb(186, 184, 49); /* oklch */ color: oklch(76.1% 0.149 108.6);
Tailwind
colors: {
custom: {
50: '#d2cd73',
500: '#bab831',
950: '#000000',
},
}SCSS
$custom: #bab831; $custom-light: #d2cd73; $custom-dark: #000000;
JSON
{
"hex": "#bab831",
"rgb": {
"r": 186,
"g": 184,
"b": 49
},
"hsl": {
"h": 59.124,
"s": 58.298,
"l": 46.078
},
"oklch": {
"l": 0.7609,
"c": 0.14916,
"h": 108.6
},
"luminance": 0.44942
}Semantic roles & 50–950 ramp
primary
#BAB831
secondary
#7E7FC9
accent
#49E246
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#151309
muted
#83827B