#B4B02F#B4B02F
#B4B02F is a light, vivid yellow. Relative luminance 0.410; OKLCH L 73.8% C 0.144 H 107.6°. Best body text is #000000 at 9.19:1 contrast (WCAG AA passes).
Color values
| HEX | #B4B02F |
|---|---|
| RGB | rgb(180, 176, 47) |
| HSL | hsl(58, 59%, 45%) |
| HSV | hsv(58, 74%, 71%) |
| CMYK | cmyk(0%, 2.2%, 73.9%, 29.4%) |
| CIE-LAB | lab(70.15, -13.42, 62.20) |
| CIE-LCH | lch(70.15, 63.63, 102.17°) |
| OKLab | oklab(73.8% -0.0435 0.1369) |
| OKLCH | oklch(73.8% 0.144 107.6) |
| XYZ | xyz(34.8622, 40.9604, 8.7585) |
| Luminance | 0.4096 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Puke
#A5A502
ΔE00 3.88
Olive Yellow
#C2B709
ΔE00 4.08
Vomit
#A2A415
ΔE00 4.18
Mustard Green
#A8B504
ΔE00 4.35
Muddy Yellow
#BFAC05
ΔE00 4.72
Puke Yellow
#C2BE0E
ΔE00 4.77
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B4B02F #2F33B4
analogous
#B46D2F #B4B02F #76B42F
triadic
#B4B02F #2FB4B0 #B02FB4
tetradic
#B4B02F #2FB46D #2F33B4 #B42F76
square
#B4B02F #2FB46D #2F33B4 #B42F76
split-complementary
#B4B02F #2F76B4 #6D2FB4
monochromatic
#535116 #838122 #B4B02F #D1CD4F #DEDB80
Accessibility & contrast
On white
2.28
#B4B02F on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.19
#B4B02F on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #B4B02F
9.19:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B4B02F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B4B02F | 1.00 | 2.28 | 9.19 | 9.19 |
| #FFFFFF | 2.28 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.19 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.19 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#BFA914
Deuteranopia (green-blind)
#C1AE39
Tritanopia (blue-blind)
#C1A497
Achromatopsia (no color)
#ABABAB
Design tokens & code
CSS
--color: #b4b02f; /* rgb */ color: rgb(180, 176, 47); /* oklch */ color: oklch(73.8% 0.144 107.6);
Tailwind
colors: {
custom: {
50: '#cec771',
500: '#b4b02f',
950: '#000000',
},
}SCSS
$custom: #b4b02f; $custom-light: #cec771; $custom-dark: #000000;
JSON
{
"hex": "#b4b02f",
"rgb": {
"r": 180,
"g": 176,
"b": 47
},
"hsl": {
"h": 58.195,
"s": 58.59,
"l": 44.51
},
"oklch": {
"l": 0.73805,
"c": 0.14363,
"h": 107.6
},
"luminance": 0.40959
}Semantic roles & 50–950 ramp
primary
#B4B02F
secondary
#787BC7
accent
#4BE246
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141308
muted
#83827B