#B4B31D#B4B31D
#B4B31D 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 | #B4B31D |
|---|---|
| RGB | rgb(180, 179, 29) |
| HSL | hsl(60, 72%, 41%) |
| HSV | hsv(60, 84%, 71%) |
| CMYK | cmyk(0%, 0.6%, 83.9%, 29.4%) |
| CIE-LAB | lab(70.89, -15.60, 68.11) |
| CIE-LCH | lch(70.89, 69.88, 102.90°) |
| OKLab | oklab(74.38% -0.051 0.1463) |
| OKLCH | oklch(74.38% 0.155 109.2) |
| XYZ | xyz(35.1657, 42.0333, 7.4230) |
| Luminance | 0.4203 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Mustard Green
#A8B504
ΔE00 3.22
Olive Yellow
#C2B709
ΔE00 3.32
Puke Yellow
#C2BE0E
ΔE00 3.53
Snot
#ACBB0D
ΔE00 3.89
Puke
#A5A502
ΔE00 4.12
Vomit Yellow
#C7C10C
ΔE00 4.55
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B4B31D #1D1EB4
analogous
#B4671D #B4B31D #69B41D
triadic
#B4B31D #1DB4B3 #B31DB4
tetradic
#B4B31D #1DB467 #1D1EB4 #B41D69
square
#B4B31D #1DB467 #1D1EB4 #B41D69
split-complementary
#B4B31D #1D69B4 #671DB4
monochromatic
#4B4A0C #7F7F15 #B4B31D #DEDD30 #E6E565
Accessibility & contrast
On white
2.23
#B4B31D on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.41
#B4B31D on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #B4B31D
9.41:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B4B31D | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B4B31D | 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: #b4b31d; /* rgb */ color: rgb(180, 179, 29); /* oklch */ color: oklch(74.4% 0.155 109.2);
Tailwind
colors: {
custom: {
50: '#cfc96a',
500: '#b4b31d',
950: '#000000',
},
}SCSS
$custom: #b4b31d; $custom-light: #cfc96a; $custom-dark: #000000;
JSON
{
"hex": "#b4b31d",
"rgb": {
"r": 180,
"g": 179,
"b": 29
},
"hsl": {
"h": 59.603,
"s": 72.249,
"l": 40.98
},
"oklch": {
"l": 0.74375,
"c": 0.15493,
"h": 109.2
},
"luminance": 0.42032
}Semantic roles & 50–950 ramp
primary
#B4B31D
secondary
#6162CB
accent
#3AEF39
background
#FDFCF6
surface
#FAF8EC
border
#D3D1C7
text
#141307
muted
#83827A