#B5B42E#B5B42E
#B5B42E is a light, vivid yellow. Relative luminance 0.427; OKLCH L 74.8% C 0.148 H 109.1°. Best body text is #000000 at 9.53:1 contrast (WCAG AA passes).
Color values
| HEX | #B5B42E |
|---|---|
| RGB | rgb(181, 180, 46) |
| HSL | hsl(60, 59%, 45%) |
| HSV | hsv(60, 75%, 71%) |
| CMYK | cmyk(0%, 0.6%, 74.6%, 29%) |
| CIE-LAB | lab(71.33, -15.07, 63.67) |
| CIE-LCH | lch(71.33, 65.43, 103.32°) |
| OKLab | oklab(74.77% -0.0483 0.1398) |
| OKLCH | oklch(74.77% 0.148 109.1) |
| XYZ | xyz(35.8718, 42.6646, 8.9297) |
| Luminance | 0.4266 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Mustard Green
#A8B504
ΔE00 3.54
Olive Yellow
#C2B709
ΔE00 3.88
Puke Yellow
#C2BE0E
ΔE00 3.94
Snot
#ACBB0D
ΔE00 4.04
Puke
#A5A502
ΔE00 4.58
Vomit
#A2A415
ΔE00 4.87
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B5B42E #2E2FB5
analogous
#B5712E #B5B42E #72B52E
triadic
#B5B42E #2EB5B4 #B42EB5
tetradic
#B5B42E #2EB571 #2E2FB5 #B52E72
square
#B5B42E #2EB571 #2E2FB5 #B52E72
split-complementary
#B5B42E #2E72B5 #712EB5
monochromatic
#535315 #848322 #B5B42E #D2D14E #DEDE7F
Accessibility & contrast
On white
2.20
#B5B42E on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.53
#B5B42E on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #B5B42E
9.53:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B5B42E | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B5B42E | 1.00 | 2.20 | 9.53 | 9.53 |
| #FFFFFF | 2.20 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.53 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.53 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#C3AC10
Deuteranopia (green-blind)
#C5B139
Tritanopia (blue-blind)
#C2A89B
Achromatopsia (no color)
#AFAFAF
Design tokens & code
CSS
--color: #b5b42e; /* rgb */ color: rgb(181, 180, 46); /* oklch */ color: oklch(74.8% 0.148 109.1);
Tailwind
colors: {
custom: {
50: '#cfca71',
500: '#b5b42e',
950: '#000000',
},
}SCSS
$custom: #b5b42e; $custom-light: #cfca71; $custom-dark: #000000;
JSON
{
"hex": "#b5b42e",
"rgb": {
"r": 181,
"g": 180,
"b": 46
},
"hsl": {
"h": 59.556,
"s": 59.471,
"l": 44.51
},
"oklch": {
"l": 0.74765,
"c": 0.1479,
"h": 109.1
},
"luminance": 0.42664
}Semantic roles & 50–950 ramp
primary
#B5B42E
secondary
#7878C7
accent
#46E345
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141308
muted
#83827B