#31A22B#31A22B

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

Color values

HEX#31A22B
RGBrgb(49, 162, 43)
HSLhsl(117, 58%, 40%)
HSVhsv(117, 73%, 64%)
CMYKcmyk(69.8%, 0%, 73.5%, 36.5%)
CIE-LABlab(58.66, -53.92, 49.92)
CIE-LCHlch(58.66, 73.48, 137.20°)
OKLaboklab(62.59% -0.1467 0.1132)
OKLCHoklch(62.59% 0.185 142.3)
XYZxyz(14.6222, 26.6665, 6.6616)
Luminance0.2667 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31A22B #9C2BA2
analogous
#6CA22B #31A22B #2BA261
triadic
#31A22B #2B31A2 #A22B31
tetradic
#31A22B #2B6CA2 #9C2BA2 #A2612B
square
#31A22B #2B6CA2 #9C2BA2 #A2612B
split-complementary
#31A22B #612BA2 #A22B6C
monochromatic
#144111 #22721E #31A22B #45CC3E #74D96F

Accessibility & contrast

On white

3.32
#31A22B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##31A22B#FFFFFF#000000##000000
##31A22B1.003.326.336.33
#FFFFFF3.321.0021.0021.00
#0000006.3321.001.001.00
##0000006.3321.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #31a22b;
/* rgb */ color: rgb(49, 162, 43);
/* oklch */ color: oklch(62.6% 0.185 142.3);
Tailwind
colors: {
  custom: {
    50: '#7abf6c',
    500: '#31a22b',
    950: '#000000',
  },
}
SCSS
$custom: #31a22b;
$custom-light: #7abf6c;
$custom-dark: #000000;
JSON
{
  "hex": "#31a22b",
  "rgb": {
    "r": 49,
    "g": 162,
    "b": 43
  },
  "hsl": {
    "h": 116.975,
    "s": 58.049,
    "l": 40.196
  },
  "oklch": {
    "l": 0.62591,
    "c": 0.18528,
    "h": 142.3
  },
  "luminance": 0.26668
}

Semantic roles & 50–950 ramp

primary
#31A22B
secondary
#BB69C0
accent
#47E1D9
background
#F8FBF6
surface
#EFF7EC
border
#CAD0C7
text
#0A1207
muted
#7C817A

Preview Lab

Preview with #31A22B

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

Preview Lab → · Contrast checker → · Palette generator →

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