#31A71F#31A71F

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

Color values

HEX#31A71F
RGBrgb(49, 167, 31)
HSLhsl(112, 69%, 39%)
HSVhsv(112, 81%, 65%)
CMYKcmyk(70.7%, 0%, 81.4%, 34.5%)
CIE-LABlab(60.24, -56.43, 55.47)
CIE-LCHlch(60.24, 79.13, 135.49°)
OKLaboklab(63.87% -0.1541 0.1231)
OKLCHoklch(63.87% 0.197 141.4)
XYZxyz(15.3318, 28.3877, 5.9674)
Luminance0.2839 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31A71F #951FA7
analogous
#75A71F #31A71F #1FA751
triadic
#31A71F #1F31A7 #A71F31
tetradic
#31A71F #1F75A7 #951FA7 #A7511F
square
#31A71F #1F75A7 #951FA7 #A7511F
split-complementary
#31A71F #511FA7 #A71F75
monochromatic
#13400C #227315 #31A71F #42D82B #70E15F

Accessibility & contrast

On white

3.14
#31A71F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##31A71F#FFFFFF#000000##000000
##31A71F1.003.146.686.68
#FFFFFF3.141.0021.0021.00
#0000006.6821.001.001.00
##0000006.6821.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #31a71f;
/* rgb */ color: rgb(49, 167, 31);
/* oklch */ color: oklch(63.9% 0.197 141.4);
Tailwind
colors: {
  custom: {
    50: '#7bc267',
    500: '#31a71f',
    950: '#000000',
  },
}
SCSS
$custom: #31a71f;
$custom-light: #7bc267;
$custom-dark: #000000;
JSON
{
  "hex": "#31a71f",
  "rgb": {
    "r": 49,
    "g": 167,
    "b": 31
  },
  "hsl": {
    "h": 112.059,
    "s": 68.687,
    "l": 38.824
  },
  "oklch": {
    "l": 0.63874,
    "c": 0.19722,
    "h": 141.4
  },
  "luminance": 0.28389
}

Semantic roles & 50–950 ramp

primary
#31A71F
secondary
#B85CC6
accent
#3CECD4
background
#F8FCF6
surface
#EFF8EB
border
#CAD1C6
text
#0B1207
muted
#7C817A

Preview Lab

Preview with #31A71F

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

Preview Lab → · Contrast checker → · Palette generator →

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