#317D12#317D12

#317D12 is a mid, vivid green. Relative luminance 0.154; OKLCH L 52.2% C 0.155 H 138.9°. Best body text is #FFFFFF at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#317D12
RGBrgb(49, 125, 18)
HSLhsl(103, 75%, 28%)
HSVhsv(103, 86%, 49%)
CMYKcmyk(60.8%, 0%, 85.6%, 51%)
CIE-LABlab(46.13, -42.38, 46.19)
CIE-LCHlch(46.13, 62.68, 132.54°)
OKLaboklab(52.16% -0.1169 0.1018)
OKLCHoklch(52.16% 0.155 138.9)
XYZxyz(8.7091, 15.3631, 3.0786)
Luminance0.1536 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#317D12 #5E127D
analogous
#667D12 #317D12 #127D29
triadic
#317D12 #12317D #7D1231
tetradic
#317D12 #12667D #5E127D #7D2912
square
#317D12 #12667D #5E127D #7D2912
split-complementary
#317D12 #29127D #7D1266
monochromatic
#0A1B04 #1C480A #317D12 #46B21A #5EE029

Accessibility & contrast

On white

5.16
#317D12 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#317D12 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #317D12
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##317D12#FFFFFF#000000##FFFFFF
##317D121.005.164.075.16
#FFFFFF5.161.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#817100
Deuteranopia (green-blind)
#786B20
Tritanopia (blue-blind)
#29786A
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #317d12;
/* rgb */ color: rgb(49, 125, 18);
/* oklch */ color: oklch(52.2% 0.155 138.9);
Tailwind
colors: {
  custom: {
    50: '#73a35b',
    500: '#317d12',
    950: '#000000',
  },
}
SCSS
$custom: #317d12;
$custom-light: #73a35b;
$custom-dark: #000000;
JSON
{
  "hex": "#317d12",
  "rgb": {
    "r": 49,
    "g": 125,
    "b": 18
  },
  "hsl": {
    "h": 102.617,
    "s": 74.825,
    "l": 28.039
  },
  "oklch": {
    "l": 0.52163,
    "c": 0.15501,
    "h": 138.9
  },
  "luminance": 0.15364
}

Semantic roles & 50–950 ramp

primary
#317D12
secondary
#8F38B3
accent
#36F1BB
background
#F7FAF5
surface
#EDF4E9
border
#C8CEC5
text
#090F04
muted
#7B7F79

Preview Lab

Preview with #317D12

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

Preview Lab → · Contrast checker → · Palette generator →

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