#31A52C#31A52C

#31A52C is a light, vivid green. Relative luminance 0.277; OKLCH L 63.4% C 0.188 H 142.5°. Best body text is #000000 at 6.55:1 contrast (WCAG AA passes).

Color values

HEX#31A52C
RGBrgb(49, 165, 44)
HSLhsl(118, 58%, 41%)
HSVhsv(118, 73%, 65%)
CMYKcmyk(70.3%, 0%, 73.3%, 35.3%)
CIE-LABlab(59.66, -54.85, 50.56)
CIE-LCHlch(59.66, 74.60, 137.33°)
OKLaboklab(63.42% -0.1492 0.1147)
OKLCHoklch(63.42% 0.188 142.5)
XYZxyz(15.1755, 27.7434, 6.9376)
Luminance0.2774 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31A52C #A02CA5
analogous
#6DA52C #31A52C #2CA563
triadic
#31A52C #2C31A5 #A52C31
tetradic
#31A52C #2C6DA5 #A02CA5 #A5632C
square
#31A52C #2C6DA5 #A02CA5 #A5632C
split-complementary
#31A52C #632CA5 #A52C6D
monochromatic
#144412 #23751F #31A52C #47CD42 #76D972

Accessibility & contrast

On white

3.21
#31A52C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.55
#31A52C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #31A52C
6.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31A52C#FFFFFF#000000##000000
##31A52C1.003.216.556.55
#FFFFFF3.211.0021.0021.00
#0000006.5521.001.001.00
##0000006.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#A99516
Deuteranopia (green-blind)
#9B8C38
Tritanopia (blue-blind)
#10A08D
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #31a52c;
/* rgb */ color: rgb(49, 165, 44);
/* oklch */ color: oklch(63.4% 0.188 142.5);
Tailwind
colors: {
  custom: {
    50: '#7ac16d',
    500: '#31a52c',
    950: '#000000',
  },
}
SCSS
$custom: #31a52c;
$custom-light: #7ac16d;
$custom-dark: #000000;
JSON
{
  "hex": "#31a52c",
  "rgb": {
    "r": 49,
    "g": 165,
    "b": 44
  },
  "hsl": {
    "h": 117.521,
    "s": 57.895,
    "l": 40.98
  },
  "oklch": {
    "l": 0.63416,
    "c": 0.18815,
    "h": 142.5
  },
  "luminance": 0.27745
}

Semantic roles & 50–950 ramp

primary
#31A52C
secondary
#BD6CC1
accent
#47E1DB
background
#F8FCF6
surface
#EFF8EC
border
#CAD1C7
text
#0B1207
muted
#7C817A

Preview Lab

Preview with #31A52C

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

Preview Lab → · Contrast checker → · Palette generator →

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