#31C778#31C778

#31C778 is a light, vivid green. Relative luminance 0.429; OKLCH L 73.5% C 0.168 H 154.7°. Best body text is #000000 at 9.57:1 contrast (WCAG AA passes).

Color values

HEX#31C778
RGBrgb(49, 199, 120)
HSLhsl(148, 60%, 49%)
HSVhsv(148, 75%, 78%)
CMYKcmyk(75.4%, 0%, 39.7%, 22%)
CIE-LABlab(71.45, -56.27, 28.78)
CIE-LCHlch(71.45, 63.20, 152.91°)
OKLaboklab(73.47% -0.1517 0.0717)
OKLCHoklch(73.47% 0.168 154.7)
XYZxyz(25.0778, 42.8529, 24.7154)
Luminance0.4286 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31C778 #C73180
analogous
#35C731 #31C778 #31C7C3
triadic
#31C778 #7831C7 #C77831
tetradic
#31C778 #3135C7 #C73180 #C7C331
square
#31C778 #3135C7 #C73180 #C7C331
split-complementary
#31C778 #C331C7 #C73135
monochromatic
#19653D #25965A #31C778 #5ED797 #8FE3B7

Accessibility & contrast

On white

2.19
#31C778 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.57
#31C778 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #31C778
9.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31C778#FFFFFF#000000##000000
##31C7781.002.199.579.57
#FFFFFF2.191.0021.0021.00
#0000009.5721.001.001.00
##0000009.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#C6B773
Deuteranopia (green-blind)
#B5AA7D
Tritanopia (blue-blind)
#00C5B3
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #31c778;
/* rgb */ color: rgb(49, 199, 120);
/* oklch */ color: oklch(73.5% 0.168 154.7);
Tailwind
colors: {
  custom: {
    50: '#7fd99f',
    500: '#31c778',
    950: '#000000',
  },
}
SCSS
$custom: #31c778;
$custom-light: #7fd99f;
$custom-dark: #000000;
JSON
{
  "hex": "#31c778",
  "rgb": {
    "r": 49,
    "g": 199,
    "b": 120
  },
  "hsl": {
    "h": 148.4,
    "s": 60.484,
    "l": 48.627
  },
  "oklch": {
    "l": 0.73474,
    "c": 0.16778,
    "h": 154.7
  },
  "luminance": 0.42856
}

Semantic roles & 50–950 ramp

primary
#31C778
secondary
#CE86AC
accent
#4498E4
background
#F8FDF9
surface
#F0FBF2
border
#CBD4CC
text
#0C150E
muted
#7D837E

Preview Lab

Preview with #31C778

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

Preview Lab → · Contrast checker → · Palette generator →

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