#317F1F#317F1F

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

Color values

HEX#317F1F
RGBrgb(49, 127, 31)
HSLhsl(109, 61%, 31%)
HSVhsv(109, 76%, 50%)
CMYKcmyk(61.4%, 0%, 75.6%, 50.2%)
CIE-LABlab(46.88, -42.28, 42.54)
CIE-LCHlch(46.88, 59.98, 134.83°)
OKLaboklab(52.81% -0.1159 0.0961)
OKLCHoklch(52.81% 0.151 140.3)
XYZxyz(9.1029, 15.9298, 3.8911)
Luminance0.1593 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#317F1F #6D1F7F
analogous
#617F1F #317F1F #1F7F3D
triadic
#317F1F #1F317F #7F1F31
tetradic
#317F1F #1F617F #6D1F7F #7F3D1F
square
#317F1F #1F617F #6D1F7F #7F3D1F
split-complementary
#317F1F #3D1F7F #7F1F61
monochromatic
#0B1D07 #1E4E13 #317F1F #44B02B #61D246

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##317F1F#FFFFFF#000000##FFFFFF
##317F1F1.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)
#83730D
Deuteranopia (green-blind)
#796D29
Tritanopia (blue-blind)
#267B6C
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #317f1f;
/* rgb */ color: rgb(49, 127, 31);
/* oklch */ color: oklch(52.8% 0.151 140.3);
Tailwind
colors: {
  custom: {
    50: '#73a561',
    500: '#317f1f',
    950: '#000000',
  },
}
SCSS
$custom: #317f1f;
$custom-light: #73a561;
$custom-dark: #000000;
JSON
{
  "hex": "#317f1f",
  "rgb": {
    "r": 49,
    "g": 127,
    "b": 31
  },
  "hsl": {
    "h": 108.75,
    "s": 60.759,
    "l": 30.98
  },
  "oklch": {
    "l": 0.5281,
    "c": 0.15058,
    "h": 140.3
  },
  "luminance": 0.15931
}

Semantic roles & 50–950 ramp

primary
#317F1F
secondary
#9E48B2
accent
#44E4C6
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#090F05
muted
#7B7F7A

Preview Lab

Preview with #317F1F

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

Preview Lab → · Contrast checker → · Palette generator →

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