#317E12#317E12

#317E12 is a mid, vivid green. Relative luminance 0.156; OKLCH L 52.4% C 0.156 H 139.0°. Best body text is #FFFFFF at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#317E12
RGBrgb(49, 126, 18)
HSLhsl(103, 75%, 28%)
HSVhsv(103, 86%, 49%)
CMYKcmyk(61.1%, 0%, 85.7%, 50.6%)
CIE-LABlab(46.47, -42.76, 46.50)
CIE-LCHlch(46.47, 63.17, 132.60°)
OKLaboklab(52.45% -0.1179 0.1025)
OKLCHoklch(52.45% 0.156 139)
XYZxyz(8.8363, 15.6176, 3.1210)
Luminance0.1562 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#317E12 #5F127E
analogous
#677E12 #317E12 #127E29
triadic
#317E12 #12317E #7E1231
tetradic
#317E12 #12677E #5F127E #7E2912
square
#317E12 #12677E #5F127E #7E2912
split-complementary
#317E12 #29127E #7E1267
monochromatic
#0A1B04 #1C480A #317E12 #46B41A #5EE12A

Accessibility & contrast

On white

5.09
#317E12 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.12
#317E12 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #317E12
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##317E12#FFFFFF#000000##FFFFFF
##317E121.005.094.125.09
#FFFFFF5.091.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#827200
Deuteranopia (green-blind)
#786C20
Tritanopia (blue-blind)
#28796B
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #317e12;
/* rgb */ color: rgb(49, 126, 18);
/* oklch */ color: oklch(52.4% 0.156 139.0);
Tailwind
colors: {
  custom: {
    50: '#74a45b',
    500: '#317e12',
    950: '#000000',
  },
}
SCSS
$custom: #317e12;
$custom-light: #74a45b;
$custom-dark: #000000;
JSON
{
  "hex": "#317e12",
  "rgb": {
    "r": 49,
    "g": 126,
    "b": 18
  },
  "hsl": {
    "h": 102.778,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.52445,
    "c": 0.1562,
    "h": 139
  },
  "luminance": 0.15618
}

Semantic roles & 50–950 ramp

primary
#317E12
secondary
#9038B4
accent
#36F2BC
background
#F7FAF5
surface
#EDF4E9
border
#C8CEC5
text
#090F04
muted
#7B7F79

Preview Lab

Preview with #317E12

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

Preview Lab → · Contrast checker → · Palette generator →

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