#31B951#31B951

#31B951 is a light, vivid green. Relative luminance 0.359; OKLCH L 69.2% C 0.185 H 147.1°. Best body text is #000000 at 8.19:1 contrast (WCAG AA passes).

Color values

HEX#31B951
RGBrgb(49, 185, 81)
HSLhsl(134, 58%, 46%)
HSVhsv(134, 74%, 73%)
CMYKcmyk(73.5%, 0%, 56.2%, 27.5%)
CIE-LABlab(66.48, -57.61, 42.08)
CIE-LCHlch(66.48, 71.34, 143.86°)
OKLaboklab(69.18% -0.1551 0.1003)
OKLCHoklch(69.18% 0.185 147.1)
XYZxyz(20.0993, 35.9427, 13.6613)
Luminance0.3594 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31B951 #B93199
analogous
#55B931 #31B951 #31B995
triadic
#31B951 #5131B9 #B95131
tetradic
#31B951 #3155B9 #B93199 #B99531
square
#31B951 #3155B9 #B93199 #B99531
split-complementary
#31B951 #9531B9 #B93155
monochromatic
#175827 #24893C #31B951 #55D273 #86DF9B

Accessibility & contrast

On white

2.56
#31B951 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.19
#31B951 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #31B951
8.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31B951#FFFFFF#000000##000000
##31B9511.002.568.198.19
#FFFFFF2.561.0021.0021.00
#0000008.1921.001.001.00
##0000008.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#BBA847
Deuteranopia (green-blind)
#AC9D59
Tritanopia (blue-blind)
#00B5A2
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #31b951;
/* rgb */ color: rgb(49, 185, 81);
/* oklch */ color: oklch(69.2% 0.185 147.1);
Tailwind
colors: {
  custom: {
    50: '#7dcf85',
    500: '#31b951',
    950: '#000000',
  },
}
SCSS
$custom: #31b951;
$custom-light: #7dcf85;
$custom-dark: #000000;
JSON
{
  "hex": "#31b951",
  "rgb": {
    "r": 49,
    "g": 185,
    "b": 81
  },
  "hsl": {
    "h": 134.118,
    "s": 58.12,
    "l": 45.882
  },
  "oklch": {
    "l": 0.69178,
    "c": 0.18474,
    "h": 147.1
  },
  "luminance": 0.35945
}

Semantic roles & 50–950 ramp

primary
#31B951
secondary
#C87DB7
accent
#46BDE1
background
#F8FCF8
surface
#EFF9EF
border
#CAD2CA
text
#0B140B
muted
#7C827C

Preview Lab

Preview with #31B951

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

Preview Lab → · Contrast checker → · Palette generator →

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