#31A645#31A645

#31A645 is a light, vivid green. Relative luminance 0.284; OKLCH L 63.9% C 0.171 H 146.0°. Best body text is #000000 at 6.67:1 contrast (WCAG AA passes).

Color values

HEX#31A645
RGBrgb(49, 166, 69)
HSLhsl(130, 54%, 42%)
HSVhsv(130, 70%, 65%)
CMYKcmyk(70.5%, 0%, 58.4%, 34.9%)
CIE-LABlab(60.21, -52.54, 40.38)
CIE-LCHlch(60.21, 66.26, 142.45°)
OKLaboklab(63.94% -0.1418 0.0957)
OKLCHoklch(63.94% 0.171 146)
XYZxyz(15.9759, 28.3533, 10.2599)
Luminance0.2836 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31A645 #A63192
analogous
#58A631 #31A645 #31A67F
triadic
#31A645 #4531A6 #A64531
tetradic
#31A645 #3158A6 #A63192 #A67F31
square
#31A645 #3158A6 #A63192 #A67F31
split-complementary
#31A645 #7F31A6 #A63158
monochromatic
#15471E #237731 #31A645 #4ACA60 #7AD88A

Accessibility & contrast

On white

3.15
#31A645 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.67
#31A645 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #31A645
6.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31A645#FFFFFF#000000##000000
##31A6451.003.156.676.67
#FFFFFF3.151.0021.0021.00
#0000006.6721.001.001.00
##0000006.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#A8973B
Deuteranopia (green-blind)
#9B8D4D
Tritanopia (blue-blind)
#00A291
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #31a645;
/* rgb */ color: rgb(49, 166, 69);
/* oklch */ color: oklch(63.9% 0.171 146.0);
Tailwind
colors: {
  custom: {
    50: '#79c17c',
    500: '#31a645',
    950: '#000000',
  },
}
SCSS
$custom: #31a645;
$custom-light: #79c17c;
$custom-dark: #000000;
JSON
{
  "hex": "#31a645",
  "rgb": {
    "r": 49,
    "g": 166,
    "b": 69
  },
  "hsl": {
    "h": 130.256,
    "s": 54.419,
    "l": 42.157
  },
  "oklch": {
    "l": 0.63944,
    "c": 0.17106,
    "h": 146
  },
  "luminance": 0.28355
}

Semantic roles & 50–950 ramp

primary
#31A645
secondary
#C073B3
accent
#4AC5DE
background
#F8FCF7
surface
#EFF8EE
border
#CAD1C9
text
#0A120A
muted
#7C817C

Preview Lab

Preview with #31A645

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

Preview Lab → · Contrast checker → · Palette generator →

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