#31B873#31B873

#31B873 is a light, vivid green. Relative luminance 0.362; OKLCH L 69.5% C 0.153 H 155.8°. Best body text is #000000 at 8.23:1 contrast (WCAG AA passes).

Color values

HEX#31B873
RGBrgb(49, 184, 115)
HSLhsl(149, 58%, 46%)
HSVhsv(149, 73%, 72%)
CMYKcmyk(73.4%, 0%, 37.5%, 27.8%)
CIE-LABlab(66.65, -51.60, 25.02)
CIE-LCHlch(66.65, 57.34, 154.13°)
OKLaboklab(69.48% -0.1394 0.0627)
OKLCHoklch(69.48% 0.153 155.8)
XYZxyz(21.4996, 36.1693, 22.0646)
Luminance0.3617 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31B873 #B83176
analogous
#33B831 #31B873 #31B8B6
triadic
#31B873 #7331B8 #B87331
tetradic
#31B873 #3133B8 #B83176 #B8B631
square
#31B873 #3133B8 #B83176 #B8B631
split-complementary
#31B873 #B631B8 #B83133
monochromatic
#175737 #248855 #31B873 #55D292 #85DEB1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##31B873#FFFFFF#000000##000000
##31B8731.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)
#B7A96E
Deuteranopia (green-blind)
#A79D78
Tritanopia (blue-blind)
#00B6A6
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #31b873;
/* rgb */ color: rgb(49, 184, 115);
/* oklch */ color: oklch(69.5% 0.153 155.8);
Tailwind
colors: {
  custom: {
    50: '#7cce9c',
    500: '#31b873',
    950: '#000000',
  },
}
SCSS
$custom: #31b873;
$custom-light: #7cce9c;
$custom-dark: #000000;
JSON
{
  "hex": "#31b873",
  "rgb": {
    "r": 49,
    "g": 184,
    "b": 115
  },
  "hsl": {
    "h": 149.333,
    "s": 57.94,
    "l": 45.686
  },
  "oklch": {
    "l": 0.69482,
    "c": 0.15284,
    "h": 155.8
  },
  "luminance": 0.36172
}

Semantic roles & 50–950 ramp

primary
#31B873
secondary
#C87DA3
accent
#4796E1
background
#F8FCF9
surface
#EFF9F2
border
#CAD2CC
text
#0B140E
muted
#7C827E

Preview Lab

Preview with #31B873

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

Preview Lab → · Contrast checker → · Palette generator →

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