#317F20#317F20

#317F20 is a mid, vivid green. Relative luminance 0.159; OKLCH L 52.8% C 0.150 H 140.5°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#317F20
RGBrgb(49, 127, 32)
HSLhsl(109, 60%, 31%)
HSVhsv(109, 75%, 50%)
CMYKcmyk(61.4%, 0%, 74.8%, 50.2%)
CIE-LABlab(46.89, -42.20, 42.16)
CIE-LCHlch(46.89, 59.65, 135.03°)
OKLaboklab(52.82% -0.1156 0.0955)
OKLCHoklch(52.82% 0.15 140.5)
XYZxyz(9.1163, 15.9352, 3.9616)
Luminance0.1594 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#317F20 #6E207F
analogous
#607F20 #317F20 #207F3E
triadic
#317F20 #20317F #7F2031
tetradic
#317F20 #20607F #6E207F #7F3E20
square
#317F20 #20607F #6E207F #7F3E20
split-complementary
#317F20 #3E207F #7F2060
monochromatic
#0B1D07 #1E4E14 #317F20 #44B02C #61D148

Accessibility & contrast

On white

5.02
#317F20 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.19
#317F20 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #317F20
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##317F20#FFFFFF#000000##FFFFFF
##317F201.005.024.195.02
#FFFFFF5.021.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#83730F
Deuteranopia (green-blind)
#796D2A
Tritanopia (blue-blind)
#267B6C
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #317f20;
/* rgb */ color: rgb(49, 127, 32);
/* oklch */ color: oklch(52.8% 0.150 140.5);
Tailwind
colors: {
  custom: {
    50: '#73a562',
    500: '#317f20',
    950: '#000000',
  },
}
SCSS
$custom: #317f20;
$custom-light: #73a562;
$custom-dark: #000000;
JSON
{
  "hex": "#317f20",
  "rgb": {
    "r": 49,
    "g": 127,
    "b": 32
  },
  "hsl": {
    "h": 109.263,
    "s": 59.748,
    "l": 31.176
  },
  "oklch": {
    "l": 0.52818,
    "c": 0.14994,
    "h": 140.5
  },
  "luminance": 0.15936
}

Semantic roles & 50–950 ramp

primary
#317F20
secondary
#9F49B2
accent
#45E3C7
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#090F05
muted
#7B7F7A

Preview Lab

Preview with #317F20

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

Preview Lab → · Contrast checker → · Palette generator →

#317F20 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva