#317D2F#317D2F

#317D2F is a mid, vivid green. Relative luminance 0.155; OKLCH L 52.4% C 0.136 H 142.9°. Best body text is #FFFFFF at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#317D2F
RGBrgb(49, 125, 47)
HSLhsl(118, 45%, 34%)
HSVhsv(118, 62%, 49%)
CMYKcmyk(60.8%, 0%, 62.4%, 51%)
CIE-LABlab(46.34, -39.88, 34.90)
CIE-LCHlch(46.34, 53.00, 138.81°)
OKLaboklab(52.41% -0.1085 0.082)
OKLCHoklch(52.41% 0.136 142.9)
XYZxyz(9.1128, 15.5246, 5.2051)
Luminance0.1552 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#317D2F #7B2F7D
analogous
#587D2F #317D2F #2F7D54
triadic
#317D2F #2F317D #7D2F31
tetradic
#317D2F #2F587D #7B2F7D #7D542F
square
#317D2F #2F587D #7B2F7D #7D542F
split-complementary
#317D2F #542F7D #7D2F58
monochromatic
#0E240E #20511E #317D2F #42A940 #65C462

Accessibility & contrast

On white

5.12
#317D2F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#317D2F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #317D2F
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##317D2F#FFFFFF#000000##FFFFFF
##317D2F1.005.124.105.12
#FFFFFF5.121.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807227
Deuteranopia (green-blind)
#766B35
Tritanopia (blue-blind)
#24796C
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #317d2f;
/* rgb */ color: rgb(49, 125, 47);
/* oklch */ color: oklch(52.4% 0.136 142.9);
Tailwind
colors: {
  custom: {
    50: '#72a36a',
    500: '#317d2f',
    950: '#000000',
  },
}
SCSS
$custom: #317d2f;
$custom-light: #72a36a;
$custom-dark: #000000;
JSON
{
  "hex": "#317d2f",
  "rgb": {
    "r": 49,
    "g": 125,
    "b": 47
  },
  "hsl": {
    "h": 118.462,
    "s": 45.349,
    "l": 33.725
  },
  "oklch": {
    "l": 0.52412,
    "c": 0.13594,
    "h": 142.9
  },
  "luminance": 0.15525
}

Semantic roles & 50–950 ramp

primary
#317D2F
secondary
#A95DAB
accent
#53D5D2
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F07
muted
#7B7F7A

Preview Lab

Preview with #317D2F

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

Preview Lab → · Contrast checker → · Palette generator →

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