#317F18#317F18

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

Color values

HEX#317F18
RGBrgb(49, 127, 24)
HSLhsl(105, 68%, 30%)
HSVhsv(105, 81%, 50%)
CMYKcmyk(61.4%, 0%, 81.1%, 50.2%)
CIE-LABlab(46.84, -42.79, 45.01)
CIE-LCHlch(46.84, 62.10, 133.55°)
OKLaboklab(52.76% -0.1177 0.1002)
OKLCHoklch(52.76% 0.155 139.6)
XYZxyz(9.0205, 15.8968, 3.4570)
Luminance0.1590 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#317F18 #66187F
analogous
#657F18 #317F18 #187F33
triadic
#317F18 #18317F #7F1831
tetradic
#317F18 #18657F #66187F #7F3318
square
#317F18 #18657F #66187F #7F3318
split-complementary
#317F18 #33187F #7F1865
monochromatic
#0A1A05 #1D4C0E #317F18 #45B222 #5FD938

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##317F18#FFFFFF#000000##FFFFFF
##317F181.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)
#837300
Deuteranopia (green-blind)
#796D24
Tritanopia (blue-blind)
#277B6C
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #317f18;
/* rgb */ color: rgb(49, 127, 24);
/* oklch */ color: oklch(52.8% 0.155 139.6);
Tailwind
colors: {
  custom: {
    50: '#73a55e',
    500: '#317f18',
    950: '#000000',
  },
}
SCSS
$custom: #317f18;
$custom-light: #73a55e;
$custom-dark: #000000;
JSON
{
  "hex": "#317f18",
  "rgb": {
    "r": 49,
    "g": 127,
    "b": 24
  },
  "hsl": {
    "h": 105.437,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.52761,
    "c": 0.15459,
    "h": 139.6
  },
  "luminance": 0.15898
}

Semantic roles & 50–950 ramp

primary
#317F18
secondary
#973FB3
accent
#3DEBC1
background
#F7FAF5
surface
#EDF4E9
border
#C8CEC5
text
#090F05
muted
#7B7F79

Preview Lab

Preview with #317F18

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

Preview Lab → · Contrast checker → · Palette generator →

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