#31AB45#31AB45

#31AB45 is a light, vivid green. Relative luminance 0.302; OKLCH L 65.3% C 0.177 H 145.7°. Best body text is #000000 at 7.04:1 contrast (WCAG AA passes).

Color values

HEX#31AB45
RGBrgb(49, 171, 69)
HSLhsl(130, 55%, 43%)
HSVhsv(130, 71%, 67%)
CMYKcmyk(71.3%, 0%, 59.6%, 32.9%)
CIE-LABlab(61.83, -54.31, 42.28)
CIE-LCHlch(61.83, 68.83, 142.10°)
OKLaboklab(65.29% -0.1466 0.0998)
OKLCHoklch(65.29% 0.177 145.7)
XYZxyz(16.9025, 30.2066, 10.5687)
Luminance0.3021 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31AB45 #AB3197
analogous
#5AAB31 #31AB45 #31AB82
triadic
#31AB45 #4531AB #AB4531
tetradic
#31AB45 #315AAB #AB3197 #AB8231
square
#31AB45 #315AAB #AB3197 #AB8231
split-complementary
#31AB45 #8231AB #AB315A
monochromatic
#164C1F #237B32 #31AB45 #4DCC62 #7DDA8C

Accessibility & contrast

On white

2.98
#31AB45 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.04
#31AB45 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #31AB45
7.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31AB45#FFFFFF#000000##000000
##31AB451.002.987.047.04
#FFFFFF2.981.0021.0021.00
#0000007.0421.001.001.00
##0000007.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#AE9B3A
Deuteranopia (green-blind)
#9F924D
Tritanopia (blue-blind)
#00A795
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #31ab45;
/* rgb */ color: rgb(49, 171, 69);
/* oklch */ color: oklch(65.3% 0.177 145.7);
Tailwind
colors: {
  custom: {
    50: '#7bc57c',
    500: '#31ab45',
    950: '#000000',
  },
}
SCSS
$custom: #31ab45;
$custom-light: #7bc57c;
$custom-dark: #000000;
JSON
{
  "hex": "#31ab45",
  "rgb": {
    "r": 49,
    "g": 171,
    "b": 69
  },
  "hsl": {
    "h": 129.836,
    "s": 55.455,
    "l": 43.137
  },
  "oklch": {
    "l": 0.65289,
    "c": 0.17734,
    "h": 145.7
  },
  "luminance": 0.30208
}

Semantic roles & 50–950 ramp

primary
#31AB45
secondary
#C275B6
accent
#49C6DF
background
#F8FCF7
surface
#EFF8EE
border
#CAD1C9
text
#0B130A
muted
#7C827C

Preview Lab

Preview with #31AB45

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

Preview Lab → · Contrast checker → · Palette generator →

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