#B1AB28#B1AB28
#B1AB28 is a light, vivid yellow. Relative luminance 0.386; OKLCH L 72.4% C 0.143 H 106.7°. Best body text is #000000 at 8.73:1 contrast (WCAG AA passes).
Color values
| HEX | #B1AB28 |
|---|---|
| RGB | rgb(177, 171, 40) |
| HSL | hsl(57, 63%, 43%) |
| HSV | hsv(57, 77%, 69%) |
| CMYK | cmyk(0%, 3.4%, 77.4%, 30.6%) |
| CIE-LAB | lab(68.48, -12.44, 62.88) |
| CIE-LCH | lch(68.48, 64.09, 101.19°) |
| OKLab | oklab(72.4% -0.0412 0.1371) |
| OKLCH | oklch(72.4% 0.143 106.7) |
| XYZ | xyz(33.0787, 38.6273, 7.7205) |
| Luminance | 0.3863 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Puke
#A5A502
ΔE00 2.87
Vomit
#A2A415
ΔE00 3.26
Muddy Yellow
#BFAC05
ΔE00 4.22
Olive Yellow
#C2B709
ΔE00 4.61
Mustard Green
#A8B504
ΔE00 5.06
Puke Yellow
#C2BE0E
ΔE00 5.76
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B1AB28 #282EB1
analogous
#B16628 #B1AB28 #73B128
triadic
#B1AB28 #28B1AB #AB28B1
tetradic
#B1AB28 #28B166 #282EB1 #B12873
square
#B1AB28 #28B166 #282EB1 #B12873
split-complementary
#B1AB28 #2873B1 #6628B1
monochromatic
#4D4B11 #7F7B1D #B1AB28 #D4CE42 #E0DB74
Accessibility & contrast
On white
2.41
#B1AB28 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.73
#B1AB28 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #B1AB28
8.73:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B1AB28 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B1AB28 | 1.00 | 2.41 | 8.73 | 8.73 |
| #FFFFFF | 2.41 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.73 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.73 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#BAA403
Deuteranopia (green-blind)
#BDA933
Tritanopia (blue-blind)
#BE9F93
Achromatopsia (no color)
#A7A7A7
Design tokens & code
CSS
--color: #b1ab28; /* rgb */ color: rgb(177, 171, 40); /* oklch */ color: oklch(72.4% 0.143 106.7);
Tailwind
colors: {
custom: {
50: '#ccc36d',
500: '#b1ab28',
950: '#000000',
},
}SCSS
$custom: #b1ab28; $custom-light: #ccc36d; $custom-dark: #000000;
JSON
{
"hex": "#b1ab28",
"rgb": {
"r": 177,
"g": 171,
"b": 40
},
"hsl": {
"h": 57.372,
"s": 63.134,
"l": 42.549
},
"oklch": {
"l": 0.72402,
"c": 0.14321,
"h": 106.7
},
"luminance": 0.38626
}Semantic roles & 50–950 ramp
primary
#B1AB28
secondary
#6E72C7
accent
#49E642
background
#FDFBF6
surface
#FAF7EC
border
#D3D0C7
text
#141208
muted
#83817B