#31B52A#31B52A

#31B52A is a light, highly saturated green. Relative luminance 0.339; OKLCH L 67.7% C 0.207 H 142.3°. Best body text is #000000 at 7.77:1 contrast (WCAG AA passes).

Color values

HEX#31B52A
RGBrgb(49, 181, 42)
HSLhsl(117, 62%, 44%)
HSVhsv(117, 77%, 71%)
CMYKcmyk(72.9%, 0%, 76.8%, 29%)
CIE-LABlab(64.86, -60.29, 56.46)
CIE-LCHlch(64.86, 82.60, 136.88°)
OKLaboklab(67.73% -0.164 0.1267)
OKLCHoklch(67.73% 0.207 142.3)
XYZxyz(18.2073, 33.8658, 7.7672)
Luminance0.3387 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31B52A #AE2AB5
analogous
#76B52A #31B52A #2AB568
triadic
#31B52A #2A31B5 #B52A31
tetradic
#31B52A #2A76B5 #AE2AB5 #B5682A
square
#31B52A #2A76B5 #AE2AB5 #B5682A
split-complementary
#31B52A #682AB5 #B52A76
monochromatic
#165213 #24831E #31B52A #4FD448 #7FE079

Accessibility & contrast

On white

2.70
#31B52A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.77
#31B52A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #31B52A
7.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31B52A#FFFFFF#000000##000000
##31B52A1.002.707.777.77
#FFFFFF2.701.0021.0021.00
#0000007.7721.001.001.00
##0000007.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#B9A407
Deuteranopia (green-blind)
#AA993A
Tritanopia (blue-blind)
#00AF9B
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #31b52a;
/* rgb */ color: rgb(49, 181, 42);
/* oklch */ color: oklch(67.7% 0.207 142.3);
Tailwind
colors: {
  custom: {
    50: '#7ecc6e',
    500: '#31b52a',
    950: '#000000',
  },
}
SCSS
$custom: #31b52a;
$custom-light: #7ecc6e;
$custom-dark: #000000;
JSON
{
  "hex": "#31b52a",
  "rgb": {
    "r": 49,
    "g": 181,
    "b": 42
  },
  "hsl": {
    "h": 116.978,
    "s": 62.332,
    "l": 43.725
  },
  "oklch": {
    "l": 0.67728,
    "c": 0.20723,
    "h": 142.3
  },
  "luminance": 0.33868
}

Semantic roles & 50–950 ramp

primary
#31B52A
secondary
#C473C8
accent
#42E5DD
background
#F8FCF6
surface
#F0F9EC
border
#CBD2C7
text
#0B1408
muted
#7C827B

Preview Lab

Preview with #31B52A

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

Preview Lab → · Contrast checker → · Palette generator →

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