#31B757#31B757

#31B757 is a light, vivid green. Relative luminance 0.352; OKLCH L 68.7% C 0.177 H 148.4°. Best body text is #000000 at 8.04:1 contrast (WCAG AA passes).

Color values

HEX#31B757
RGBrgb(49, 183, 87)
HSLhsl(137, 58%, 45%)
HSVhsv(137, 73%, 72%)
CMYKcmyk(73.2%, 0%, 52.5%, 28.2%)
CIE-LABlab(65.91, -56.06, 38.48)
CIE-LCHlch(65.91, 68.00, 145.53°)
OKLaboklab(68.73% -0.1508 0.0928)
OKLCHoklch(68.73% 0.177 148.4)
XYZxyz(19.9189, 35.2058, 14.7606)
Luminance0.3521 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31B757 #B73191
analogous
#4EB731 #31B757 #31B79A
triadic
#31B757 #5731B7 #B75731
tetradic
#31B757 #314EB7 #B73191 #B79A31
square
#31B757 #314EB7 #B73191 #B79A31
split-complementary
#31B757 #9A31B7 #B7314E
monochromatic
#175629 #248740 #31B757 #54D177 #84DE9E

Accessibility & contrast

On white

2.61
#31B757 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.04
#31B757 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #31B757
8.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31B757#FFFFFF#000000##000000
##31B7571.002.618.048.04
#FFFFFF2.611.0021.0021.00
#0000008.0421.001.001.00
##0000008.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#B9A74F
Deuteranopia (green-blind)
#A99C5E
Tritanopia (blue-blind)
#00B3A1
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #31b757;
/* rgb */ color: rgb(49, 183, 87);
/* oklch */ color: oklch(68.7% 0.177 148.4);
Tailwind
colors: {
  custom: {
    50: '#7dce88',
    500: '#31b757',
    950: '#000000',
  },
}
SCSS
$custom: #31b757;
$custom-light: #7dce88;
$custom-dark: #000000;
JSON
{
  "hex": "#31b757",
  "rgb": {
    "r": 49,
    "g": 183,
    "b": 87
  },
  "hsl": {
    "h": 137.015,
    "s": 57.759,
    "l": 45.49
  },
  "oklch": {
    "l": 0.68732,
    "c": 0.17707,
    "h": 148.4
  },
  "luminance": 0.35208
}

Semantic roles & 50–950 ramp

primary
#31B757
secondary
#C87CB2
accent
#47B5E1
background
#F8FCF8
surface
#EFF9F0
border
#CAD2CB
text
#0B140B
muted
#7C827C

Preview Lab

Preview with #31B757

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

Preview Lab → · Contrast checker → · Palette generator →

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