#B4C731#B4C731
#B4C731 is a light, vivid yellow. Relative luminance 0.508; OKLCH L 78.9% C 0.166 H 116.8°. Best body text is #000000 at 11.15:1 contrast (WCAG AA passes).
Color values
| HEX | #B4C731 |
|---|---|
| RGB | rgb(180, 199, 49) |
| HSL | hsl(68, 60%, 49%) |
| HSV | hsv(68, 75%, 78%) |
| CMYK | cmyk(9.5%, 0%, 75.4%, 22%) |
| CIE-LAB | lab(76.54, -24.81, 67.52) |
| CIE-LCH | lch(76.54, 71.94, 110.18°) |
| OKLab | oklab(78.93% -0.075 0.1485) |
| OKLCH | oklch(78.93% 0.166 116.8) |
| XYZ | xyz(39.8012, 50.7724, 10.6085) |
| Luminance | 0.5077 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Baby Puke Green
#B6C406
ΔE00 2.57
Bile
#B5C306
ΔE00 2.59
Green Yellow
#B5CE08
ΔE00 2.75
Pea
#A4BF20
ΔE00 2.95
Snot
#ACBB0D
ΔE00 3.44
Gross Green
#A0BF16
ΔE00 3.55
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B4C731 #4431C7
analogous
#C78F31 #B4C731 #69C731
triadic
#B4C731 #31B4C7 #C731B4
tetradic
#B4C731 #31C78F #4431C7 #C73169
square
#B4C731 #31C78F #4431C7 #C73169
split-complementary
#B4C731 #3169C7 #8F31C7
monochromatic
#5B6519 #889625 #B4C731 #C8D75E #D9E38F
Accessibility & contrast
On white
1.88
#B4C731 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
11.15
#B4C731 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #B4C731
11.15:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B4C731 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B4C731 | 1.00 | 1.88 | 11.15 | 11.15 |
| #FFFFFF | 1.88 | 1.00 | 21.00 | 21.00 |
| #000000 | 11.15 | 21.00 | 1.00 | 1.00 |
| ##000000 | 11.15 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#D5BC0A
Deuteranopia (green-blind)
#D3BE3E
Tritanopia (blue-blind)
#BFBCAB
Achromatopsia (no color)
#BDBDBD
Design tokens & code
CSS
--color: #b4c731; /* rgb */ color: rgb(180, 199, 49); /* oklch */ color: oklch(78.9% 0.166 116.8);
Tailwind
colors: {
custom: {
50: '#ced775',
500: '#b4c731',
950: '#000000',
},
}SCSS
$custom: #b4c731; $custom-light: #ced775; $custom-dark: #000000;
JSON
{
"hex": "#b4c731",
"rgb": {
"r": 180,
"g": 199,
"b": 49
},
"hsl": {
"h": 67.6,
"s": 60.484,
"l": 48.627
},
"oklch": {
"l": 0.78928,
"c": 0.1664,
"h": 116.8
},
"luminance": 0.50772
}Semantic roles & 50–950 ramp
primary
#B4C731
secondary
#352D6F
accent
#44E458
background
#FEFEFB
surface
#FBFBF1
border
#D4D4CB
text
#141409
muted
#83837D