#317F1C#317F1C

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

Color values

HEX#317F1C
RGBrgb(49, 127, 28)
HSLhsl(107, 64%, 30%)
HSVhsv(107, 78%, 50%)
CMYKcmyk(61.4%, 0%, 78%, 50.2%)
CIE-LABlab(46.86, -42.51, 43.65)
CIE-LCHlch(46.86, 60.93, 134.25°)
OKLaboklab(52.79% -0.1167 0.098)
OKLCHoklch(52.79% 0.152 140)
XYZxyz(9.0652, 15.9147, 3.6925)
Luminance0.1592 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#317F1C #6A1C7F
analogous
#627F1C #317F1C #1C7F39
triadic
#317F1C #1C317F #7F1C31
tetradic
#317F1C #1C627F #6A1C7F #7F391C
square
#317F1C #1C627F #6A1C7F #7F391C
split-complementary
#317F1C #391C7F #7F1C62
monochromatic
#0A1B06 #1E4D11 #317F1C #44B127 #60D540

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##317F1C#FFFFFF#000000##FFFFFF
##317F1C1.005.024.185.02
#FFFFFF5.021.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #317f1c;
/* rgb */ color: rgb(49, 127, 28);
/* oklch */ color: oklch(52.8% 0.152 140.0);
Tailwind
colors: {
  custom: {
    50: '#73a560',
    500: '#317f1c',
    950: '#000000',
  },
}
SCSS
$custom: #317f1c;
$custom-light: #73a560;
$custom-dark: #000000;
JSON
{
  "hex": "#317f1c",
  "rgb": {
    "r": 49,
    "g": 127,
    "b": 28
  },
  "hsl": {
    "h": 107.273,
    "s": 63.871,
    "l": 30.392
  },
  "oklch": {
    "l": 0.52788,
    "c": 0.15239,
    "h": 140
  },
  "luminance": 0.15916
}

Semantic roles & 50–950 ramp

primary
#317F1C
secondary
#9B44B3
accent
#41E7C4
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#090F05
muted
#7B7F79

Preview Lab

Preview with #317F1C

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

Preview Lab → · Contrast checker → · Palette generator →

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