#31C172#31C172

#31C172 is a light, vivid green. Relative luminance 0.400; OKLCH L 71.8% C 0.166 H 153.9°. Best body text is #000000 at 9.00:1 contrast (WCAG AA passes).

Color values

HEX#31C172
RGBrgb(49, 193, 114)
HSLhsl(147, 60%, 47%)
HSVhsv(147, 75%, 76%)
CMYKcmyk(74.6%, 0%, 40.9%, 24.3%)
CIE-LABlab(69.47, -55.17, 29.29)
CIE-LCHlch(69.47, 62.46, 152.04°)
OKLaboklab(71.81% -0.1486 0.0728)
OKLCHoklch(71.81% 0.166 153.9)
XYZxyz(23.3717, 40.0051, 22.4063)
Luminance0.4001 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31C172 #C13180
analogous
#38C131 #31C172 #31C1BA
triadic
#31C172 #7231C1 #C17231
tetradic
#31C172 #3138C1 #C13180 #C1BA31
square
#31C172 #3138C1 #C13180 #C1BA31
split-complementary
#31C172 #BA31C1 #C13138
monochromatic
#185F38 #259055 #31C172 #5AD592 #8BE2B2

Accessibility & contrast

On white

2.33
#31C172 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.00
#31C172 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #31C172
9.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31C172#FFFFFF#000000##000000
##31C1721.002.339.009.00
#FFFFFF2.331.0021.0021.00
#0000009.0021.001.001.00
##0000009.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#C1B16C
Deuteranopia (green-blind)
#B0A577
Tritanopia (blue-blind)
#00BFAD
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #31c172;
/* rgb */ color: rgb(49, 193, 114);
/* oklch */ color: oklch(71.8% 0.166 153.9);
Tailwind
colors: {
  custom: {
    50: '#7ed59b',
    500: '#31c172',
    950: '#000000',
  },
}
SCSS
$custom: #31c172;
$custom-light: #7ed59b;
$custom-dark: #000000;
JSON
{
  "hex": "#31c172",
  "rgb": {
    "r": 49,
    "g": 193,
    "b": 114
  },
  "hsl": {
    "h": 147.083,
    "s": 59.504,
    "l": 47.451
  },
  "oklch": {
    "l": 0.71806,
    "c": 0.1655,
    "h": 153.9
  },
  "luminance": 0.40008
}

Semantic roles & 50–950 ramp

primary
#31C172
secondary
#CC82AA
accent
#459CE3
background
#F8FDF9
surface
#F0FAF2
border
#CBD3CC
text
#0B140E
muted
#7C837E

Preview Lab

Preview with #31C172

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

Preview Lab → · Contrast checker → · Palette generator →

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