#31A71E#31A71E

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

Color values

HEX#31A71E
RGBrgb(49, 167, 30)
HSLhsl(112, 70%, 39%)
HSVhsv(112, 82%, 65%)
CMYKcmyk(70.7%, 0%, 82%, 34.5%)
CIE-LABlab(60.23, -56.49, 55.76)
CIE-LCHlch(60.23, 79.37, 135.37°)
OKLaboklab(63.87% -0.1543 0.1236)
OKLCHoklch(63.87% 0.198 141.3)
XYZxyz(15.3189, 28.3825, 5.8991)
Luminance0.2838 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31A71E #941EA7
analogous
#75A71E #31A71E #1EA74F
triadic
#31A71E #1E31A7 #A71E31
tetradic
#31A71E #1E75A7 #941EA7 #A74F1E
square
#31A71E #1E75A7 #941EA7 #A74F1E
split-complementary
#31A71E #4F1EA7 #A71E75
monochromatic
#133F0B #227315 #31A71E #42D92A #70E25D

Accessibility & contrast

On white

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

On black

6.68
#31A71E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #31A71E
6.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31A71E#FFFFFF#000000##000000
##31A71E1.003.156.686.68
#FFFFFF3.151.0021.0021.00
#0000006.6821.001.001.00
##0000006.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#AB9700
Deuteranopia (green-blind)
#9E8E2F
Tritanopia (blue-blind)
#13A28E
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #31a71e;
/* rgb */ color: rgb(49, 167, 30);
/* oklch */ color: oklch(63.9% 0.198 141.3);
Tailwind
colors: {
  custom: {
    50: '#7bc267',
    500: '#31a71e',
    950: '#000000',
  },
}
SCSS
$custom: #31a71e;
$custom-light: #7bc267;
$custom-dark: #000000;
JSON
{
  "hex": "#31a71e",
  "rgb": {
    "r": 49,
    "g": 167,
    "b": 30
  },
  "hsl": {
    "h": 111.679,
    "s": 69.543,
    "l": 38.627
  },
  "oklch": {
    "l": 0.63869,
    "c": 0.19766,
    "h": 141.3
  },
  "luminance": 0.28384
}

Semantic roles & 50–950 ramp

primary
#31A71E
secondary
#B75BC6
accent
#3BECD4
background
#F8FCF6
surface
#EFF8EB
border
#CAD1C6
text
#0B1207
muted
#7C817A

Preview Lab

Preview with #31A71E

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

Preview Lab → · Contrast checker → · Palette generator →

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