#B4B940#B4B940
#B4B940 is a light, vivid yellow. Relative luminance 0.448; OKLCH L 75.9% C 0.142 H 111.6°. Best body text is #000000 at 9.95:1 contrast (WCAG AA passes).
Color values
| HEX | #B4B940 |
|---|---|
| RGB | rgb(180, 185, 64) |
| HSL | hsl(62, 49%, 49%) |
| HSV | hsv(62, 65%, 73%) |
| CMYK | cmyk(2.7%, 0%, 65.4%, 27.5%) |
| CIE-LAB | lab(72.74, -17.10, 58.36) |
| CIE-LCH | lch(72.74, 60.82, 106.33°) |
| OKLab | oklab(75.91% -0.0522 0.1317) |
| OKLCH | oklch(75.91% 0.142 111.6) |
| XYZ | xyz(37.0979, 44.7723, 11.5372) |
| Luminance | 0.4477 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Snot
#ACBB0D
ΔE00 3.81
Mustard Green
#A8B504
ΔE00 3.91
Bile
#B5C306
ΔE00 4.82
Baby Puke Green
#B6C406
ΔE00 4.99
Pea
#A4BF20
ΔE00 5.02
Sick Green
#9DB92C
ΔE00 5.15
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B4B940 #4540B9
analogous
#B98240 #B4B940 #78B940
triadic
#B4B940 #40B4B9 #B940B4
tetradic
#B4B940 #40B982 #4540B9 #B94078
square
#B4B940 #40B982 #4540B9 #B94078
split-complementary
#B4B940 #4078B9 #8240B9
monochromatic
#5C5E21 #888C30 #B4B940 #C8CC6B #D9DB98
Accessibility & contrast
On white
2.11
#B4B940 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.95
#B4B940 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #B4B940
9.95:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B4B940 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B4B940 | 1.00 | 2.11 | 9.95 | 9.95 |
| #FFFFFF | 2.11 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.95 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.95 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#C7B12F
Deuteranopia (green-blind)
#C7B448
Tritanopia (blue-blind)
#C0AEA0
Achromatopsia (no color)
#B2B2B2
Design tokens & code
CSS
--color: #b4b940; /* rgb */ color: rgb(180, 185, 64); /* oklch */ color: oklch(75.9% 0.142 111.6);
Tailwind
colors: {
custom: {
50: '#cdcd7b',
500: '#b4b940',
950: '#000000',
},
}SCSS
$custom: #b4b940; $custom-light: #cdcd7b; $custom-dark: #000000;
JSON
{
"hex": "#b4b940",
"rgb": {
"r": 180,
"g": 185,
"b": 64
},
"hsl": {
"h": 62.479,
"s": 48.594,
"l": 48.824
},
"oklch": {
"l": 0.75912,
"c": 0.14166,
"h": 111.6
},
"luminance": 0.44771
}Semantic roles & 50–950 ramp
primary
#B4B940
secondary
#908EC7
accent
#50D855
background
#FDFCF7
surface
#FAF9EE
border
#D3D2C9
text
#14130A
muted
#83827C