#31A42F#31A42F

#31A42F is a light, vivid green. Relative luminance 0.274; OKLCH L 63.2% C 0.185 H 142.8°. Best body text is #000000 at 6.48:1 contrast (WCAG AA passes).

Color values

HEX#31A42F
RGBrgb(49, 164, 47)
HSLhsl(119, 55%, 41%)
HSVhsv(119, 71%, 64%)
CMYKcmyk(70.1%, 0%, 71.3%, 35.7%)
CIE-LABlab(59.35, -54.26, 49.09)
CIE-LCHlch(59.35, 73.17, 137.86°)
OKLaboklab(63.17% -0.1474 0.112)
OKLCHoklch(63.17% 0.185 142.8)
XYZxyz(15.0543, 27.4075, 7.1856)
Luminance0.2741 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31A42F #A22FA4
analogous
#6CA42F #31A42F #2FA468
triadic
#31A42F #2F31A4 #A42F31
tetradic
#31A42F #2F6CA4 #A22FA4 #A4682F
square
#31A42F #2F6CA4 #A22FA4 #A4682F
split-complementary
#31A42F #682FA4 #A42F6C
monochromatic
#154514 #237421 #31A42F #48CA46 #77D876

Accessibility & contrast

On white

3.24
#31A42F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.48
#31A42F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #31A42F
6.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31A42F#FFFFFF#000000##000000
##31A42F1.003.246.486.48
#FFFFFF3.241.0021.0021.00
#0000006.4821.001.001.00
##0000006.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#A8941C
Deuteranopia (green-blind)
#9A8B3B
Tritanopia (blue-blind)
#109F8D
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #31a42f;
/* rgb */ color: rgb(49, 164, 47);
/* oklch */ color: oklch(63.2% 0.185 142.8);
Tailwind
colors: {
  custom: {
    50: '#7ac06e',
    500: '#31a42f',
    950: '#000000',
  },
}
SCSS
$custom: #31a42f;
$custom-light: #7ac06e;
$custom-dark: #000000;
JSON
{
  "hex": "#31a42f",
  "rgb": {
    "r": 49,
    "g": 164,
    "b": 47
  },
  "hsl": {
    "h": 118.974,
    "s": 55.45,
    "l": 41.373
  },
  "oklch": {
    "l": 0.63169,
    "c": 0.18511,
    "h": 142.8
  },
  "luminance": 0.27409
}

Semantic roles & 50–950 ramp

primary
#31A42F
secondary
#BE6FC0
accent
#49DFDC
background
#F8FBF6
surface
#EFF7EC
border
#CAD0C7
text
#0B1208
muted
#7C817B

Preview Lab

Preview with #31A42F

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

Preview Lab → · Contrast checker → · Palette generator →

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