#B2D151#B2D151

#B2D151 is a light, vivid yellow-green. Relative luminance 0.557; OKLCH L 81.3% C 0.157 H 121.5°. Best body text is #000000 at 12.13:1 contrast (WCAG AA passes).

Color values

HEX#B2D151
RGBrgb(178, 209, 81)
HSLhsl(75, 58%, 57%)
HSVhsv(75, 61%, 82%)
CMYKcmyk(14.8%, 0%, 61.2%, 18%)
CIE-LABlab(79.42, -28.51, 58.37)
CIE-LCHlch(79.42, 64.96, 116.04°)
OKLaboklab(81.28% -0.0823 0.1341)
OKLCHoklch(81.28% 0.157 121.5)
XYZxyz(42.6462, 55.6600, 16.2798)
Luminance0.5566 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2D151 #7051D1
analogous
#D1B051 #B2D151 #72D151
triadic
#B2D151 #51B2D1 #D151B2
tetradic
#B2D151 #51D1B0 #7051D1 #D15172
square
#B2D151 #51D1B0 #7051D1 #D15172
split-complementary
#B2D151 #5172D1 #B051D1
monochromatic
#6D8523 #95B530 #B2D151 #C7DE81 #DDEBB2

Accessibility & contrast

On white

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

On black

12.13
#B2D151 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B2D151
12.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2D151#FFFFFF#000000##000000
##B2D1511.001.7312.1312.13
#FFFFFF1.731.0021.0021.00
#00000012.1321.001.001.00
##00000012.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#DDC542
Deuteranopia (green-blind)
#D9C55A
Tritanopia (blue-blind)
#BBC7B6
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #b2d151;
/* rgb */ color: rgb(178, 209, 81);
/* oklch */ color: oklch(81.3% 0.157 121.5);
Tailwind
colors: {
  custom: {
    50: '#ccdf87',
    500: '#b2d151',
    950: '#000000',
  },
}
SCSS
$custom: #b2d151;
$custom-light: #ccdf87;
$custom-dark: #000000;
JSON
{
  "hex": "#b2d151",
  "rgb": {
    "r": 178,
    "g": 209,
    "b": 81
  },
  "hsl": {
    "h": 74.531,
    "s": 58.182,
    "l": 56.863
  },
  "oklch": {
    "l": 0.81279,
    "c": 0.15733,
    "h": 121.5
  },
  "luminance": 0.5566
}

Semantic roles & 50–950 ramp

primary
#B2D151
secondary
#4E3B8B
accent
#46E16C
background
#FEFEFC
surface
#FBFCF3
border
#D4D5CD
text
#14150C
muted
#83847F

Preview Lab

Preview with #B2D151

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

Preview Lab → · Contrast checker → · Palette generator →

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