#31A52F#31A52F

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

Color values

HEX#31A52F
RGBrgb(49, 165, 47)
HSLhsl(119, 56%, 42%)
HSVhsv(119, 72%, 65%)
CMYKcmyk(70.3%, 0%, 71.5%, 35.3%)
CIE-LABlab(59.68, -54.60, 49.43)
CIE-LCHlch(59.68, 73.65, 137.84°)
OKLaboklab(63.44% -0.1483 0.1127)
OKLCHoklch(63.44% 0.186 142.8)
XYZxyz(15.2339, 27.7668, 7.2455)
Luminance0.2777 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31A52F #A32FA5
analogous
#6CA52F #31A52F #2FA568
triadic
#31A52F #2F31A5 #A52F31
tetradic
#31A52F #2F6CA5 #A32FA5 #A5682F
square
#31A52F #2F6CA5 #A32FA5 #A5682F
split-complementary
#31A52F #682FA5 #A52F6C
monochromatic
#154614 #237521 #31A52F #49CB47 #78D876

Accessibility & contrast

On white

3.20
#31A52F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##31A52F#FFFFFF#000000##000000
##31A52F1.003.206.556.55
#FFFFFF3.201.0021.0021.00
#0000006.5521.001.001.00
##0000006.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#A9951C
Deuteranopia (green-blind)
#9B8C3B
Tritanopia (blue-blind)
#0FA08E
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #31a52f;
/* rgb */ color: rgb(49, 165, 47);
/* oklch */ color: oklch(63.4% 0.186 142.8);
Tailwind
colors: {
  custom: {
    50: '#7ac16e',
    500: '#31a52f',
    950: '#000000',
  },
}
SCSS
$custom: #31a52f;
$custom-light: #7ac16e;
$custom-dark: #000000;
JSON
{
  "hex": "#31a52f",
  "rgb": {
    "r": 49,
    "g": 165,
    "b": 47
  },
  "hsl": {
    "h": 118.983,
    "s": 55.66,
    "l": 41.569
  },
  "oklch": {
    "l": 0.6344,
    "c": 0.18628,
    "h": 142.8
  },
  "luminance": 0.27768
}

Semantic roles & 50–950 ramp

primary
#31A52F
secondary
#BF70C0
accent
#49DFDC
background
#F8FCF6
surface
#EFF8EC
border
#CAD1C7
text
#0B1208
muted
#7C817B

Preview Lab

Preview with #31A52F

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

Preview Lab → · Contrast checker → · Palette generator →

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