#B7B42E#B7B42E
#B7B42E is a light, vivid yellow. Relative luminance 0.429; OKLCH L 74.9% C 0.148 H 108.2°. Best body text is #000000 at 9.58:1 contrast (WCAG AA passes).
Color values
| HEX | #B7B42E |
|---|---|
| RGB | rgb(183, 180, 46) |
| HSL | hsl(59, 60%, 45%) |
| HSV | hsv(59, 75%, 72%) |
| CMYK | cmyk(0%, 1.6%, 74.9%, 28.2%) |
| CIE-LAB | lab(71.49, -14.21, 63.88) |
| CIE-LCH | lch(71.49, 65.45, 102.54°) |
| OKLab | oklab(74.94% -0.046 0.1402) |
| OKLCH | oklch(74.94% 0.148 108.2) |
| XYZ | xyz(36.3442, 42.9083, 8.9519) |
| Luminance | 0.4291 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Olive Yellow
#C2B709
ΔE00 3.46
Puke Yellow
#C2BE0E
ΔE00 3.73
Mustard Green
#A8B504
ΔE00 3.97
Snot
#ACBB0D
ΔE00 4.43
Vomit Yellow
#C7C10C
ΔE00 4.65
Puke
#A5A502
ΔE00 4.70
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B7B42E #2E31B7
analogous
#B76F2E #B7B42E #76B72E
triadic
#B7B42E #2EB7B4 #B42EB7
tetradic
#B7B42E #2EB76F #2E31B7 #B72E76
square
#B7B42E #2EB76F #2E31B7 #B72E76
split-complementary
#B7B42E #2E76B7 #6F2EB7
monochromatic
#555415 #868422 #B7B42E #D3D04F #DFDD80
Accessibility & contrast
On white
2.19
#B7B42E on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.58
#B7B42E on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #B7B42E
9.58:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B7B42E | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B7B42E | 1.00 | 2.19 | 9.58 | 9.58 |
| #FFFFFF | 2.19 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.58 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.58 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#C3AD0F
Deuteranopia (green-blind)
#C5B139
Tritanopia (blue-blind)
#C4A89B
Achromatopsia (no color)
#AFAFAF
Design tokens & code
CSS
--color: #b7b42e; /* rgb */ color: rgb(183, 180, 46); /* oklch */ color: oklch(74.9% 0.148 108.2);
Tailwind
colors: {
custom: {
50: '#d0ca71',
500: '#b7b42e',
950: '#000000',
},
}SCSS
$custom: #b7b42e; $custom-light: #d0ca71; $custom-dark: #000000;
JSON
{
"hex": "#b7b42e",
"rgb": {
"r": 183,
"g": 180,
"b": 46
},
"hsl": {
"h": 58.686,
"s": 59.825,
"l": 44.902
},
"oklch": {
"l": 0.74937,
"c": 0.14752,
"h": 108.2
},
"luminance": 0.42907
}Semantic roles & 50–950 ramp
primary
#B7B42E
secondary
#797BC8
accent
#48E345
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141308
muted
#83827B