#31BA40#31BA40

#31BA40 is a light, vivid green. Relative luminance 0.361; OKLCH L 69.2% C 0.199 H 144.5°. Best body text is #000000 at 8.23:1 contrast (WCAG AA passes).

Color values

HEX#31BA40
RGBrgb(49, 186, 64)
HSLhsl(127, 58%, 46%)
HSVhsv(127, 74%, 73%)
CMYKcmyk(73.7%, 0%, 65.6%, 27.1%)
CIE-LABlab(66.63, -60.00, 49.92)
CIE-LCHlch(66.63, 78.05, 140.24°)
OKLaboklab(69.25% -0.1622 0.1157)
OKLCHoklch(69.25% 0.199 144.5)
XYZxyz(19.7496, 36.1387, 10.7841)
Luminance0.3614 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31BA40 #BA31AB
analogous
#66BA31 #31BA40 #31BA84
triadic
#31BA40 #4031BA #BA4031
tetradic
#31BA40 #3166BA #BA31AB #BA8431
square
#31BA40 #3166BA #BA31AB #BA8431
split-complementary
#31BA40 #8431BA #BA3166
monochromatic
#17591F #248A2F #31BA40 #56D263 #86DF90

Accessibility & contrast

On white

2.55
#31BA40 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.23
#31BA40 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #31BA40
8.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31BA40#FFFFFF#000000##000000
##31BA401.002.558.238.23
#FFFFFF2.551.0021.0021.00
#0000008.2321.001.001.00
##0000008.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#BDA931
Deuteranopia (green-blind)
#AE9E4B
Tritanopia (blue-blind)
#00B5A1
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #31ba40;
/* rgb */ color: rgb(49, 186, 64);
/* oklch */ color: oklch(69.2% 0.199 144.5);
Tailwind
colors: {
  custom: {
    50: '#7ed07a',
    500: '#31ba40',
    950: '#000000',
  },
}
SCSS
$custom: #31ba40;
$custom-light: #7ed07a;
$custom-dark: #000000;
JSON
{
  "hex": "#31ba40",
  "rgb": {
    "r": 49,
    "g": 186,
    "b": 64
  },
  "hsl": {
    "h": 126.569,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.69247,
    "c": 0.19921,
    "h": 144.5
  },
  "luminance": 0.36141
}

Semantic roles & 50–950 ramp

primary
#31BA40
secondary
#C97EC1
accent
#46D1E2
background
#F8FCF7
surface
#F0F9EE
border
#CBD2C9
text
#0B140A
muted
#7C827C

Preview Lab

Preview with #31BA40

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

Preview Lab → · Contrast checker → · Palette generator →

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