#B5AB31#B5AB31
#B5AB31 is a light, vivid yellow. Relative luminance 0.392; OKLCH L 72.8% C 0.138 H 104.6°. Best body text is #000000 at 8.83:1 contrast (WCAG AA passes).
Color values
| HEX | #B5AB31 |
|---|---|
| RGB | rgb(181, 171, 49) |
| HSL | hsl(55, 57%, 45%) |
| HSV | hsv(55, 73%, 71%) |
| CMYK | cmyk(0%, 5.5%, 72.9%, 29%) |
| CIE-LAB | lab(68.88, -10.30, 60.31) |
| CIE-LCH | lch(68.88, 61.18, 99.69°) |
| OKLab | oklab(72.82% -0.0346 0.1332) |
| OKLCH | oklch(72.82% 0.138 104.6) |
| XYZ | xyz(34.1748, 39.1727, 8.6661) |
| Luminance | 0.3917 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Muddy Yellow
#BFAC05
ΔE00 3.79
Puke
#A5A502
ΔE00 3.95
Vomit
#A2A415
ΔE00 4.27
Olive Yellow
#C2B709
ΔE00 4.67
Brownish Yellow
#C9B003
ΔE00 5.54
Puke Yellow
#C2BE0E
ΔE00 6.07
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B5AB31 #313BB5
analogous
#B56931 #B5AB31 #7DB531
triadic
#B5AB31 #31B5AB #AB31B5
tetradic
#B5AB31 #31B569 #313BB5 #B5317D
square
#B5AB31 #31B569 #313BB5 #B5317D
split-complementary
#B5AB31 #317DB5 #6931B5
monochromatic
#555017 #857D24 #B5AB31 #D0C753 #DDD783
Accessibility & contrast
On white
2.38
#B5AB31 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.83
#B5AB31 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #B5AB31
8.83:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B5AB31 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B5AB31 | 1.00 | 2.38 | 8.83 | 8.83 |
| #FFFFFF | 2.38 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.83 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.83 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#BAA51B
Deuteranopia (green-blind)
#BEAB3A
Tritanopia (blue-blind)
#C39F93
Achromatopsia (no color)
#A8A8A8
Design tokens & code
CSS
--color: #b5ab31; /* rgb */ color: rgb(181, 171, 49); /* oklch */ color: oklch(72.8% 0.138 104.6);
Tailwind
colors: {
custom: {
50: '#cfc372',
500: '#b5ab31',
950: '#000000',
},
}SCSS
$custom: #b5ab31; $custom-light: #cfc372; $custom-dark: #000000;
JSON
{
"hex": "#b5ab31",
"rgb": {
"r": 181,
"g": 171,
"b": 49
},
"hsl": {
"h": 55.455,
"s": 57.391,
"l": 45.098
},
"oklch": {
"l": 0.72816,
"c": 0.13765,
"h": 104.6
},
"luminance": 0.39171
}Semantic roles & 50–950 ramp
primary
#B5AB31
secondary
#7B81C7
accent
#53E147
background
#FDFBF7
surface
#FAF7ED
border
#D3D0C8
text
#141208
muted
#83817B