#31A157#31A157

#31A157 is a light, vivid green. Relative luminance 0.268; OKLCH L 62.9% C 0.148 H 150.7°. Best body text is #000000 at 6.37:1 contrast (WCAG AA passes).

Color values

HEX#31A157
RGBrgb(49, 161, 87)
HSLhsl(140, 53%, 41%)
HSVhsv(140, 70%, 63%)
CMYKcmyk(69.6%, 0%, 46%, 36.9%)
CIE-LABlab(58.82, -47.96, 29.60)
CIE-LCHlch(58.82, 56.36, 148.32°)
OKLaboklab(62.87% -0.1292 0.0727)
OKLCHoklch(62.87% 0.148 150.7)
XYZxyz(15.7305, 26.8291, 13.3645)
Luminance0.2683 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31A157 #A1317B
analogous
#43A131 #31A157 #31A18F
triadic
#31A157 #5731A1 #A15731
tetradic
#31A157 #3143A1 #A1317B #A18F31
square
#31A157 #3143A1 #A1317B #A18F31
split-complementary
#31A157 #8F31A1 #A13143
monochromatic
#144324 #23723E #31A157 #48C773 #77D697

Accessibility & contrast

On white

3.30
#31A157 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.37
#31A157 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #31A157
6.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31A157#FFFFFF#000000##000000
##31A1571.003.306.376.37
#FFFFFF3.301.0021.0021.00
#0000006.3721.001.001.00
##0000006.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#A29351
Deuteranopia (green-blind)
#948A5C
Tritanopia (blue-blind)
#009E8F
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #31a157;
/* rgb */ color: rgb(49, 161, 87);
/* oklch */ color: oklch(62.9% 0.148 150.7);
Tailwind
colors: {
  custom: {
    50: '#78be87',
    500: '#31a157',
    950: '#000000',
  },
}
SCSS
$custom: #31a157;
$custom-light: #78be87;
$custom-dark: #000000;
JSON
{
  "hex": "#31a157",
  "rgb": {
    "r": 49,
    "g": 161,
    "b": 87
  },
  "hsl": {
    "h": 140.357,
    "s": 53.333,
    "l": 41.176
  },
  "oklch": {
    "l": 0.62871,
    "c": 0.14826,
    "h": 150.7
  },
  "luminance": 0.26831
}

Semantic roles & 50–950 ramp

primary
#31A157
secondary
#BE70A3
accent
#4BABDD
background
#F7FBF8
surface
#EEF7EF
border
#C9D0CA
text
#0A120B
muted
#7C817C

Preview Lab

Preview with #31A157

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

Preview Lab → · Contrast checker → · Palette generator →

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