#B2B540#B2B540
#B2B540 is a light, vivid yellow. Relative luminance 0.429; OKLCH L 74.9% C 0.138 H 110.7°. Best body text is #000000 at 9.58:1 contrast (WCAG AA passes).
Color values
| HEX | #B2B540 |
|---|---|
| RGB | rgb(178, 181, 64) |
| HSL | hsl(62, 48%, 48%) |
| HSV | hsv(62, 65%, 71%) |
| CMYK | cmyk(1.7%, 0%, 64.6%, 29%) |
| CIE-LAB | lab(71.48, -15.92, 57.00) |
| CIE-LCH | lch(71.48, 59.18, 105.61°) |
| OKLab | oklab(74.86% -0.0487 0.1289) |
| OKLCH | oklch(74.86% 0.138 110.7) |
| XYZ | xyz(35.8105, 42.8838, 11.2405) |
| Luminance | 0.4288 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Mustard Green
#A8B504
ΔE00 4.11
Snot
#ACBB0D
ΔE00 4.43
Puke Green
#9AAE07
ΔE00 5.38
Vomit
#A2A415
ΔE00 5.42
Booger
#9BB53C
ΔE00 5.49
Sick Green
#9DB92C
ΔE00 5.54
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B2B540 #4340B5
analogous
#B57D40 #B2B540 #78B540
triadic
#B2B540 #40B2B5 #B540B2
tetradic
#B2B540 #40B57D #4340B5 #B54078
square
#B2B540 #40B57D #4340B5 #B54078
split-complementary
#B2B540 #4078B5 #7D40B5
monochromatic
#595B20 #868830 #B2B540 #C7CA68 #D8DA96
Accessibility & contrast
On white
2.19
#B2B540 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.58
#B2B540 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #B2B540
9.58:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B2B540 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B2B540 | 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)
#C3AD30
Deuteranopia (green-blind)
#C4B148
Tritanopia (blue-blind)
#BEAA9D
Achromatopsia (no color)
#AFAFAF
Design tokens & code
CSS
--color: #b2b540; /* rgb */ color: rgb(178, 181, 64); /* oklch */ color: oklch(74.9% 0.138 110.7);
Tailwind
colors: {
custom: {
50: '#cccb7b',
500: '#b2b540',
950: '#000000',
},
}SCSS
$custom: #b2b540; $custom-light: #cccb7b; $custom-dark: #000000;
JSON
{
"hex": "#b2b540",
"rgb": {
"r": 178,
"g": 181,
"b": 64
},
"hsl": {
"h": 61.538,
"s": 47.755,
"l": 48.039
},
"oklch": {
"l": 0.74862,
"c": 0.13778,
"h": 110.7
},
"luminance": 0.42883
}Semantic roles & 50–950 ramp
primary
#B2B540
secondary
#8D8BC5
accent
#50D754
background
#FCFCF7
surface
#F9F8EE
border
#D2D1C9
text
#14130A
muted
#82827C