#31B271#31B271

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

Color values

HEX#31B271
RGBrgb(49, 178, 113)
HSLhsl(150, 57%, 45%)
HSVhsv(150, 72%, 70%)
CMYKcmyk(72.5%, 0%, 36.5%, 30.2%)
CIE-LABlab(64.71, -49.68, 23.50)
CIE-LCHlch(64.71, 54.95, 154.69°)
OKLaboklab(67.87% -0.1344 0.059)
OKLCHoklch(67.87% 0.147 156.3)
XYZxyz(20.1657, 33.6837, 21.0584)
Luminance0.3369 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31B271 #B23172
analogous
#32B231 #31B271 #31B2B1
triadic
#31B271 #7131B2 #B27131
tetradic
#31B271 #3132B2 #B23172 #B2B131
square
#31B271 #3132B2 #B23172 #B2B131
split-complementary
#31B271 #B131B2 #B23132
monochromatic
#175234 #248253 #31B271 #51CF90 #81DCAE

Accessibility & contrast

On white

2.71
#31B271 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.74
#31B271 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #31B271
7.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31B271#FFFFFF#000000##000000
##31B2711.002.717.747.74
#FFFFFF2.711.0021.0021.00
#0000007.7421.001.001.00
##0000007.7421.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #31b271;
/* rgb */ color: rgb(49, 178, 113);
/* oklch */ color: oklch(67.9% 0.147 156.3);
Tailwind
colors: {
  custom: {
    50: '#7bca9a',
    500: '#31b271',
    950: '#000000',
  },
}
SCSS
$custom: #31b271;
$custom-light: #7bca9a;
$custom-dark: #000000;
JSON
{
  "hex": "#31b271",
  "rgb": {
    "r": 49,
    "g": 178,
    "b": 113
  },
  "hsl": {
    "h": 149.767,
    "s": 56.828,
    "l": 44.51
  },
  "oklch": {
    "l": 0.67873,
    "c": 0.14674,
    "h": 156.3
  },
  "luminance": 0.33686
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #31B271

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

Preview Lab → · Contrast checker → · Palette generator →

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