#B7C842#B7C842
#B7C842 is a light, vivid yellow. Relative luminance 0.518; OKLCH L 79.5% C 0.156 H 116.3°. Best body text is #000000 at 11.35:1 contrast (WCAG AA passes).
Color values
| HEX | #B7C842 |
|---|---|
| RGB | rgb(183, 200, 66) |
| HSL | hsl(68, 55%, 52%) |
| HSV | hsv(68, 67%, 78%) |
| CMYK | cmyk(8.5%, 0%, 67%, 21.6%) |
| CIE-LAB | lab(77.14, -23.17, 62.17) |
| CIE-LCH | lch(77.14, 66.35, 110.44°) |
| OKLab | oklab(79.5% -0.0691 0.1399) |
| OKLCH | oklch(79.5% 0.156 116.3) |
| XYZ | xyz(41.1670, 51.7697, 12.9771) |
| Luminance | 0.5177 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Pea
#A4BF20
ΔE00 3.73
Baby Puke Green
#B6C406
ΔE00 3.76
Bile
#B5C306
ΔE00 3.78
Green Yellow
#B5CE08
ΔE00 3.85
Gross Green
#A0BF16
ΔE00 4.38
Snot
#ACBB0D
ΔE00 4.38
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B7C842 #5342C8
analogous
#C89642 #B7C842 #74C842
triadic
#B7C842 #42B7C8 #C842B7
tetradic
#B7C842 #42C896 #5342C8 #C84274
square
#B7C842 #42C896 #5342C8 #C84274
split-complementary
#B7C842 #4274C8 #9642C8
monochromatic
#656F20 #909F2E #B7C842 #C9D671 #DBE4A1
Accessibility & contrast
On white
1.85
#B7C842 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
11.35
#B7C842 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #B7C842
11.35:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B7C842 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B7C842 | 1.00 | 1.85 | 11.35 | 11.35 |
| #FFFFFF | 1.85 | 1.00 | 21.00 | 21.00 |
| #000000 | 11.35 | 21.00 | 1.00 | 1.00 |
| ##000000 | 11.35 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#D5BE2E
Deuteranopia (green-blind)
#D4BF4C
Tritanopia (blue-blind)
#C2BDAD
Achromatopsia (no color)
#BEBEBE
Design tokens & code
CSS
--color: #b7c842; /* rgb */ color: rgb(183, 200, 66); /* oklch */ color: oklch(79.5% 0.156 116.3);
Tailwind
colors: {
custom: {
50: '#d0d87e',
500: '#b7c842',
950: '#000000',
},
}SCSS
$custom: #b7c842; $custom-light: #d0d87e; $custom-dark: #000000;
JSON
{
"hex": "#b7c842",
"rgb": {
"r": 183,
"g": 200,
"b": 66
},
"hsl": {
"h": 67.612,
"s": 54.918,
"l": 52.157
},
"oklch": {
"l": 0.795,
"c": 0.15608,
"h": 116.3
},
"luminance": 0.51769
}Semantic roles & 50–950 ramp
primary
#B7C842
secondary
#3E3679
accent
#4ADE5C
background
#FEFEFB
surface
#FBFBF2
border
#D4D4CC
text
#14140A
muted
#83837D