#31B562#31B562

#31B562 is a light, vivid green. Relative luminance 0.346; OKLCH L 68.4% C 0.165 H 151.2°. Best body text is #000000 at 7.92:1 contrast (WCAG AA passes).

Color values

HEX#31B562
RGBrgb(49, 181, 98)
HSLhsl(142, 57%, 45%)
HSVhsv(142, 73%, 71%)
CMYKcmyk(72.9%, 0%, 45.9%, 29%)
CIE-LABlab(65.42, -53.59, 32.32)
CIE-LCHlch(65.42, 62.58, 148.91°)
OKLaboklab(68.38% -0.1442 0.0793)
OKLCHoklch(68.38% 0.165 151.2)
XYZxyz(19.9934, 34.5803, 17.1739)
Luminance0.3458 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31B562 #B53184
analogous
#42B531 #31B562 #31B5A4
triadic
#31B562 #6231B5 #B56231
tetradic
#31B562 #3142B5 #B53184 #B5A431
square
#31B562 #3142B5 #B53184 #B5A431
split-complementary
#31B562 #A431B5 #B53142
monochromatic
#17552E #248548 #31B562 #53D081 #83DDA5

Accessibility & contrast

On white

2.65
#31B562 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.92
#31B562 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #31B562
7.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31B562#FFFFFF#000000##000000
##31B5621.002.657.927.92
#FFFFFF2.651.0021.0021.00
#0000007.9221.001.001.00
##0000007.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#B6A65C
Deuteranopia (green-blind)
#A69A68
Tritanopia (blue-blind)
#00B2A1
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #31b562;
/* rgb */ color: rgb(49, 181, 98);
/* oklch */ color: oklch(68.4% 0.165 151.2);
Tailwind
colors: {
  custom: {
    50: '#7ccc90',
    500: '#31b562',
    950: '#000000',
  },
}
SCSS
$custom: #31b562;
$custom-light: #7ccc90;
$custom-dark: #000000;
JSON
{
  "hex": "#31b562",
  "rgb": {
    "r": 49,
    "g": 181,
    "b": 98
  },
  "hsl": {
    "h": 142.273,
    "s": 57.391,
    "l": 45.098
  },
  "oklch": {
    "l": 0.68378,
    "c": 0.16458,
    "h": 151.2
  },
  "luminance": 0.34583
}

Semantic roles & 50–950 ramp

primary
#31B562
secondary
#C77BAB
accent
#47A8E1
background
#F8FCF8
surface
#EFF9F0
border
#CAD2CB
text
#0B130C
muted
#7C827D

Preview Lab

Preview with #31B562

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

Preview Lab → · Contrast checker → · Palette generator →

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