#B2AB27#B2AB27
#B2AB27 is a light, vivid yellow. Relative luminance 0.387; OKLCH L 72.5% C 0.144 H 106.3°. Best body text is #000000 at 8.75:1 contrast (WCAG AA passes).
Color values
| HEX | #B2AB27 |
|---|---|
| RGB | rgb(178, 171, 39) |
| HSL | hsl(57, 64%, 43%) |
| HSV | hsv(57, 78%, 70%) |
| CMYK | cmyk(0%, 3.9%, 78.1%, 30.2%) |
| CIE-LAB | lab(68.56, -12.04, 63.29) |
| CIE-LCH | lch(68.56, 64.43, 100.77°) |
| OKLab | oklab(72.49% -0.0403 0.1378) |
| OKLCH | oklch(72.49% 0.144 106.3) |
| XYZ | xyz(33.2906, 38.7385, 7.6428) |
| Luminance | 0.3874 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Puke
#A5A502
ΔE00 3.00
Vomit
#A2A415
ΔE00 3.46
Muddy Yellow
#BFAC05
ΔE00 3.93
Olive Yellow
#C2B709
ΔE00 4.43
Mustard Green
#A8B504
ΔE00 5.24
Puke Yellow
#C2BE0E
ΔE00 5.69
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B2AB27 #272EB2
analogous
#B26527 #B2AB27 #74B227
triadic
#B2AB27 #27B2AB #AB27B2
tetradic
#B2AB27 #27B265 #272EB2 #B22774
square
#B2AB27 #27B265 #272EB2 #B22774
split-complementary
#B2AB27 #2774B2 #6527B2
monochromatic
#4E4B11 #807B1C #B2AB27 #D5CE41 #E0DB73
Accessibility & contrast
On white
2.40
#B2AB27 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.75
#B2AB27 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #B2AB27
8.75:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B2AB27 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B2AB27 | 1.00 | 2.40 | 8.75 | 8.75 |
| #FFFFFF | 2.40 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.75 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.75 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#BAA400
Deuteranopia (green-blind)
#BDAA32
Tritanopia (blue-blind)
#C09F93
Achromatopsia (no color)
#A7A7A7
Design tokens & code
CSS
--color: #b2ab27; /* rgb */ color: rgb(178, 171, 39); /* oklch */ color: oklch(72.5% 0.144 106.3);
Tailwind
colors: {
custom: {
50: '#cdc36d',
500: '#b2ab27',
950: '#000000',
},
}SCSS
$custom: #b2ab27; $custom-light: #cdc36d; $custom-dark: #000000;
JSON
{
"hex": "#b2ab27",
"rgb": {
"r": 178,
"g": 171,
"b": 39
},
"hsl": {
"h": 56.978,
"s": 64.055,
"l": 42.549
},
"oklch": {
"l": 0.72486,
"c": 0.14356,
"h": 106.3
},
"luminance": 0.38737
}Semantic roles & 50–950 ramp
primary
#B2AB27
secondary
#6D72C8
accent
#49E741
background
#FDFBF6
surface
#FAF7EC
border
#D3D0C7
text
#141208
muted
#83817B