#317F12#317F12

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

Color values

HEX#317F12
RGBrgb(49, 127, 18)
HSLhsl(103, 75%, 28%)
HSVhsv(103, 86%, 50%)
CMYKcmyk(61.4%, 0%, 85.8%, 50.2%)
CIE-LABlab(46.81, -43.13, 46.81)
CIE-LCHlch(46.81, 63.65, 132.66°)
OKLaboklab(52.73% -0.1189 0.1031)
OKLCHoklch(52.73% 0.157 139.1)
XYZxyz(8.9648, 15.8746, 3.1638)
Luminance0.1588 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#317F12 #60127F
analogous
#677F12 #317F12 #127F2A
triadic
#317F12 #12317F #7F1231
tetradic
#317F12 #12677F #60127F #7F2A12
square
#317F12 #12677F #60127F #7F2A12
split-complementary
#317F12 #2A127F #7F1267
monochromatic
#0A1B04 #1C490A #317F12 #46B51A #5EE12B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

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

Design tokens & code

CSS
--color: #317f12;
/* rgb */ color: rgb(49, 127, 18);
/* oklch */ color: oklch(52.7% 0.157 139.1);
Tailwind
colors: {
  custom: {
    50: '#74a55c',
    500: '#317f12',
    950: '#000000',
  },
}
SCSS
$custom: #317f12;
$custom-light: #74a55c;
$custom-dark: #000000;
JSON
{
  "hex": "#317f12",
  "rgb": {
    "r": 49,
    "g": 127,
    "b": 18
  },
  "hsl": {
    "h": 102.936,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.52727,
    "c": 0.15739,
    "h": 139.1
  },
  "luminance": 0.15875
}

Semantic roles & 50–950 ramp

primary
#317F12
secondary
#9138B5
accent
#36F2BC
background
#F7FAF5
surface
#EDF4E9
border
#C8CEC5
text
#090F04
muted
#7B7F79

Preview Lab

Preview with #317F12

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

Preview Lab → · Contrast checker → · Palette generator →

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