#B2B940#B2B940
#B2B940 is a light, vivid yellow. Relative luminance 0.445; OKLCH L 75.7% C 0.142 H 112.5°. Best body text is #000000 at 9.91:1 contrast (WCAG AA passes).
Color values
| HEX | #B2B940 |
|---|---|
| RGB | rgb(178, 185, 64) |
| HSL | hsl(63, 49%, 49%) |
| HSV | hsv(63, 65%, 73%) |
| CMYK | cmyk(3.8%, 0%, 65.4%, 27.5%) |
| CIE-LAB | lab(72.58, -17.95, 58.15) |
| CIE-LCH | lch(72.58, 60.86, 107.15°) |
| OKLab | oklab(75.75% -0.0544 0.1313) |
| OKLCH | oklch(75.75% 0.142 112.5) |
| XYZ | xyz(36.6355, 44.5339, 11.5155) |
| Luminance | 0.4453 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Snot
#ACBB0D
ΔE00 3.68
Mustard Green
#A8B504
ΔE00 3.80
Pea
#A4BF20
ΔE00 4.64
Sick Green
#9DB92C
ΔE00 4.67
Bile
#B5C306
ΔE00 4.81
Booger
#9BB53C
ΔE00 4.90
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B2B940 #4740B9
analogous
#B98440 #B2B940 #76B940
triadic
#B2B940 #40B2B9 #B940B2
tetradic
#B2B940 #40B984 #4740B9 #B94076
square
#B2B940 #40B984 #4740B9 #B94076
split-complementary
#B2B940 #4076B9 #8440B9
monochromatic
#5B5E21 #868C30 #B2B940 #C6CC6B #D7DB98
Accessibility & contrast
On white
2.12
#B2B940 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.91
#B2B940 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #B2B940
9.91:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B2B940 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B2B940 | 1.00 | 2.12 | 9.91 | 9.91 |
| #FFFFFF | 2.12 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.91 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.91 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#C7B12F
Deuteranopia (green-blind)
#C7B348
Tritanopia (blue-blind)
#BEAEA0
Achromatopsia (no color)
#B2B2B2
Design tokens & code
CSS
--color: #b2b940; /* rgb */ color: rgb(178, 185, 64); /* oklch */ color: oklch(75.7% 0.142 112.5);
Tailwind
colors: {
custom: {
50: '#cccd7b',
500: '#b2b940',
950: '#000000',
},
}SCSS
$custom: #b2b940; $custom-light: #cccd7b; $custom-dark: #000000;
JSON
{
"hex": "#b2b940",
"rgb": {
"r": 178,
"g": 185,
"b": 64
},
"hsl": {
"h": 63.471,
"s": 48.594,
"l": 48.824
},
"oklch": {
"l": 0.75747,
"c": 0.14213,
"h": 112.5
},
"luminance": 0.44533
}Semantic roles & 50–950 ramp
primary
#B2B940
secondary
#918EC7
accent
#50D858
background
#FCFCF7
surface
#F9F9EE
border
#D2D2C9
text
#14130A
muted
#82827C