#31B142#31B142

#31B142 is a light, vivid green. Relative luminance 0.325; OKLCH L 66.9% C 0.187 H 145.0°. Best body text is #000000 at 7.50:1 contrast (WCAG AA passes).

Color values

HEX#31B142
RGBrgb(49, 177, 66)
HSLhsl(128, 57%, 44%)
HSVhsv(128, 72%, 69%)
CMYKcmyk(72.3%, 0%, 62.7%, 30.6%)
CIE-LABlab(63.74, -56.75, 45.84)
CIE-LCHlch(63.74, 72.95, 141.07°)
OKLaboklab(66.86% -0.1533 0.1072)
OKLCHoklch(66.86% 0.187 145)
XYZxyz(17.9709, 32.4886, 10.4770)
Luminance0.3249 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31B142 #B131A0
analogous
#60B131 #31B142 #31B182
triadic
#31B142 #4231B1 #B14231
tetradic
#31B142 #3160B1 #B131A0 #B18231
square
#31B142 #3160B1 #B131A0 #B18231
split-complementary
#31B142 #8231B1 #B13160
monochromatic
#16511E #248130 #31B142 #51CF61 #80DC8D

Accessibility & contrast

On white

2.80
#31B142 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.50
#31B142 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #31B142
7.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31B142#FFFFFF#000000##000000
##31B1421.002.807.507.50
#FFFFFF2.801.0021.0021.00
#0000007.5021.001.001.00
##0000007.5021.001.001.00

Color blindness preview

Protanopia (red-blind)
#B4A135
Deuteranopia (green-blind)
#A5964B
Tritanopia (blue-blind)
#00AC99
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #31b142;
/* rgb */ color: rgb(49, 177, 66);
/* oklch */ color: oklch(66.9% 0.187 145.0);
Tailwind
colors: {
  custom: {
    50: '#7cc97b',
    500: '#31b142',
    950: '#000000',
  },
}
SCSS
$custom: #31b142;
$custom-light: #7cc97b;
$custom-dark: #000000;
JSON
{
  "hex": "#31b142",
  "rgb": {
    "r": 49,
    "g": 177,
    "b": 66
  },
  "hsl": {
    "h": 127.969,
    "s": 56.637,
    "l": 44.314
  },
  "oklch": {
    "l": 0.66864,
    "c": 0.18706,
    "h": 145
  },
  "luminance": 0.32491
}

Semantic roles & 50–950 ramp

primary
#31B142
secondary
#C579BB
accent
#48CCE0
background
#F8FCF7
surface
#EFF8EE
border
#CAD1C9
text
#0B1309
muted
#7C827B

Preview Lab

Preview with #31B142

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

Preview Lab → · Contrast checker → · Palette generator →

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