#B8B42E#B8B42E
#B8B42E is a light, vivid yellow. Relative luminance 0.430; OKLCH L 75.0% C 0.147 H 107.7°. Best body text is #000000 at 9.61:1 contrast (WCAG AA passes).
Color values
| HEX | #B8B42E |
|---|---|
| RGB | rgb(184, 180, 46) |
| HSL | hsl(58, 60%, 45%) |
| HSV | hsv(58, 75%, 72%) |
| CMYK | cmyk(0%, 2.2%, 75%, 27.8%) |
| CIE-LAB | lab(71.58, -13.78, 63.99) |
| CIE-LCH | lch(71.58, 65.46, 102.15°) |
| OKLab | oklab(75.02% -0.0448 0.1404) |
| OKLCH | oklch(75.02% 0.147 107.7) |
| XYZ | xyz(36.5830, 43.0314, 8.9631) |
| Luminance | 0.4303 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Olive Yellow
#C2B709
ΔE00 3.26
Puke Yellow
#C2BE0E
ΔE00 3.65
Mustard Green
#A8B504
ΔE00 4.20
Vomit Yellow
#C7C10C
ΔE00 4.54
Snot
#ACBB0D
ΔE00 4.64
Muddy Yellow
#BFAC05
ΔE00 4.72
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B8B42E #2E32B8
analogous
#B86F2E #B8B42E #77B82E
triadic
#B8B42E #2EB8B4 #B42EB8
tetradic
#B8B42E #2EB86F #2E32B8 #B82E77
square
#B8B42E #2EB86F #2E32B8 #B82E77
split-complementary
#B8B42E #2E77B8 #6F2EB8
monochromatic
#565416 #878422 #B8B42E #D3CF50 #DFDD81
Accessibility & contrast
On white
2.19
#B8B42E on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.61
#B8B42E on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #B8B42E
9.61:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B8B42E | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B8B42E | 1.00 | 2.19 | 9.61 | 9.61 |
| #FFFFFF | 2.19 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.61 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.61 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#C3AD0F
Deuteranopia (green-blind)
#C6B239
Tritanopia (blue-blind)
#C6A89B
Achromatopsia (no color)
#AFAFAF
Design tokens & code
CSS
--color: #b8b42e; /* rgb */ color: rgb(184, 180, 46); /* oklch */ color: oklch(75.0% 0.147 107.7);
Tailwind
colors: {
custom: {
50: '#d1ca71',
500: '#b8b42e',
950: '#000000',
},
}SCSS
$custom: #b8b42e; $custom-light: #d1ca71; $custom-dark: #000000;
JSON
{
"hex": "#b8b42e",
"rgb": {
"r": 184,
"g": 180,
"b": 46
},
"hsl": {
"h": 58.261,
"s": 60,
"l": 45.098
},
"oklch": {
"l": 0.75024,
"c": 0.14735,
"h": 107.7
},
"luminance": 0.4303
}Semantic roles & 50–950 ramp
primary
#B8B42E
secondary
#797CC8
accent
#49E345
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#151308
muted
#83827B