#317F17#317F17

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

Color values

HEX#317F17
RGBrgb(49, 127, 23)
HSLhsl(105, 69%, 29%)
HSVhsv(105, 82%, 50%)
CMYKcmyk(61.4%, 0%, 81.9%, 50.2%)
CIE-LABlab(46.83, -42.85, 45.33)
CIE-LCHlch(46.83, 62.38, 133.39°)
OKLaboklab(52.75% -0.1179 0.1008)
OKLCHoklch(52.75% 0.155 139.5)
XYZxyz(9.0103, 15.8928, 3.4032)
Luminance0.1589 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#317F17 #65177F
analogous
#657F17 #317F17 #177F31
triadic
#317F17 #17317F #7F1731
tetradic
#317F17 #17657F #65177F #7F3117
square
#317F17 #17657F #65177F #7F3117
split-complementary
#317F17 #31177F #7F1765
monochromatic
#0A1A05 #1D4B0E #317F17 #45B320 #5FDB36

Accessibility & contrast

On white

5.03
#317F17 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#317F17 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #317F17
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##317F17#FFFFFF#000000##FFFFFF
##317F171.005.034.185.03
#FFFFFF5.031.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#837300
Deuteranopia (green-blind)
#796D23
Tritanopia (blue-blind)
#277B6C
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #317f17;
/* rgb */ color: rgb(49, 127, 23);
/* oklch */ color: oklch(52.8% 0.155 139.5);
Tailwind
colors: {
  custom: {
    50: '#73a55e',
    500: '#317f17',
    950: '#000000',
  },
}
SCSS
$custom: #317f17;
$custom-light: #73a55e;
$custom-dark: #000000;
JSON
{
  "hex": "#317f17",
  "rgb": {
    "r": 49,
    "g": 127,
    "b": 23
  },
  "hsl": {
    "h": 105,
    "s": 69.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.52754,
    "c": 0.1551,
    "h": 139.5
  },
  "luminance": 0.15894
}

Semantic roles & 50–950 ramp

primary
#317F17
secondary
#963EB4
accent
#3CECC0
background
#F7FAF5
surface
#EDF4E9
border
#C8CEC5
text
#090F05
muted
#7B7F79

Preview Lab

Preview with #317F17

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

Preview Lab → · Contrast checker → · Palette generator →

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