#31AB42#31AB42

#31AB42 is a light, vivid green. Relative luminance 0.302; OKLCH L 65.3% C 0.180 H 145.2°. Best body text is #000000 at 7.03:1 contrast (WCAG AA passes).

Color values

HEX#31AB42
RGBrgb(49, 171, 66)
HSLhsl(128, 55%, 43%)
HSVhsv(128, 71%, 67%)
CMYKcmyk(71.3%, 0%, 61.4%, 32.9%)
CIE-LABlab(61.80, -54.68, 43.63)
CIE-LCHlch(61.80, 69.95, 141.41°)
OKLaboklab(65.25% -0.1477 0.1025)
OKLCHoklch(65.25% 0.18 145.2)
XYZxyz(16.8118, 30.1703, 10.0906)
Luminance0.3017 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31AB42 #AB319A
analogous
#5DAB31 #31AB42 #31AB7F
triadic
#31AB42 #4231AB #AB4231
tetradic
#31AB42 #315DAB #AB319A #AB7F31
square
#31AB42 #315DAB #AB319A #AB7F31
split-complementary
#31AB42 #7F31AB #AB315D
monochromatic
#164C1D #237B30 #31AB42 #4DCC5F #7DDA8A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##31AB42#FFFFFF#000000##000000
##31AB421.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)
#AE9B37
Deuteranopia (green-blind)
#A0914B
Tritanopia (blue-blind)
#00A794
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #31ab42;
/* rgb */ color: rgb(49, 171, 66);
/* oklch */ color: oklch(65.3% 0.180 145.2);
Tailwind
colors: {
  custom: {
    50: '#7bc57a',
    500: '#31ab42',
    950: '#000000',
  },
}
SCSS
$custom: #31ab42;
$custom-light: #7bc57a;
$custom-dark: #000000;
JSON
{
  "hex": "#31ab42",
  "rgb": {
    "r": 49,
    "g": 171,
    "b": 66
  },
  "hsl": {
    "h": 128.361,
    "s": 55.455,
    "l": 43.137
  },
  "oklch": {
    "l": 0.65254,
    "c": 0.17975,
    "h": 145.2
  },
  "luminance": 0.30172
}

Semantic roles & 50–950 ramp

primary
#31AB42
secondary
#C275B8
accent
#49CADF
background
#F8FCF7
surface
#EFF8EE
border
#CAD1C9
text
#0B1309
muted
#7C827B

Preview Lab

Preview with #31AB42

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

Preview Lab → · Contrast checker → · Palette generator →

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