#31B158#31B158

#31B158 is a light, vivid green. Relative luminance 0.328; OKLCH L 67.2% C 0.169 H 149.2°. Best body text is #000000 at 7.56:1 contrast (WCAG AA passes).

Color values

HEX#31B158
RGBrgb(49, 177, 88)
HSLhsl(138, 57%, 44%)
HSVhsv(138, 72%, 69%)
CMYKcmyk(72.3%, 0%, 50.3%, 30.6%)
CIE-LABlab(64.00, -53.76, 35.62)
CIE-LCHlch(64.00, 64.49, 146.47°)
OKLaboklab(67.16% -0.1447 0.0864)
OKLCHoklch(67.16% 0.169 149.2)
XYZxyz(18.7487, 32.7997, 14.5735)
Luminance0.3280 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31B158 #B1318A
analogous
#4AB131 #31B158 #31B198
triadic
#31B158 #5831B1 #B15831
tetradic
#31B158 #314AB1 #B1318A #B19831
square
#31B158 #314AB1 #B1318A #B19831
split-complementary
#31B158 #9831B1 #B1314A
monochromatic
#165128 #248140 #31B158 #51CF77 #80DC9C

Accessibility & contrast

On white

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

On black

7.56
#31B158 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #31B158
7.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31B158#FFFFFF#000000##000000
##31B1581.002.787.567.56
#FFFFFF2.781.0021.0021.00
#0000007.5621.001.001.00
##0000007.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#B2A251
Deuteranopia (green-blind)
#A3975E
Tritanopia (blue-blind)
#00AE9C
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #31b158;
/* rgb */ color: rgb(49, 177, 88);
/* oklch */ color: oklch(67.2% 0.169 149.2);
Tailwind
colors: {
  custom: {
    50: '#7bc989',
    500: '#31b158',
    950: '#000000',
  },
}
SCSS
$custom: #31b158;
$custom-light: #7bc989;
$custom-dark: #000000;
JSON
{
  "hex": "#31b158",
  "rgb": {
    "r": 49,
    "g": 177,
    "b": 88
  },
  "hsl": {
    "h": 138.281,
    "s": 56.637,
    "l": 44.314
  },
  "oklch": {
    "l": 0.67156,
    "c": 0.16851,
    "h": 149.2
  },
  "luminance": 0.32802
}

Semantic roles & 50–950 ramp

primary
#31B158
secondary
#C579AE
accent
#48B2E0
background
#F8FCF8
surface
#EFF8F0
border
#CAD1CB
text
#0B130B
muted
#7C827C

Preview Lab

Preview with #31B158

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

Preview Lab → · Contrast checker → · Palette generator →

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