#31A62F#31A62F

#31A62F is a light, vivid green. Relative luminance 0.281; OKLCH L 63.7% C 0.187 H 142.8°. Best body text is #000000 at 6.63:1 contrast (WCAG AA passes).

Color values

HEX#31A62F
RGBrgb(49, 166, 47)
HSLhsl(119, 56%, 42%)
HSVhsv(119, 72%, 65%)
CMYKcmyk(70.5%, 0%, 71.7%, 34.9%)
CIE-LABlab(60.01, -54.94, 49.77)
CIE-LCHlch(60.01, 74.13, 137.82°)
OKLaboklab(63.71% -0.1493 0.1134)
OKLCHoklch(63.71% 0.187 142.8)
XYZxyz(15.4150, 28.1290, 7.3058)
Luminance0.2813 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31A62F #A42FA6
analogous
#6CA62F #31A62F #2FA669
triadic
#31A62F #2F31A6 #A62F31
tetradic
#31A62F #2F6CA6 #A42FA6 #A6692F
square
#31A62F #2F6CA6 #A42FA6 #A6692F
split-complementary
#31A62F #692FA6 #A62F6C
monochromatic
#154714 #237621 #31A62F #49CB47 #79D877

Accessibility & contrast

On white

3.17
#31A62F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.63
#31A62F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #31A62F
6.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31A62F#FFFFFF#000000##000000
##31A62F1.003.176.636.63
#FFFFFF3.171.0021.0021.00
#0000006.6321.001.001.00
##0000006.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#AA961C
Deuteranopia (green-blind)
#9C8D3B
Tritanopia (blue-blind)
#0EA18E
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #31a62f;
/* rgb */ color: rgb(49, 166, 47);
/* oklch */ color: oklch(63.7% 0.187 142.8);
Tailwind
colors: {
  custom: {
    50: '#7bc16f',
    500: '#31a62f',
    950: '#000000',
  },
}
SCSS
$custom: #31a62f;
$custom-light: #7bc16f;
$custom-dark: #000000;
JSON
{
  "hex": "#31a62f",
  "rgb": {
    "r": 49,
    "g": 166,
    "b": 47
  },
  "hsl": {
    "h": 118.992,
    "s": 55.869,
    "l": 41.765
  },
  "oklch": {
    "l": 0.63712,
    "c": 0.18745,
    "h": 142.8
  },
  "luminance": 0.28131
}

Semantic roles & 50–950 ramp

primary
#31A62F
secondary
#BF70C1
accent
#49DFDD
background
#F8FCF6
surface
#EFF8EC
border
#CAD1C7
text
#0B1208
muted
#7C817B

Preview Lab

Preview with #31A62F

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

Preview Lab → · Contrast checker → · Palette generator →

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