#31B940#31B940

#31B940 is a light, vivid green. Relative luminance 0.357; OKLCH L 69.0% C 0.198 H 144.5°. Best body text is #000000 at 8.14:1 contrast (WCAG AA passes).

Color values

HEX#31B940
RGBrgb(49, 185, 64)
HSLhsl(127, 58%, 46%)
HSVhsv(127, 74%, 73%)
CMYKcmyk(73.5%, 0%, 65.4%, 27.5%)
CIE-LABlab(66.30, -59.66, 49.57)
CIE-LCHlch(66.30, 77.57, 140.28°)
OKLaboklab(68.98% -0.1613 0.1149)
OKLCHoklch(68.98% 0.198 144.5)
XYZxyz(19.5397, 35.7188, 10.7141)
Luminance0.3572 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31B940 #B931AA
analogous
#66B931 #31B940 #31B984
triadic
#31B940 #4031B9 #B94031
tetradic
#31B940 #3166B9 #B931AA #B98431
square
#31B940 #3166B9 #B931AA #B98431
split-complementary
#31B940 #8431B9 #B93166
monochromatic
#17581F #24892F #31B940 #55D263 #86DF8F

Accessibility & contrast

On white

2.58
#31B940 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.14
#31B940 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #31B940
8.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31B940#FFFFFF#000000##000000
##31B9401.002.588.148.14
#FFFFFF2.581.0021.0021.00
#0000008.1421.001.001.00
##0000008.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#BCA831
Deuteranopia (green-blind)
#AD9D4B
Tritanopia (blue-blind)
#00B4A0
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #31b940;
/* rgb */ color: rgb(49, 185, 64);
/* oklch */ color: oklch(69.0% 0.198 144.5);
Tailwind
colors: {
  custom: {
    50: '#7ecf7a',
    500: '#31b940',
    950: '#000000',
  },
}
SCSS
$custom: #31b940;
$custom-light: #7ecf7a;
$custom-dark: #000000;
JSON
{
  "hex": "#31b940",
  "rgb": {
    "r": 49,
    "g": 185,
    "b": 64
  },
  "hsl": {
    "h": 126.618,
    "s": 58.12,
    "l": 45.882
  },
  "oklch": {
    "l": 0.68981,
    "c": 0.19805,
    "h": 144.5
  },
  "luminance": 0.35721
}

Semantic roles & 50–950 ramp

primary
#31B940
secondary
#C87DC0
accent
#46D0E1
background
#F8FCF7
surface
#F0F9EE
border
#CBD2C9
text
#0B1409
muted
#7C827B

Preview Lab

Preview with #31B940

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

Preview Lab → · Contrast checker → · Palette generator →

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