#31A245#31A245

#31A245 is a light, vivid green. Relative luminance 0.269; OKLCH L 62.9% C 0.166 H 146.2°. Best body text is #000000 at 6.38:1 contrast (WCAG AA passes).

Color values

HEX#31A245
RGBrgb(49, 162, 69)
HSLhsl(131, 54%, 41%)
HSVhsv(131, 70%, 64%)
CMYKcmyk(69.8%, 0%, 57.4%, 36.5%)
CIE-LABlab(58.90, -51.10, 38.84)
CIE-LCHlch(58.90, 64.18, 142.76°)
OKLaboklab(62.86% -0.1379 0.0924)
OKLCHoklch(62.86% 0.166 146.2)
XYZxyz(15.2601, 26.9216, 10.0212)
Luminance0.2692 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31A245 #A2318E
analogous
#56A231 #31A245 #31A27E
triadic
#31A245 #4531A2 #A24531
tetradic
#31A245 #3156A2 #A2318E #A27E31
square
#31A245 #3156A2 #A2318E #A27E31
split-complementary
#31A245 #7E31A2 #A23156
monochromatic
#15441D #237331 #31A245 #48C85F #77D688

Accessibility & contrast

On white

3.29
#31A245 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.38
#31A245 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #31A245
6.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31A245#FFFFFF#000000##000000
##31A2451.003.296.386.38
#FFFFFF3.291.0021.0021.00
#0000006.3821.001.001.00
##0000006.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#A4933C
Deuteranopia (green-blind)
#978A4C
Tritanopia (blue-blind)
#019E8D
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #31a245;
/* rgb */ color: rgb(49, 162, 69);
/* oklch */ color: oklch(62.9% 0.166 146.2);
Tailwind
colors: {
  custom: {
    50: '#79bf7b',
    500: '#31a245',
    950: '#000000',
  },
}
SCSS
$custom: #31a245;
$custom-light: #79bf7b;
$custom-dark: #000000;
JSON
{
  "hex": "#31a245",
  "rgb": {
    "r": 49,
    "g": 162,
    "b": 69
  },
  "hsl": {
    "h": 130.619,
    "s": 53.555,
    "l": 41.373
  },
  "oklch": {
    "l": 0.62864,
    "c": 0.16596,
    "h": 146.2
  },
  "luminance": 0.26923
}

Semantic roles & 50–950 ramp

primary
#31A245
secondary
#BE71B0
accent
#4BC3DD
background
#F7FBF7
surface
#EEF7EE
border
#C9D0C9
text
#0A1209
muted
#7C817B

Preview Lab

Preview with #31A245

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

Preview Lab → · Contrast checker → · Palette generator →

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