#31A020#31A020

#31A020 is a mid, vivid green. Relative luminance 0.259; OKLCH L 62.0% C 0.189 H 141.3°. Best body text is #000000 at 6.18:1 contrast (WCAG AA passes).

Color values

HEX#31A020
RGBrgb(49, 160, 32)
HSLhsl(112, 67%, 38%)
HSVhsv(112, 80%, 63%)
CMYKcmyk(69.4%, 0%, 80%, 37.3%)
CIE-LABlab(57.94, -54.04, 53.01)
CIE-LCHlch(57.94, 75.69, 135.55°)
OKLaboklab(61.97% -0.1476 0.1181)
OKLCHoklch(61.97% 0.189 141.3)
XYZxyz(14.0974, 25.8974, 5.6220)
Luminance0.2590 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31A020 #8F20A0
analogous
#71A020 #31A020 #20A04F
triadic
#31A020 #2031A0 #A02031
tetradic
#31A020 #2071A0 #8F20A0 #A04F20
square
#31A020 #2071A0 #8F20A0 #A04F20
split-complementary
#31A020 #4F20A0 #A02071
monochromatic
#123A0C #216D16 #31A020 #41D32A #6DDE5C

Accessibility & contrast

On white

3.40
#31A020 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.18
#31A020 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #31A020
6.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31A020#FFFFFF#000000##000000
##31A0201.003.406.186.18
#FFFFFF3.401.0021.0021.00
#0000006.1821.001.001.00
##0000006.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#A49100
Deuteranopia (green-blind)
#97882F
Tritanopia (blue-blind)
#189B88
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #31a020;
/* rgb */ color: rgb(49, 160, 32);
/* oklch */ color: oklch(62.0% 0.189 141.3);
Tailwind
colors: {
  custom: {
    50: '#7abd66',
    500: '#31a020',
    950: '#000000',
  },
}
SCSS
$custom: #31a020;
$custom-light: #7abd66;
$custom-dark: #000000;
JSON
{
  "hex": "#31a020",
  "rgb": {
    "r": 49,
    "g": 160,
    "b": 32
  },
  "hsl": {
    "h": 112.031,
    "s": 66.667,
    "l": 37.647
  },
  "oklch": {
    "l": 0.61969,
    "c": 0.189,
    "h": 141.3
  },
  "luminance": 0.25899
}

Semantic roles & 50–950 ramp

primary
#31A020
secondary
#B559C3
accent
#3EEAD3
background
#F8FBF6
surface
#EFF7EB
border
#CAD0C6
text
#0B1206
muted
#7C817A

Preview Lab

Preview with #31A020

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

Preview Lab → · Contrast checker → · Palette generator →

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