#31B140#31B140

#31B140 is a light, vivid green. Relative luminance 0.325; OKLCH L 66.8% C 0.189 H 144.7°. Best body text is #000000 at 7.49:1 contrast (WCAG AA passes).

Color values

HEX#31B140
RGBrgb(49, 177, 64)
HSLhsl(127, 57%, 44%)
HSVhsv(127, 72%, 69%)
CMYKcmyk(72.3%, 0%, 63.8%, 30.6%)
CIE-LABlab(63.73, -56.98, 46.71)
CIE-LCHlch(63.73, 73.68, 140.66°)
OKLaboklab(66.84% -0.154 0.1089)
OKLCHoklch(66.84% 0.189 144.7)
XYZxyz(17.9130, 32.4654, 10.1719)
Luminance0.3247 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31B140 #B131A2
analogous
#62B131 #31B140 #31B180
triadic
#31B140 #4031B1 #B14031
tetradic
#31B140 #3162B1 #B131A2 #B18031
square
#31B140 #3162B1 #B131A2 #B18031
split-complementary
#31B140 #8031B1 #B13162
monochromatic
#16511D #24812F #31B140 #51CF5F #80DC8B

Accessibility & contrast

On white

2.80
#31B140 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.49
#31B140 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #31B140
7.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31B140#FFFFFF#000000##000000
##31B1401.002.807.497.49
#FFFFFF2.801.0021.0021.00
#0000007.4921.001.001.00
##0000007.4921.001.001.00

Color blindness preview

Protanopia (red-blind)
#B4A133
Deuteranopia (green-blind)
#A5964A
Tritanopia (blue-blind)
#00AC99
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #31b140;
/* rgb */ color: rgb(49, 177, 64);
/* oklch */ color: oklch(66.8% 0.189 144.7);
Tailwind
colors: {
  custom: {
    50: '#7cc979',
    500: '#31b140',
    950: '#000000',
  },
}
SCSS
$custom: #31b140;
$custom-light: #7cc979;
$custom-dark: #000000;
JSON
{
  "hex": "#31b140",
  "rgb": {
    "r": 49,
    "g": 177,
    "b": 64
  },
  "hsl": {
    "h": 127.031,
    "s": 56.637,
    "l": 44.314
  },
  "oklch": {
    "l": 0.66842,
    "c": 0.18859,
    "h": 144.7
  },
  "luminance": 0.32467
}

Semantic roles & 50–950 ramp

primary
#31B140
secondary
#C579BC
accent
#48CEE0
background
#F8FCF7
surface
#EFF8EE
border
#CAD1C9
text
#0B1309
muted
#7C827B

Preview Lab

Preview with #31B140

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

Preview Lab → · Contrast checker → · Palette generator →

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