#B4B840#B4B840
#B4B840 is a light, vivid yellow. Relative luminance 0.444; OKLCH L 75.7% C 0.141 H 111.2°. Best body text is #000000 at 9.87:1 contrast (WCAG AA passes).
Color values
| HEX | #B4B840 |
|---|---|
| RGB | rgb(180, 184, 64) |
| HSL | hsl(62, 48%, 49%) |
| HSV | hsv(62, 65%, 72%) |
| CMYK | cmyk(2.2%, 0%, 65.2%, 27.8%) |
| CIE-LAB | lab(72.47, -16.60, 58.08) |
| CIE-LCH | lch(72.47, 60.40, 105.95°) |
| OKLab | oklab(75.69% -0.0508 0.1311) |
| OKLCH | oklch(75.69% 0.141 111.2) |
| XYZ | xyz(36.8894, 44.3554, 11.4677) |
| Luminance | 0.4435 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Mustard Green
#A8B504
ΔE00 3.97
Snot
#ACBB0D
ΔE00 3.98
Bile
#B5C306
ΔE00 5.04
Puke Yellow
#C2BE0E
ΔE00 5.16
Baby Puke Green
#B6C406
ΔE00 5.21
Pea
#A4BF20
ΔE00 5.28
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B4B840 #4440B8
analogous
#B88040 #B4B840 #78B840
triadic
#B4B840 #40B4B8 #B840B4
tetradic
#B4B840 #40B880 #4440B8 #B84078
square
#B4B840 #40B880 #4440B8 #B84078
split-complementary
#B4B840 #4078B8 #8040B8
monochromatic
#5B5D20 #888B30 #B4B840 #C8CB6A #D9DB97
Accessibility & contrast
On white
2.13
#B4B840 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.87
#B4B840 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #B4B840
9.87:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B4B840 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B4B840 | 1.00 | 2.13 | 9.87 | 9.87 |
| #FFFFFF | 2.13 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.87 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.87 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#C6B030
Deuteranopia (green-blind)
#C7B348
Tritanopia (blue-blind)
#C0ADA0
Achromatopsia (no color)
#B2B2B2
Design tokens & code
CSS
--color: #b4b840; /* rgb */ color: rgb(180, 184, 64); /* oklch */ color: oklch(75.7% 0.141 111.2);
Tailwind
colors: {
custom: {
50: '#cdcd7b',
500: '#b4b840',
950: '#000000',
},
}SCSS
$custom: #b4b840; $custom-light: #cdcd7b; $custom-dark: #000000;
JSON
{
"hex": "#b4b840",
"rgb": {
"r": 180,
"g": 184,
"b": 64
},
"hsl": {
"h": 62,
"s": 48.387,
"l": 48.627
},
"oklch": {
"l": 0.75692,
"c": 0.14057,
"h": 111.2
},
"luminance": 0.44354
}Semantic roles & 50–950 ramp
primary
#B4B840
secondary
#8F8DC7
accent
#50D854
background
#FDFCF7
surface
#FAF8EE
border
#D3D1C9
text
#14130A
muted
#83827C