#B1AB31#B1AB31
#B1AB31 is a light, vivid yellow. Relative luminance 0.387; OKLCH L 72.5% C 0.138 H 106.5°. Best body text is #000000 at 8.74:1 contrast (WCAG AA passes).
Color values
| HEX | #B1AB31 |
|---|---|
| RGB | rgb(177, 171, 49) |
| HSL | hsl(57, 57%, 44%) |
| HSV | hsv(57, 72%, 69%) |
| CMYK | cmyk(0%, 3.4%, 72.3%, 30.6%) |
| CIE-LAB | lab(68.53, -12.05, 59.86) |
| CIE-LCH | lch(68.53, 61.06, 101.38°) |
| OKLab | oklab(72.46% -0.0393 0.1324) |
| OKLCH | oklch(72.46% 0.138 106.5) |
| XYZ | xyz(33.2501, 38.6959, 8.6227) |
| Luminance | 0.3870 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Puke
#A5A502
ΔE00 3.31
Vomit
#A2A415
ΔE00 3.45
Muddy Yellow
#BFAC05
ΔE00 4.70
Olive Yellow
#C2B709
ΔE00 5.10
Mustard Green
#A8B504
ΔE00 5.36
Puke Yellow
#C2BE0E
ΔE00 6.16
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B1AB31 #3137B1
analogous
#B16B31 #B1AB31 #77B131
triadic
#B1AB31 #31B1AB #AB31B1
tetradic
#B1AB31 #31B16B #3137B1 #B13177
square
#B1AB31 #31B16B #3137B1 #B13177
split-complementary
#B1AB31 #3177B1 #6B31B1
monochromatic
#514E16 #817D24 #B1AB31 #CFC951 #DCD880
Accessibility & contrast
On white
2.40
#B1AB31 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.74
#B1AB31 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #B1AB31
8.74:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B1AB31 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B1AB31 | 1.00 | 2.40 | 8.74 | 8.74 |
| #FFFFFF | 2.40 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.74 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.74 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#BAA41B
Deuteranopia (green-blind)
#BCA93A
Tritanopia (blue-blind)
#BEA093
Achromatopsia (no color)
#A7A7A7
Design tokens & code
CSS
--color: #b1ab31; /* rgb */ color: rgb(177, 171, 49); /* oklch */ color: oklch(72.5% 0.138 106.5);
Tailwind
colors: {
custom: {
50: '#ccc372',
500: '#b1ab31',
950: '#000000',
},
}SCSS
$custom: #b1ab31; $custom-light: #ccc372; $custom-dark: #000000;
JSON
{
"hex": "#b1ab31",
"rgb": {
"r": 177,
"g": 171,
"b": 49
},
"hsl": {
"h": 57.188,
"s": 56.637,
"l": 44.314
},
"oklch": {
"l": 0.72458,
"c": 0.13812,
"h": 106.5
},
"luminance": 0.38695
}Semantic roles & 50–950 ramp
primary
#B1AB31
secondary
#797CC5
accent
#4FE048
background
#FDFBF7
surface
#FAF7ED
border
#D3D0C8
text
#141208
muted
#83817B