#31B542#31B542

#31B542 is a light, vivid green. Relative luminance 0.341; OKLCH L 67.9% C 0.192 H 144.9°. Best body text is #000000 at 7.82:1 contrast (WCAG AA passes).

Color values

HEX#31B542
RGBrgb(49, 181, 66)
HSLhsl(128, 57%, 45%)
HSVhsv(128, 73%, 71%)
CMYKcmyk(72.9%, 0%, 63.5%, 29%)
CIE-LABlab(65.04, -58.11, 47.30)
CIE-LCHlch(65.04, 74.92, 140.86°)
OKLaboklab(67.93% -0.157 0.1103)
OKLCHoklch(67.93% 0.192 144.9)
XYZxyz(18.7726, 34.0919, 10.7443)
Luminance0.3409 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31B542 #B531A4
analogous
#62B531 #31B542 #31B584
triadic
#31B542 #4231B5 #B54231
tetradic
#31B542 #3162B5 #B531A4 #B58431
square
#31B542 #3162B5 #B531A4 #B58431
split-complementary
#31B542 #8431B5 #B53162
monochromatic
#17551F #248530 #31B542 #53D063 #83DD8F

Accessibility & contrast

On white

2.69
#31B542 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.82
#31B542 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #31B542
7.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31B542#FFFFFF#000000##000000
##31B5421.002.697.827.82
#FFFFFF2.691.0021.0021.00
#0000007.8221.001.001.00
##0000007.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#B8A434
Deuteranopia (green-blind)
#A99A4C
Tritanopia (blue-blind)
#00B09D
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #31b542;
/* rgb */ color: rgb(49, 181, 66);
/* oklch */ color: oklch(67.9% 0.192 144.9);
Tailwind
colors: {
  custom: {
    50: '#7dcc7b',
    500: '#31b542',
    950: '#000000',
  },
}
SCSS
$custom: #31b542;
$custom-light: #7dcc7b;
$custom-dark: #000000;
JSON
{
  "hex": "#31b542",
  "rgb": {
    "r": 49,
    "g": 181,
    "b": 66
  },
  "hsl": {
    "h": 127.727,
    "s": 57.391,
    "l": 45.098
  },
  "oklch": {
    "l": 0.67934,
    "c": 0.19187,
    "h": 144.9
  },
  "luminance": 0.34094
}

Semantic roles & 50–950 ramp

primary
#31B542
secondary
#C77BBD
accent
#47CDE1
background
#F8FCF7
surface
#EFF9EE
border
#CAD2C9
text
#0B130A
muted
#7C827C

Preview Lab

Preview with #31B542

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

Preview Lab → · Contrast checker → · Palette generator →

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