#B2C938#B2C938
#B2C938 is a light, vivid yellow. Relative luminance 0.515; OKLCH L 79.3% C 0.165 H 118.3°. Best body text is #000000 at 11.30:1 contrast (WCAG AA passes).
Color values
| HEX | #B2C938 |
|---|---|
| RGB | rgb(178, 201, 56) |
| HSL | hsl(70, 57%, 50%) |
| HSV | hsv(70, 72%, 79%) |
| CMYK | cmyk(11.4%, 0%, 72.1%, 21.2%) |
| CIE-LAB | lab(77.00, -26.27, 65.58) |
| CIE-LCH | lch(77.00, 70.64, 111.83°) |
| OKLab | oklab(79.27% -0.0784 0.1457) |
| OKLCH | oklch(79.27% 0.165 118.3) |
| XYZ | xyz(39.9614, 51.5241, 11.5806) |
| Luminance | 0.5152 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Pea
#A4BF20
ΔE00 3.02
Green Yellow
#B5CE08
ΔE00 3.03
Gross Green
#A0BF16
ΔE00 3.51
Baby Puke Green
#B6C406
ΔE00 3.65
Bile
#B5C306
ΔE00 3.68
Snot Green
#9DC100
ΔE00 3.86
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B2C938 #4F38C9
analogous
#C99738 #B2C938 #6AC938
triadic
#B2C938 #38B2C9 #C938B2
tetradic
#B2C938 #38C997 #4F38C9 #C9386A
square
#B2C938 #38C997 #4F38C9 #C9386A
split-complementary
#B2C938 #386AC9 #9738C9
monochromatic
#5E6A1D #889A2A #B2C938 #C5D668 #D7E398
Accessibility & contrast
On white
1.86
#B2C938 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
11.30
#B2C938 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #B2C938
11.30:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B2C938 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B2C938 | 1.00 | 1.86 | 11.30 | 11.30 |
| #FFFFFF | 1.86 | 1.00 | 21.00 | 21.00 |
| #000000 | 11.30 | 21.00 | 1.00 | 1.00 |
| ##000000 | 11.30 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#D6BE1C
Deuteranopia (green-blind)
#D4BF44
Tritanopia (blue-blind)
#BDBEAD
Achromatopsia (no color)
#BEBEBE
Design tokens & code
CSS
--color: #b2c938; /* rgb */ color: rgb(178, 201, 56); /* oklch */ color: oklch(79.3% 0.165 118.3);
Tailwind
colors: {
custom: {
50: '#cdd978',
500: '#b2c938',
950: '#000000',
},
}SCSS
$custom: #b2c938; $custom-light: #cdd978; $custom-dark: #000000;
JSON
{
"hex": "#b2c938",
"rgb": {
"r": 178,
"g": 201,
"b": 56
},
"hsl": {
"h": 69.517,
"s": 57.312,
"l": 50.392
},
"oklch": {
"l": 0.7927,
"c": 0.16539,
"h": 118.3
},
"luminance": 0.51524
}Semantic roles & 50–950 ramp
primary
#B2C938
secondary
#3C3174
accent
#47E160
background
#FEFEFB
surface
#FBFBF2
border
#D4D4CC
text
#14140A
muted
#83837D