#31A021#31A021

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

Color values

HEX#31A021
RGBrgb(49, 160, 33)
HSLhsl(112, 66%, 38%)
HSVhsv(112, 79%, 63%)
CMYKcmyk(69.4%, 0%, 79.4%, 37.3%)
CIE-LABlab(57.94, -53.97, 52.70)
CIE-LCHlch(57.94, 75.43, 135.68°)
OKLaboklab(61.98% -0.1473 0.1176)
OKLCHoklch(61.98% 0.189 141.4)
XYZxyz(14.1112, 25.9029, 5.6946)
Luminance0.2590 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31A021 #9021A0
analogous
#70A021 #31A021 #21A050
triadic
#31A021 #2131A0 #A02131
tetradic
#31A021 #2170A0 #9021A0 #A05021
square
#31A021 #2170A0 #9021A0 #A05021
split-complementary
#31A021 #5021A0 #A02170
monochromatic
#123B0C #216D17 #31A021 #41D32B #6EDE5E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##31A021#FFFFFF#000000##000000
##31A0211.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)
#978830
Tritanopia (blue-blind)
#189B88
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #31a021;
/* rgb */ color: rgb(49, 160, 33);
/* oklch */ color: oklch(62.0% 0.189 141.4);
Tailwind
colors: {
  custom: {
    50: '#7abd67',
    500: '#31a021',
    950: '#000000',
  },
}
SCSS
$custom: #31a021;
$custom-light: #7abd67;
$custom-dark: #000000;
JSON
{
  "hex": "#31a021",
  "rgb": {
    "r": 49,
    "g": 160,
    "b": 33
  },
  "hsl": {
    "h": 112.441,
    "s": 65.803,
    "l": 37.843
  },
  "oklch": {
    "l": 0.61975,
    "c": 0.18853,
    "h": 141.4
  },
  "luminance": 0.25904
}

Semantic roles & 50–950 ramp

primary
#31A021
secondary
#B55BC2
accent
#3FE9D3
background
#F8FBF6
surface
#EFF7EB
border
#CAD0C6
text
#0A1206
muted
#7C817A

Preview Lab

Preview with #31A021

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

Preview Lab → · Contrast checker → · Palette generator →

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