#B2D158#B2D158

#B2D158 is a light, vivid yellow-green. Relative luminance 0.558; OKLCH L 81.3% C 0.152 H 121.9°. Best body text is #000000 at 12.15:1 contrast (WCAG AA passes).

Color values

HEX#B2D158
RGBrgb(178, 209, 88)
HSLhsl(75, 57%, 58%)
HSVhsv(75, 58%, 82%)
CMYKcmyk(14.8%, 0%, 57.9%, 18%)
CIE-LABlab(79.48, -27.96, 55.40)
CIE-LCHlch(79.48, 62.06, 116.78°)
OKLaboklab(81.35% -0.0801 0.1286)
OKLCHoklch(81.35% 0.152 121.9)
XYZxyz(42.9224, 55.7704, 17.7342)
Luminance0.5577 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2D158 #7758D1
analogous
#D1B358 #B2D158 #75D158
triadic
#B2D158 #58B2D1 #D158B2
tetradic
#B2D158 #58D1B3 #7758D1 #D15875
square
#B2D158 #58D1B3 #7758D1 #D15875
split-complementary
#B2D158 #5875D1 #B358D1
monochromatic
#6F8926 #97B933 #B2D158 #C8DE88 #DEEBB8

Accessibility & contrast

On white

1.73
#B2D158 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.15
#B2D158 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B2D158
12.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2D158#FFFFFF#000000##000000
##B2D1581.001.7312.1512.15
#FFFFFF1.731.0021.0021.00
#00000012.1521.001.001.00
##00000012.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#DCC64B
Deuteranopia (green-blind)
#D8C560
Tritanopia (blue-blind)
#BAC7B7
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #b2d158;
/* rgb */ color: rgb(178, 209, 88);
/* oklch */ color: oklch(81.3% 0.152 121.9);
Tailwind
colors: {
  custom: {
    50: '#cbdf8b',
    500: '#b2d158',
    950: '#000000',
  },
}
SCSS
$custom: #b2d158;
$custom-light: #cbdf8b;
$custom-dark: #000000;
JSON
{
  "hex": "#b2d158",
  "rgb": {
    "r": 178,
    "g": 209,
    "b": 88
  },
  "hsl": {
    "h": 75.372,
    "s": 56.808,
    "l": 58.235
  },
  "oklch": {
    "l": 0.8135,
    "c": 0.15152,
    "h": 121.9
  },
  "luminance": 0.5577
}

Semantic roles & 50–950 ramp

primary
#B2D158
secondary
#533E8F
accent
#48E06F
background
#FEFEFC
surface
#FBFCF4
border
#D4D5CE
text
#14150C
muted
#83847F

Preview Lab

Preview with #B2D158

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#B2D158 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva