#B2B31E#B2B31E
#B2B31E is a light, vivid yellow. Relative luminance 0.418; OKLCH L 74.2% C 0.155 H 110.1°. Best body text is #000000 at 9.36:1 contrast (WCAG AA passes).
Color values
| HEX | #B2B31E |
|---|---|
| RGB | rgb(178, 179, 30) |
| HSL | hsl(60, 71%, 41%) |
| HSV | hsv(60, 83%, 70%) |
| CMYK | cmyk(0.6%, 0%, 83.2%, 29.8%) |
| CIE-LAB | lab(70.73, -16.44, 67.67) |
| CIE-LCH | lch(70.73, 69.64, 103.65°) |
| OKLab | oklab(74.21% -0.0532 0.1456) |
| OKLCH | oklch(74.21% 0.155 110.1) |
| XYZ | xyz(34.7159, 41.8000, 7.4675) |
| Luminance | 0.4180 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Mustard Green
#A8B504
ΔE00 2.76
Snot
#ACBB0D
ΔE00 3.50
Olive Yellow
#C2B709
ΔE00 3.82
Puke Yellow
#C2BE0E
ΔE00 3.82
Puke
#A5A502
ΔE00 4.03
Vomit
#A2A415
ΔE00 4.46
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B2B31E #1F1EB3
analogous
#B3691E #B2B31E #67B31E
triadic
#B2B31E #1EB2B3 #B31EB2
tetradic
#B2B31E #1EB369 #1F1EB3 #B31E67
square
#B2B31E #1EB369 #1F1EB3 #B31E67
split-complementary
#B2B31E #1E67B3 #691EB3
monochromatic
#4A4A0C #7E7F15 #B2B31E #DBDD32 #E5E566
Accessibility & contrast
On white
2.24
#B2B31E on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.36
#B2B31E on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #B2B31E
9.36:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B2B31E | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B2B31E | 1.00 | 2.24 | 9.36 | 9.36 |
| #FFFFFF | 2.24 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.36 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.36 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#C2AB00
Deuteranopia (green-blind)
#C3AF2D
Tritanopia (blue-blind)
#BFA799
Achromatopsia (no color)
#ADADAD
Design tokens & code
CSS
--color: #b2b31e; /* rgb */ color: rgb(178, 179, 30); /* oklch */ color: oklch(74.2% 0.155 110.1);
Tailwind
colors: {
custom: {
50: '#cdc96a',
500: '#b2b31e',
950: '#000000',
},
}SCSS
$custom: #b2b31e; $custom-light: #cdc96a; $custom-dark: #000000;
JSON
{
"hex": "#b2b31e",
"rgb": {
"r": 178,
"g": 179,
"b": 30
},
"hsl": {
"h": 60.403,
"s": 71.292,
"l": 40.98
},
"oklch": {
"l": 0.74207,
"c": 0.15501,
"h": 110.1
},
"luminance": 0.41799
}Semantic roles & 50–950 ramp
primary
#B2B31E
secondary
#6362CB
accent
#3AEE3B
background
#FDFCF6
surface
#FAF8EC
border
#D3D1C7
text
#141307
muted
#83827A