#31C052#31C052

#31C052 is a light, vivid green. Relative luminance 0.390; OKLCH L 71.0% C 0.192 H 146.9°. Best body text is #000000 at 8.79:1 contrast (WCAG AA passes).

Color values

HEX#31C052
RGBrgb(49, 192, 82)
HSLhsl(134, 59%, 47%)
HSVhsv(134, 74%, 75%)
CMYKcmyk(74.5%, 0%, 57.3%, 24.7%)
CIE-LABlab(68.72, -59.88, 44.27)
CIE-LCHlch(68.72, 74.47, 143.53°)
OKLaboklab(71.04% -0.1612 0.1052)
OKLCHoklch(71.04% 0.192 146.9)
XYZxyz(21.6376, 38.9589, 14.3605)
Luminance0.3896 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31C052 #C0319F
analogous
#58C031 #31C052 #31C099
triadic
#31C052 #5231C0 #C05231
tetradic
#31C052 #3158C0 #C0319F #C09931
square
#31C052 #3158C0 #C0319F #C09931
split-complementary
#31C052 #9931C0 #C03158
monochromatic
#185E28 #258F3D #31C052 #59D576 #8AE19E

Accessibility & contrast

On white

2.39
#31C052 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.79
#31C052 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #31C052
8.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31C052#FFFFFF#000000##000000
##31C0521.002.398.798.79
#FFFFFF2.391.0021.0021.00
#0000008.7921.001.001.00
##0000008.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#C2AF47
Deuteranopia (green-blind)
#B2A35B
Tritanopia (blue-blind)
#00BCA8
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #31c052;
/* rgb */ color: rgb(49, 192, 82);
/* oklch */ color: oklch(71.0% 0.192 146.9);
Tailwind
colors: {
  custom: {
    50: '#7fd486',
    500: '#31c052',
    950: '#000000',
  },
}
SCSS
$custom: #31c052;
$custom-light: #7fd486;
$custom-dark: #000000;
JSON
{
  "hex": "#31c052",
  "rgb": {
    "r": 49,
    "g": 192,
    "b": 82
  },
  "hsl": {
    "h": 133.846,
    "s": 59.336,
    "l": 47.255
  },
  "oklch": {
    "l": 0.71042,
    "c": 0.19249,
    "h": 146.9
  },
  "luminance": 0.38961
}

Semantic roles & 50–950 ramp

primary
#31C052
secondary
#CB82BA
accent
#45BEE3
background
#F8FDF8
surface
#F0FAEF
border
#CBD3CA
text
#0C140B
muted
#7D837C

Preview Lab

Preview with #31C052

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

Preview Lab → · Contrast checker → · Palette generator →

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