#B4B31E#B4B31E
#B4B31E is a light, vivid yellow. Relative luminance 0.420; OKLCH L 74.4% C 0.155 H 109.2°. Best body text is #000000 at 9.41:1 contrast (WCAG AA passes).
Color values
| HEX | #B4B31E |
|---|---|
| RGB | rgb(180, 179, 30) |
| HSL | hsl(60, 71%, 41%) |
| HSV | hsv(60, 83%, 71%) |
| CMYK | cmyk(0%, 0.6%, 83.3%, 29.4%) |
| CIE-LAB | lab(70.90, -15.57, 67.88) |
| CIE-LCH | lch(70.90, 69.64, 102.92°) |
| OKLab | oklab(74.38% -0.0509 0.146) |
| OKLCH | oklch(74.38% 0.155 109.2) |
| XYZ | xyz(35.1782, 42.0384, 7.4892) |
| Luminance | 0.4204 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Mustard Green
#A8B504
ΔE00 3.23
Olive Yellow
#C2B709
ΔE00 3.35
Puke Yellow
#C2BE0E
ΔE00 3.56
Snot
#ACBB0D
ΔE00 3.89
Puke
#A5A502
ΔE00 4.12
Vomit Yellow
#C7C10C
ΔE00 4.57
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B4B31E #1E1FB4
analogous
#B4681E #B4B31E #6AB41E
triadic
#B4B31E #1EB4B3 #B31EB4
tetradic
#B4B31E #1EB468 #1E1FB4 #B41E6A
square
#B4B31E #1EB468 #1E1FB4 #B41E6A
split-complementary
#B4B31E #1E6AB4 #681EB4
monochromatic
#4B4B0D #807F15 #B4B31E #DDDC32 #E6E567
Accessibility & contrast
On white
2.23
#B4B31E on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.41
#B4B31E on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #B4B31E
9.41:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B4B31E | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B4B31E | 1.00 | 2.23 | 9.41 | 9.41 |
| #FFFFFF | 2.23 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.41 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.41 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#C2AB00
Deuteranopia (green-blind)
#C4B02D
Tritanopia (blue-blind)
#C1A799
Achromatopsia (no color)
#ADADAD
Design tokens & code
CSS
--color: #b4b31e; /* rgb */ color: rgb(180, 179, 30); /* oklch */ color: oklch(74.4% 0.155 109.2);
Tailwind
colors: {
custom: {
50: '#cfc96b',
500: '#b4b31e',
950: '#000000',
},
}SCSS
$custom: #b4b31e; $custom-light: #cfc96b; $custom-dark: #000000;
JSON
{
"hex": "#b4b31e",
"rgb": {
"r": 180,
"g": 179,
"b": 30
},
"hsl": {
"h": 59.6,
"s": 71.429,
"l": 41.176
},
"oklch": {
"l": 0.74379,
"c": 0.15456,
"h": 109.2
},
"luminance": 0.42037
}Semantic roles & 50–950 ramp
primary
#B4B31E
secondary
#6364CB
accent
#3BEE3A
background
#FDFCF6
surface
#FAF8EC
border
#D3D1C7
text
#141307
muted
#83827A