#31C254#31C254

#31C254 is a light, vivid green. Relative luminance 0.399; OKLCH L 71.6% C 0.193 H 147.1°. Best body text is #000000 at 8.98:1 contrast (WCAG AA passes).

Color values

HEX#31C254
RGBrgb(49, 194, 84)
HSLhsl(134, 60%, 48%)
HSVhsv(134, 75%, 76%)
CMYKcmyk(74.7%, 0%, 56.7%, 23.9%)
CIE-LABlab(69.38, -60.29, 44.11)
CIE-LCHlch(69.38, 74.70, 143.81°)
OKLaboklab(71.6% -0.1623 0.105)
OKLCHoklch(71.6% 0.193 147.1)
XYZxyz(22.1570, 39.8741, 14.9145)
Luminance0.3988 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31C254 #C2319F
analogous
#56C231 #31C254 #31C29D
triadic
#31C254 #5431C2 #C25431
tetradic
#31C254 #3156C2 #C2319F #C29D31
square
#31C254 #3156C2 #C2319F #C29D31
split-complementary
#31C254 #9D31C2 #C23156
monochromatic
#18602A #25913F #31C254 #5BD678 #8CE2A0

Accessibility & contrast

On white

2.34
#31C254 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.98
#31C254 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #31C254
8.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31C254#FFFFFF#000000##000000
##31C2541.002.348.988.98
#FFFFFF2.341.0021.0021.00
#0000008.9821.001.001.00
##0000008.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#C4B049
Deuteranopia (green-blind)
#B4A55D
Tritanopia (blue-blind)
#00BEAA
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #31c254;
/* rgb */ color: rgb(49, 194, 84);
/* oklch */ color: oklch(71.6% 0.193 147.1);
Tailwind
colors: {
  custom: {
    50: '#7fd687',
    500: '#31c254',
    950: '#000000',
  },
}
SCSS
$custom: #31c254;
$custom-light: #7fd687;
$custom-dark: #000000;
JSON
{
  "hex": "#31c254",
  "rgb": {
    "r": 49,
    "g": 194,
    "b": 84
  },
  "hsl": {
    "h": 134.483,
    "s": 59.671,
    "l": 47.647
  },
  "oklch": {
    "l": 0.71595,
    "c": 0.19328,
    "h": 147.1
  },
  "luminance": 0.39877
}

Semantic roles & 50–950 ramp

primary
#31C254
secondary
#CC83BA
accent
#45BDE3
background
#F8FDF8
surface
#F0FAF0
border
#CBD3CB
text
#0C140B
muted
#7D837C

Preview Lab

Preview with #31C254

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

Preview Lab → · Contrast checker → · Palette generator →

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