#31B871#31B871

#31B871 is a light, vivid green. Relative luminance 0.361; OKLCH L 69.4% C 0.155 H 155.1°. Best body text is #000000 at 8.23:1 contrast (WCAG AA passes).

Color values

HEX#31B871
RGBrgb(49, 184, 113)
HSLhsl(148, 58%, 46%)
HSVhsv(148, 73%, 72%)
CMYKcmyk(73.4%, 0%, 38.6%, 27.8%)
CIE-LABlab(66.61, -51.99, 26.04)
CIE-LCHlch(66.61, 58.14, 153.39°)
OKLaboklab(69.44% -0.1403 0.065)
OKLCHoklch(69.44% 0.155 155.1)
XYZxyz(21.3857, 36.1237, 21.4651)
Luminance0.3613 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31B871 #B83178
analogous
#35B831 #31B871 #31B8B4
triadic
#31B871 #7131B8 #B87131
tetradic
#31B871 #3135B8 #B83178 #B8B431
square
#31B871 #3135B8 #B83178 #B8B431
split-complementary
#31B871 #B431B8 #B83135
monochromatic
#175736 #248853 #31B871 #55D290 #85DEAF

Accessibility & contrast

On white

2.55
#31B871 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.23
#31B871 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #31B871
8.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31B871#FFFFFF#000000##000000
##31B8711.002.558.238.23
#FFFFFF2.551.0021.0021.00
#0000008.2321.001.001.00
##0000008.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#B7A96C
Deuteranopia (green-blind)
#A79D76
Tritanopia (blue-blind)
#00B6A6
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #31b871;
/* rgb */ color: rgb(49, 184, 113);
/* oklch */ color: oklch(69.4% 0.155 155.1);
Tailwind
colors: {
  custom: {
    50: '#7cce9a',
    500: '#31b871',
    950: '#000000',
  },
}
SCSS
$custom: #31b871;
$custom-light: #7cce9a;
$custom-dark: #000000;
JSON
{
  "hex": "#31b871",
  "rgb": {
    "r": 49,
    "g": 184,
    "b": 113
  },
  "hsl": {
    "h": 148.444,
    "s": 57.94,
    "l": 45.686
  },
  "oklch": {
    "l": 0.69442,
    "c": 0.15467,
    "h": 155.1
  },
  "luminance": 0.36126
}

Semantic roles & 50–950 ramp

primary
#31B871
secondary
#C87DA4
accent
#4798E1
background
#F8FCF9
surface
#EFF9F2
border
#CAD2CC
text
#0B140E
muted
#7C827E

Preview Lab

Preview with #31B871

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

Preview Lab → · Contrast checker → · Palette generator →

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