#31B152#31B152

#31B152 is a light, vivid green. Relative luminance 0.327; OKLCH L 67.1% C 0.174 H 147.8°. Best body text is #000000 at 7.54:1 contrast (WCAG AA passes).

Color values

HEX#31B152
RGBrgb(49, 177, 82)
HSLhsl(135, 57%, 44%)
HSVhsv(135, 72%, 69%)
CMYKcmyk(72.3%, 0%, 53.7%, 30.6%)
CIE-LABlab(63.92, -54.67, 38.52)
CIE-LCHlch(63.92, 66.87, 144.83°)
OKLaboklab(67.07% -0.1472 0.0925)
OKLCHoklch(67.07% 0.174 147.8)
XYZxyz(18.5103, 32.7044, 13.3180)
Luminance0.3271 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31B152 #B13190
analogous
#50B131 #31B152 #31B192
triadic
#31B152 #5231B1 #B15231
tetradic
#31B152 #3150B1 #B13190 #B19231
square
#31B152 #3150B1 #B13190 #B19231
split-complementary
#31B152 #9231B1 #B13150
monochromatic
#165126 #24813C #31B152 #51CF71 #80DC98

Accessibility & contrast

On white

2.78
#31B152 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.54
#31B152 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #31B152
7.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31B152#FFFFFF#000000##000000
##31B1521.002.787.547.54
#FFFFFF2.781.0021.0021.00
#0000007.5421.001.001.00
##0000007.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#B3A149
Deuteranopia (green-blind)
#A49759
Tritanopia (blue-blind)
#00AD9B
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #31b152;
/* rgb */ color: rgb(49, 177, 82);
/* oklch */ color: oklch(67.1% 0.174 147.8);
Tailwind
colors: {
  custom: {
    50: '#7bc985',
    500: '#31b152',
    950: '#000000',
  },
}
SCSS
$custom: #31b152;
$custom-light: #7bc985;
$custom-dark: #000000;
JSON
{
  "hex": "#31b152",
  "rgb": {
    "r": 49,
    "g": 177,
    "b": 82
  },
  "hsl": {
    "h": 135.469,
    "s": 56.637,
    "l": 44.314
  },
  "oklch": {
    "l": 0.67067,
    "c": 0.17385,
    "h": 147.8
  },
  "luminance": 0.32706
}

Semantic roles & 50–950 ramp

primary
#31B152
secondary
#C579B1
accent
#48B9E0
background
#F8FCF8
surface
#EFF8EF
border
#CAD1CA
text
#0B130B
muted
#7C827C

Preview Lab

Preview with #31B152

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

Preview Lab → · Contrast checker → · Palette generator →

#31B152 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva