#31B270#31B270

#31B270 is a light, vivid green. Relative luminance 0.337; OKLCH L 67.9% C 0.148 H 156.0°. Best body text is #000000 at 7.73:1 contrast (WCAG AA passes).

Color values

HEX#31B270
RGBrgb(49, 178, 112)
HSLhsl(149, 57%, 45%)
HSVhsv(149, 72%, 70%)
CMYKcmyk(72.5%, 0%, 37.1%, 30.2%)
CIE-LABlab(64.69, -49.88, 24.01)
CIE-LCHlch(64.69, 55.35, 154.30°)
OKLaboklab(67.85% -0.1348 0.0602)
OKLCHoklch(67.85% 0.148 156)
XYZxyz(20.1097, 33.6613, 20.7635)
Luminance0.3366 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31B270 #B23173
analogous
#33B231 #31B270 #31B2B0
triadic
#31B270 #7031B2 #B27031
tetradic
#31B270 #3133B2 #B23173 #B2B031
square
#31B270 #3133B2 #B23173 #B2B031
split-complementary
#31B270 #B031B2 #B23133
monochromatic
#175234 #248252 #31B270 #51CF8F #81DCAE

Accessibility & contrast

On white

2.72
#31B270 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.73
#31B270 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #31B270
7.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31B270#FFFFFF#000000##000000
##31B2701.002.727.737.73
#FFFFFF2.721.0021.0021.00
#0000007.7321.001.001.00
##0000007.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#B1A46C
Deuteranopia (green-blind)
#A19874
Tritanopia (blue-blind)
#00B0A1
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #31b270;
/* rgb */ color: rgb(49, 178, 112);
/* oklch */ color: oklch(67.9% 0.148 156.0);
Tailwind
colors: {
  custom: {
    50: '#7bca99',
    500: '#31b270',
    950: '#000000',
  },
}
SCSS
$custom: #31b270;
$custom-light: #7bca99;
$custom-dark: #000000;
JSON
{
  "hex": "#31b270",
  "rgb": {
    "r": 49,
    "g": 178,
    "b": 112
  },
  "hsl": {
    "h": 149.302,
    "s": 56.828,
    "l": 44.51
  },
  "oklch": {
    "l": 0.67852,
    "c": 0.14766,
    "h": 156
  },
  "luminance": 0.33664
}

Semantic roles & 50–950 ramp

primary
#31B270
secondary
#C579A0
accent
#4896E0
background
#F8FCF9
surface
#EFF8F2
border
#CAD1CC
text
#0B130E
muted
#7C827E

Preview Lab

Preview with #31B270

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

Preview Lab → · Contrast checker → · Palette generator →

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