#B2B152#B2B152
#B2B152 is a light, moderate yellow. Relative luminance 0.415; OKLCH L 74.2% C 0.118 H 108.4°. Best body text is #000000 at 9.30:1 contrast (WCAG AA passes).
Color values
| HEX | #B2B152 |
|---|---|
| RGB | rgb(178, 177, 82) |
| HSL | hsl(59, 38%, 51%) |
| HSV | hsv(59, 54%, 70%) |
| CMYK | cmyk(0%, 0.6%, 53.9%, 30.2%) |
| CIE-LAB | lab(70.54, -12.57, 47.97) |
| CIE-LCH | lch(70.54, 49.59, 104.68°) |
| OKLab | oklab(74.17% -0.0373 0.112) |
| OKLCH | oklch(74.17% 0.118 108.4) |
| XYZ | xyz(35.6062, 41.5194, 14.1194) |
| Luminance | 0.4152 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Darkkhaki
#BDB76B
ΔE00 3.91
Khaki (survey)
#AAA662
ΔE00 5.20
Vomit
#A2A415
ΔE00 6.34
Light Olive
#ACBF69
ΔE00 6.44
Booger
#9BB53C
ΔE00 6.59
Puke
#A5A502
ΔE00 6.76
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B2B152 #5253B2
analogous
#B28152 #B2B152 #83B252
triadic
#B2B152 #52B2B1 #B152B2
tetradic
#B2B152 #52B281 #5253B2 #B25283
square
#B2B152 #52B281 #5253B2 #B25283
split-complementary
#B2B152 #5283B2 #8152B2
monochromatic
#5F5F2A #8A893D #B2B152 #C5C47C #D8D7A7
Accessibility & contrast
On white
2.26
#B2B152 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.30
#B2B152 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #B2B152
9.30:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B2B152 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B2B152 | 1.00 | 2.26 | 9.30 | 9.30 |
| #FFFFFF | 2.26 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.30 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.30 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#BEAB49
Deuteranopia (green-blind)
#BFAE57
Tritanopia (blue-blind)
#BDA79C
Achromatopsia (no color)
#ACACAC
Design tokens & code
CSS
--color: #b2b152; /* rgb */ color: rgb(178, 177, 82); /* oklch */ color: oklch(74.2% 0.118 108.4);
Tailwind
colors: {
custom: {
50: '#cbc886',
500: '#b2b152',
950: '#000000',
},
}SCSS
$custom: #b2b152; $custom-light: #cbc886; $custom-dark: #000000;
JSON
{
"hex": "#b2b152",
"rgb": {
"r": 178,
"g": 177,
"b": 82
},
"hsl": {
"h": 59.375,
"s": 38.4,
"l": 50.98
},
"oklch": {
"l": 0.74166,
"c": 0.11809,
"h": 108.4
},
"luminance": 0.41518
}Semantic roles & 50–950 ramp
primary
#B2B152
secondary
#9B9BC5
accent
#5BCE59
background
#FCFCF8
surface
#F9F8EF
border
#D2D1CA
text
#14130B
muted
#82827C