#31AB52#31AB52

#31AB52 is a light, vivid green. Relative luminance 0.304; OKLCH L 65.5% C 0.166 H 148.3°. Best body text is #000000 at 7.08:1 contrast (WCAG AA passes).

Color values

HEX#31AB52
RGBrgb(49, 171, 82)
HSLhsl(136, 55%, 43%)
HSVhsv(136, 71%, 67%)
CMYKcmyk(71.3%, 0%, 52%, 32.9%)
CIE-LABlab(61.99, -52.51, 36.15)
CIE-LCHlch(61.99, 63.75, 145.45°)
OKLaboklab(65.47% -0.1414 0.0873)
OKLCHoklch(65.47% 0.166 148.3)
XYZxyz(17.3512, 30.3861, 12.9317)
Luminance0.3039 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31AB52 #AB318A
analogous
#4DAB31 #31AB52 #31AB8F
triadic
#31AB52 #5231AB #AB5231
tetradic
#31AB52 #314DAB #AB318A #AB8F31
square
#31AB52 #314DAB #AB318A #AB8F31
split-complementary
#31AB52 #8F31AB #AB314D
monochromatic
#164C24 #237B3B #31AB52 #4DCC6F #7DDA96

Accessibility & contrast

On white

2.97
#31AB52 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.08
#31AB52 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #31AB52
7.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31AB52#FFFFFF#000000##000000
##31AB521.002.977.087.08
#FFFFFF2.971.0021.0021.00
#0000007.0821.001.001.00
##0000007.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#AD9C4A
Deuteranopia (green-blind)
#9E9259
Tritanopia (blue-blind)
#00A897
Achromatopsia (no color)
#969696

Design tokens & code

CSS
--color: #31ab52;
/* rgb */ color: rgb(49, 171, 82);
/* oklch */ color: oklch(65.5% 0.166 148.3);
Tailwind
colors: {
  custom: {
    50: '#7ac584',
    500: '#31ab52',
    950: '#000000',
  },
}
SCSS
$custom: #31ab52;
$custom-light: #7ac584;
$custom-dark: #000000;
JSON
{
  "hex": "#31ab52",
  "rgb": {
    "r": 49,
    "g": 171,
    "b": 82
  },
  "hsl": {
    "h": 136.23,
    "s": 55.455,
    "l": 43.137
  },
  "oklch": {
    "l": 0.65467,
    "c": 0.16615,
    "h": 148.3
  },
  "luminance": 0.30388
}

Semantic roles & 50–950 ramp

primary
#31AB52
secondary
#C275AE
accent
#49B6DF
background
#F8FCF8
surface
#EFF8EF
border
#CAD1CA
text
#0A130B
muted
#7C827C

Preview Lab

Preview with #31AB52

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

Preview Lab → · Contrast checker → · Palette generator →

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