#317F15#317F15

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

Color values

HEX#317F15
RGBrgb(49, 127, 21)
HSLhsl(104, 72%, 29%)
HSVhsv(104, 83%, 50%)
CMYKcmyk(61.4%, 0%, 83.5%, 50.2%)
CIE-LABlab(46.82, -42.97, 45.95)
CIE-LCHlch(46.82, 62.91, 133.08°)
OKLaboklab(52.74% -0.1183 0.1017)
OKLCHoklch(52.74% 0.156 139.3)
XYZxyz(8.9910, 15.8850, 3.3016)
Luminance0.1589 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#317F15 #63157F
analogous
#667F15 #317F15 #157F2E
triadic
#317F15 #15317F #7F1531
tetradic
#317F15 #15667F #63157F #7F2E15
square
#317F15 #15667F #63157F #7F2E15
split-complementary
#317F15 #2E157F #7F1566
monochromatic
#0A1A04 #1D4A0C #317F15 #45B41E #5FDD31

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##317F15#FFFFFF#000000##FFFFFF
##317F151.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)
#796D22
Tritanopia (blue-blind)
#287A6C
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #317f15;
/* rgb */ color: rgb(49, 127, 21);
/* oklch */ color: oklch(52.7% 0.156 139.3);
Tailwind
colors: {
  custom: {
    50: '#74a55d',
    500: '#317f15',
    950: '#000000',
  },
}
SCSS
$custom: #317f15;
$custom-light: #74a55d;
$custom-dark: #000000;
JSON
{
  "hex": "#317f15",
  "rgb": {
    "r": 49,
    "g": 127,
    "b": 21
  },
  "hsl": {
    "h": 104.151,
    "s": 71.622,
    "l": 29.02
  },
  "oklch": {
    "l": 0.52743,
    "c": 0.15606,
    "h": 139.3
  },
  "luminance": 0.15886
}

Semantic roles & 50–950 ramp

primary
#317F15
secondary
#943CB4
accent
#39EEBF
background
#F7FAF5
surface
#EDF4E9
border
#C8CEC5
text
#090F05
muted
#7B7F79

Preview Lab

Preview with #317F15

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

Preview Lab → · Contrast checker → · Palette generator →

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