#B4B42E#B4B42E
#B4B42E is a light, vivid yellow. Relative luminance 0.425; OKLCH L 74.7% C 0.148 H 109.5°. Best body text is #000000 at 9.51:1 contrast (WCAG AA passes).
Color values
| HEX | #B4B42E |
|---|---|
| RGB | rgb(180, 180, 46) |
| HSL | hsl(60, 59%, 44%) |
| HSV | hsv(60, 74%, 71%) |
| CMYK | cmyk(0%, 0%, 74.4%, 29.4%) |
| CIE-LAB | lab(71.24, -15.51, 63.56) |
| CIE-LCH | lch(71.24, 65.43, 103.71°) |
| OKLab | oklab(74.68% -0.0494 0.1396) |
| OKLCH | oklch(74.68% 0.148 109.5) |
| XYZ | xyz(35.6381, 42.5441, 8.9188) |
| Luminance | 0.4254 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Mustard Green
#A8B504
ΔE00 3.34
Snot
#ACBB0D
ΔE00 3.86
Puke Yellow
#C2BE0E
ΔE00 4.07
Olive Yellow
#C2B709
ΔE00 4.10
Puke
#A5A502
ΔE00 4.54
Vomit
#A2A415
ΔE00 4.80
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B4B42E #2E2EB4
analogous
#B4712E #B4B42E #71B42E
triadic
#B4B42E #2EB4B4 #B42EB4
tetradic
#B4B42E #2EB471 #2E2EB4 #B42E71
square
#B4B42E #2EB471 #2E2EB4 #B42E71
split-complementary
#B4B42E #2E71B4 #712EB4
monochromatic
#535315 #838322 #B4B42E #D2D24E #DEDE7E
Accessibility & contrast
On white
2.21
#B4B42E on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.51
#B4B42E on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #B4B42E
9.51:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B4B42E | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B4B42E | 1.00 | 2.21 | 9.51 | 9.51 |
| #FFFFFF | 2.21 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.51 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.51 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#C3AC10
Deuteranopia (green-blind)
#C4B039
Tritanopia (blue-blind)
#C1A89B
Achromatopsia (no color)
#AEAEAE
Design tokens & code
CSS
--color: #b4b42e; /* rgb */ color: rgb(180, 180, 46); /* oklch */ color: oklch(74.7% 0.148 109.5);
Tailwind
colors: {
custom: {
50: '#ceca71',
500: '#b4b42e',
950: '#000000',
},
}SCSS
$custom: #b4b42e; $custom-light: #ceca71; $custom-dark: #000000;
JSON
{
"hex": "#b4b42e",
"rgb": {
"r": 180,
"g": 180,
"b": 46
},
"hsl": {
"h": 60,
"s": 59.292,
"l": 44.314
},
"oklch": {
"l": 0.74679,
"c": 0.1481,
"h": 109.5
},
"luminance": 0.42543
}Semantic roles & 50–950 ramp
primary
#B4B42E
secondary
#7777C7
accent
#45E245
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141308
muted
#83827B