#31A545#31A545

#31A545 is a light, vivid green. Relative luminance 0.280; OKLCH L 63.7% C 0.170 H 146.0°. Best body text is #000000 at 6.60:1 contrast (WCAG AA passes).

Color values

HEX#31A545
RGBrgb(49, 165, 69)
HSLhsl(130, 54%, 42%)
HSVhsv(130, 70%, 65%)
CMYKcmyk(70.3%, 0%, 58.2%, 35.3%)
CIE-LABlab(59.88, -52.18, 40.00)
CIE-LCHlch(59.88, 65.75, 142.53°)
OKLaboklab(63.67% -0.1408 0.0949)
OKLCHoklch(63.67% 0.17 146)
XYZxyz(15.7948, 27.9912, 10.1995)
Luminance0.2799 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31A545 #A53191
analogous
#57A531 #31A545 #31A57F
triadic
#31A545 #4531A5 #A54531
tetradic
#31A545 #3157A5 #A53191 #A57F31
square
#31A545 #3157A5 #A53191 #A57F31
split-complementary
#31A545 #7F31A5 #A53157
monochromatic
#15471E #237631 #31A545 #4AC960 #79D789

Accessibility & contrast

On white

3.18
#31A545 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.60
#31A545 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #31A545
6.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31A545#FFFFFF#000000##000000
##31A5451.003.186.606.60
#FFFFFF3.181.0021.0021.00
#0000006.6021.001.001.00
##0000006.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#A7963B
Deuteranopia (green-blind)
#9A8D4D
Tritanopia (blue-blind)
#00A190
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #31a545;
/* rgb */ color: rgb(49, 165, 69);
/* oklch */ color: oklch(63.7% 0.170 146.0);
Tailwind
colors: {
  custom: {
    50: '#79c17b',
    500: '#31a545',
    950: '#000000',
  },
}
SCSS
$custom: #31a545;
$custom-light: #79c17b;
$custom-dark: #000000;
JSON
{
  "hex": "#31a545",
  "rgb": {
    "r": 49,
    "g": 165,
    "b": 69
  },
  "hsl": {
    "h": 130.345,
    "s": 54.206,
    "l": 41.961
  },
  "oklch": {
    "l": 0.63674,
    "c": 0.16979,
    "h": 146
  },
  "luminance": 0.27993
}

Semantic roles & 50–950 ramp

primary
#31A545
secondary
#C072B2
accent
#4AC4DE
background
#F7FCF7
surface
#EEF8EE
border
#C9D1C9
text
#0A1209
muted
#7C817B

Preview Lab

Preview with #31A545

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

Preview Lab → · Contrast checker → · Palette generator →

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