#317E2F#317E2F

#317E2F is a mid, vivid green. Relative luminance 0.158; OKLCH L 52.7% C 0.137 H 142.9°. Best body text is #FFFFFF at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#317E2F
RGBrgb(49, 126, 47)
HSLhsl(118, 46%, 34%)
HSVhsv(118, 63%, 49%)
CMYKcmyk(61.1%, 0%, 62.7%, 50.6%)
CIE-LABlab(46.68, -40.28, 35.29)
CIE-LCHlch(46.68, 53.55, 138.78°)
OKLaboklab(52.69% -0.1095 0.0828)
OKLCHoklch(52.69% 0.137 142.9)
XYZxyz(9.2401, 15.7791, 5.2475)
Luminance0.1578 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#317E2F #7C2F7E
analogous
#597E2F #317E2F #2F7E55
triadic
#317E2F #2F317E #7E2F31
tetradic
#317E2F #2F597E #7C2F7E #7E552F
square
#317E2F #2F597E #7C2F7E #7E552F
split-complementary
#317E2F #552F7E #7E2F59
monochromatic
#0E250E #20511E #317E2F #42AB40 #65C563

Accessibility & contrast

On white

5.05
#317E2F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#317E2F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #317E2F
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##317E2F#FFFFFF#000000##FFFFFF
##317E2F1.005.054.165.05
#FFFFFF5.051.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#817326
Deuteranopia (green-blind)
#776C35
Tritanopia (blue-blind)
#247A6D
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #317e2f;
/* rgb */ color: rgb(49, 126, 47);
/* oklch */ color: oklch(52.7% 0.137 142.9);
Tailwind
colors: {
  custom: {
    50: '#72a46a',
    500: '#317e2f',
    950: '#000000',
  },
}
SCSS
$custom: #317e2f;
$custom-light: #72a46a;
$custom-dark: #000000;
JSON
{
  "hex": "#317e2f",
  "rgb": {
    "r": 49,
    "g": 126,
    "b": 47
  },
  "hsl": {
    "h": 118.481,
    "s": 45.665,
    "l": 33.922
  },
  "oklch": {
    "l": 0.52691,
    "c": 0.1373,
    "h": 142.9
  },
  "luminance": 0.1578
}

Semantic roles & 50–950 ramp

primary
#317E2F
secondary
#AA5DAC
accent
#52D5D2
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F07
muted
#7B7F7A

Preview Lab

Preview with #317E2F

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

Preview Lab → · Contrast checker → · Palette generator →

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