#31A22C#31A22C

#31A22C is a light, vivid green. Relative luminance 0.267; OKLCH L 62.6% C 0.185 H 142.5°. Best body text is #000000 at 6.33:1 contrast (WCAG AA passes).

Color values

HEX#31A22C
RGBrgb(49, 162, 44)
HSLhsl(117, 57%, 40%)
HSVhsv(117, 73%, 64%)
CMYKcmyk(69.8%, 0%, 72.8%, 36.5%)
CIE-LABlab(58.67, -53.83, 49.55)
CIE-LCHlch(58.67, 73.17, 137.37°)
OKLaboklab(62.6% -0.1464 0.1125)
OKLCHoklch(62.6% 0.185 142.5)
XYZxyz(14.6407, 26.6739, 6.7594)
Luminance0.2667 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31A22C #9D2CA2
analogous
#6CA22C #31A22C #2CA262
triadic
#31A22C #2C31A2 #A22C31
tetradic
#31A22C #2C6CA2 #9D2CA2 #A2622C
square
#31A22C #2C6CA2 #9D2CA2 #A2622C
split-complementary
#31A22C #622CA2 #A22C6C
monochromatic
#144212 #22721F #31A22C #46CB40 #75D870

Accessibility & contrast

On white

3.31
#31A22C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.33
#31A22C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #31A22C
6.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31A22C#FFFFFF#000000##000000
##31A22C1.003.316.336.33
#FFFFFF3.311.0021.0021.00
#0000006.3321.001.001.00
##0000006.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#A69318
Deuteranopia (green-blind)
#998A38
Tritanopia (blue-blind)
#139D8B
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #31a22c;
/* rgb */ color: rgb(49, 162, 44);
/* oklch */ color: oklch(62.6% 0.185 142.5);
Tailwind
colors: {
  custom: {
    50: '#7abf6c',
    500: '#31a22c',
    950: '#000000',
  },
}
SCSS
$custom: #31a22c;
$custom-light: #7abf6c;
$custom-dark: #000000;
JSON
{
  "hex": "#31a22c",
  "rgb": {
    "r": 49,
    "g": 162,
    "b": 44
  },
  "hsl": {
    "h": 117.458,
    "s": 57.282,
    "l": 40.392
  },
  "oklch": {
    "l": 0.62599,
    "c": 0.18466,
    "h": 142.5
  },
  "luminance": 0.26675
}

Semantic roles & 50–950 ramp

primary
#31A22C
secondary
#BC6ABF
accent
#47E1DA
background
#F8FBF6
surface
#EFF7EC
border
#CAD0C7
text
#0A1207
muted
#7C817A

Preview Lab

Preview with #31A22C

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

Preview Lab → · Contrast checker → · Palette generator →

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