#317F1B#317F1B

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

Color values

HEX#317F1B
RGBrgb(49, 127, 27)
HSLhsl(107, 65%, 30%)
HSVhsv(107, 79%, 50%)
CMYKcmyk(61.4%, 0%, 78.7%, 50.2%)
CIE-LABlab(46.86, -42.59, 44.00)
CIE-LCHlch(46.86, 61.23, 134.06°)
OKLaboklab(52.78% -0.117 0.0986)
OKLCHoklch(52.78% 0.153 139.9)
XYZxyz(9.0534, 15.9100, 3.6305)
Luminance0.1591 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#317F1B #691B7F
analogous
#637F1B #317F1B #1B7F37
triadic
#317F1B #1B317F #7F1B31
tetradic
#317F1B #1B637F #691B7F #7F371B
square
#317F1B #1B637F #691B7F #7F371B
split-complementary
#317F1B #371B7F #7F1B63
monochromatic
#0A1A06 #1E4D10 #317F1B #44B126 #60D63E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##317F1B#FFFFFF#000000##FFFFFF
##317F1B1.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)
#837304
Deuteranopia (green-blind)
#796D26
Tritanopia (blue-blind)
#277B6C
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #317f1b;
/* rgb */ color: rgb(49, 127, 27);
/* oklch */ color: oklch(52.8% 0.153 139.9);
Tailwind
colors: {
  custom: {
    50: '#73a55f',
    500: '#317f1b',
    950: '#000000',
  },
}
SCSS
$custom: #317f1b;
$custom-light: #73a55f;
$custom-dark: #000000;
JSON
{
  "hex": "#317f1b",
  "rgb": {
    "r": 49,
    "g": 127,
    "b": 27
  },
  "hsl": {
    "h": 106.8,
    "s": 64.935,
    "l": 30.196
  },
  "oklch": {
    "l": 0.5278,
    "c": 0.15297,
    "h": 139.9
  },
  "luminance": 0.15911
}

Semantic roles & 50–950 ramp

primary
#317F1B
secondary
#9A43B3
accent
#40E8C3
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#090F05
muted
#7B7F79

Preview Lab

Preview with #317F1B

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

Preview Lab → · Contrast checker → · Palette generator →

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