#31B138#31B138

#31B138 is a light, vivid green. Relative luminance 0.324; OKLCH L 66.8% C 0.194 H 143.7°. Best body text is #000000 at 7.48:1 contrast (WCAG AA passes).

Color values

HEX#31B138
RGBrgb(49, 177, 56)
HSLhsl(123, 57%, 44%)
HSVhsv(123, 72%, 69%)
CMYKcmyk(72.3%, 0%, 68.4%, 30.6%)
CIE-LABlab(63.66, -57.81, 50.03)
CIE-LCHlch(63.66, 76.45, 139.13°)
OKLaboklab(66.76% -0.1566 0.115)
OKLCHoklch(66.76% 0.194 143.7)
XYZxyz(17.7014, 32.3808, 9.0578)
Luminance0.3238 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31B138 #B131AA
analogous
#6AB131 #31B138 #31B178
triadic
#31B138 #3831B1 #B13831
tetradic
#31B138 #316AB1 #B131AA #B17831
square
#31B138 #316AB1 #B131AA #B17831
split-complementary
#31B138 #7831B1 #B1316A
monochromatic
#16511A #248129 #31B138 #51CF57 #80DC85

Accessibility & contrast

On white

2.81
#31B138 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.48
#31B138 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #31B138
7.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31B138#FFFFFF#000000##000000
##31B1381.002.817.487.48
#FFFFFF2.811.0021.0021.00
#0000007.4821.001.001.00
##0000007.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#B5A027
Deuteranopia (green-blind)
#A69643
Tritanopia (blue-blind)
#00AC98
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #31b138;
/* rgb */ color: rgb(49, 177, 56);
/* oklch */ color: oklch(66.8% 0.194 143.7);
Tailwind
colors: {
  custom: {
    50: '#7dc975',
    500: '#31b138',
    950: '#000000',
  },
}
SCSS
$custom: #31b138;
$custom-light: #7dc975;
$custom-dark: #000000;
JSON
{
  "hex": "#31b138",
  "rgb": {
    "r": 49,
    "g": 177,
    "b": 56
  },
  "hsl": {
    "h": 123.281,
    "s": 56.637,
    "l": 44.314
  },
  "oklch": {
    "l": 0.66762,
    "c": 0.19432,
    "h": 143.7
  },
  "luminance": 0.32383
}

Semantic roles & 50–950 ramp

primary
#31B138
secondary
#C579C1
accent
#48D8E0
background
#F8FCF7
surface
#EFF8ED
border
#CAD1C8
text
#0B1309
muted
#7C827B

Preview Lab

Preview with #31B138

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

Preview Lab → · Contrast checker → · Palette generator →

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