#31A452#31A452

#31A452 is a light, vivid green. Relative luminance 0.278; OKLCH L 63.6% C 0.157 H 148.9°. Best body text is #000000 at 6.56:1 contrast (WCAG AA passes).

Color values

HEX#31A452
RGBrgb(49, 164, 82)
HSLhsl(137, 54%, 42%)
HSVhsv(137, 70%, 64%)
CMYKcmyk(70.1%, 0%, 50%, 35.7%)
CIE-LABlab(59.72, -49.93, 33.34)
CIE-LCHlch(59.72, 60.03, 146.27°)
OKLaboklab(63.59% -0.1345 0.081)
OKLCHoklch(63.59% 0.157 148.9)
XYZxyz(16.0638, 27.8113, 12.5025)
Luminance0.2781 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31A452 #A43183
analogous
#4AA431 #31A452 #31A48C
triadic
#31A452 #5231A4 #A45231
tetradic
#31A452 #314AA4 #A43183 #A48C31
square
#31A452 #314AA4 #A43183 #A48C31
split-complementary
#31A452 #8C31A4 #A4314A
monochromatic
#154623 #23753A #31A452 #49C96E #79D794

Accessibility & contrast

On white

3.20
#31A452 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.56
#31A452 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #31A452
6.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31A452#FFFFFF#000000##000000
##31A4521.003.206.566.56
#FFFFFF3.201.0021.0021.00
#0000006.5621.001.001.00
##0000006.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#A5964B
Deuteranopia (green-blind)
#978C58
Tritanopia (blue-blind)
#00A191
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #31a452;
/* rgb */ color: rgb(49, 164, 82);
/* oklch */ color: oklch(63.6% 0.157 148.9);
Tailwind
colors: {
  custom: {
    50: '#79c084',
    500: '#31a452',
    950: '#000000',
  },
}
SCSS
$custom: #31a452;
$custom-light: #79c084;
$custom-dark: #000000;
JSON
{
  "hex": "#31a452",
  "rgb": {
    "r": 49,
    "g": 164,
    "b": 82
  },
  "hsl": {
    "h": 137.217,
    "s": 53.991,
    "l": 41.765
  },
  "oklch": {
    "l": 0.63592,
    "c": 0.15696,
    "h": 148.9
  },
  "luminance": 0.27813
}

Semantic roles & 50–950 ramp

primary
#31A452
secondary
#BF72A9
accent
#4AB3DD
background
#F7FBF8
surface
#EEF7EF
border
#C9D0CA
text
#0A120B
muted
#7C817C

Preview Lab

Preview with #31A452

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

Preview Lab → · Contrast checker → · Palette generator →

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