#B2CC31#B2CC31

#B2CC31 is a light, vivid yellow-green. Relative luminance 0.529; OKLCH L 79.9% C 0.173 H 119.0°. Best body text is #000000 at 11.57:1 contrast (WCAG AA passes).

Color values

HEX#B2CC31
RGBrgb(178, 204, 49)
HSLhsl(70, 61%, 50%)
HSVhsv(70, 76%, 80%)
CMYKcmyk(12.7%, 0%, 76%, 20%)
CIE-LABlab(77.80, -28.03, 68.64)
CIE-LCHlch(77.80, 74.15, 112.22°)
OKLaboklab(79.91% -0.0838 0.151)
OKLCHoklch(79.91% 0.173 119)
XYZxyz(40.5082, 52.8727, 10.9766)
Luminance0.5287 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2CC31 #4B31CC
analogous
#CC9931 #B2CC31 #64CC31
triadic
#B2CC31 #31B2CC #CC31B2
tetradic
#B2CC31 #31CC99 #4B31CC #CC3164
square
#B2CC31 #31CC99 #4B31CC #CC3164
split-complementary
#B2CC31 #3164CC #9931CC
monochromatic
#5C6919 #879B25 #B2CC31 #C5D961 #D7E592

Accessibility & contrast

On white

1.81
#B2CC31 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.57
#B2CC31 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B2CC31
11.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2CC31#FFFFFF#000000##000000
##B2CC311.001.8111.5711.57
#FFFFFF1.811.0021.0021.00
#00000011.5721.001.001.00
##00000011.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#D9C005
Deuteranopia (green-blind)
#D7C13F
Tritanopia (blue-blind)
#BDC1AF
Achromatopsia (no color)
#C0C0C0

Design tokens & code

CSS
--color: #b2cc31;
/* rgb */ color: rgb(178, 204, 49);
/* oklch */ color: oklch(79.9% 0.173 119.0);
Tailwind
colors: {
  custom: {
    50: '#cddb75',
    500: '#b2cc31',
    950: '#000000',
  },
}
SCSS
$custom: #b2cc31;
$custom-light: #cddb75;
$custom-dark: #000000;
JSON
{
  "hex": "#b2cc31",
  "rgb": {
    "r": 178,
    "g": 204,
    "b": 49
  },
  "hsl": {
    "h": 70.065,
    "s": 61.265,
    "l": 49.608
  },
  "oklch": {
    "l": 0.79905,
    "c": 0.17266,
    "h": 119
  },
  "luminance": 0.52872
}

Semantic roles & 50–950 ramp

primary
#B2CC31
secondary
#3A2E73
accent
#43E45E
background
#FEFEFB
surface
#FBFBF1
border
#D4D4CB
text
#141509
muted
#83847D

Preview Lab

Preview with #B2CC31

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

Preview Lab → · Contrast checker → · Palette generator →

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