#31AB40#31AB40

#31AB40 is a light, vivid green. Relative luminance 0.301; OKLCH L 65.2% C 0.181 H 144.9°. Best body text is #000000 at 7.03:1 contrast (WCAG AA passes).

Color values

HEX#31AB40
RGBrgb(49, 171, 64)
HSLhsl(127, 55%, 43%)
HSVhsv(127, 71%, 67%)
CMYKcmyk(71.3%, 0%, 62.6%, 32.9%)
CIE-LABlab(61.78, -54.92, 44.52)
CIE-LCHlch(61.78, 70.70, 140.97°)
OKLaboklab(65.23% -0.1484 0.1042)
OKLCHoklch(65.23% 0.181 144.9)
XYZxyz(16.7538, 30.1471, 9.7855)
Luminance0.3015 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31AB40 #AB319C
analogous
#5FAB31 #31AB40 #31AB7D
triadic
#31AB40 #4031AB #AB4031
tetradic
#31AB40 #315FAB #AB319C #AB7D31
square
#31AB40 #315FAB #AB319C #AB7D31
split-complementary
#31AB40 #7D31AB #AB315F
monochromatic
#164C1C #237B2E #31AB40 #4DCC5D #7DDA88

Accessibility & contrast

On white

2.99
#31AB40 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.03
#31AB40 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #31AB40
7.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31AB40#FFFFFF#000000##000000
##31AB401.002.997.037.03
#FFFFFF2.991.0021.0021.00
#0000007.0321.001.001.00
##0000007.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#AE9B34
Deuteranopia (green-blind)
#A09149
Tritanopia (blue-blind)
#00A794
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #31ab40;
/* rgb */ color: rgb(49, 171, 64);
/* oklch */ color: oklch(65.2% 0.181 144.9);
Tailwind
colors: {
  custom: {
    50: '#7bc579',
    500: '#31ab40',
    950: '#000000',
  },
}
SCSS
$custom: #31ab40;
$custom-light: #7bc579;
$custom-dark: #000000;
JSON
{
  "hex": "#31ab40",
  "rgb": {
    "r": 49,
    "g": 171,
    "b": 64
  },
  "hsl": {
    "h": 127.377,
    "s": 55.455,
    "l": 43.137
  },
  "oklch": {
    "l": 0.65231,
    "c": 0.18133,
    "h": 144.9
  },
  "luminance": 0.30149
}

Semantic roles & 50–950 ramp

primary
#31AB40
secondary
#C275B9
accent
#49CCDF
background
#F8FCF7
surface
#EFF8EE
border
#CAD1C9
text
#0B1309
muted
#7C827B

Preview Lab

Preview with #31AB40

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

Preview Lab → · Contrast checker → · Palette generator →

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