#317F2A#317F2A

#317F2A is a mid, vivid green. Relative luminance 0.160; OKLCH L 52.9% C 0.143 H 142.0°. Best body text is #FFFFFF at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#317F2A
RGBrgb(49, 127, 42)
HSLhsl(115, 50%, 33%)
HSVhsv(115, 67%, 50%)
CMYKcmyk(61.4%, 0%, 66.9%, 50.2%)
CIE-LABlab(46.97, -41.25, 37.97)
CIE-LCHlch(46.97, 56.07, 137.37°)
OKLaboklab(52.91% -0.1124 0.088)
OKLCHoklch(52.91% 0.143 142)
XYZxyz(9.2734, 15.9980, 4.7893)
Luminance0.1600 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#317F2A #782A7F
analogous
#5B7F2A #317F2A #2A7F4D
triadic
#317F2A #2A317F #7F2A31
tetradic
#317F2A #2A5B7F #782A7F #7F4D2A
square
#317F2A #2A5B7F #782A7F #7F4D2A
split-complementary
#317F2A #4D2A7F #7F2A5B
monochromatic
#0E230C #1F511B #317F2A #43AD39 #64C95B

Accessibility & contrast

On white

5.00
#317F2A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.20
#317F2A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #317F2A
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##317F2A#FFFFFF#000000##FFFFFF
##317F2A1.005.004.205.00
#FFFFFF5.001.0021.001.00
#0000004.2021.001.0021.00
##FFFFFF5.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#82731F
Deuteranopia (green-blind)
#786D31
Tritanopia (blue-blind)
#257B6D
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #317f2a;
/* rgb */ color: rgb(49, 127, 42);
/* oklch */ color: oklch(52.9% 0.143 142.0);
Tailwind
colors: {
  custom: {
    50: '#73a568',
    500: '#317f2a',
    950: '#000000',
  },
}
SCSS
$custom: #317f2a;
$custom-light: #73a568;
$custom-dark: #000000;
JSON
{
  "hex": "#317f2a",
  "rgb": {
    "r": 49,
    "g": 127,
    "b": 42
  },
  "hsl": {
    "h": 115.059,
    "s": 50.296,
    "l": 33.137
  },
  "oklch": {
    "l": 0.52913,
    "c": 0.14277,
    "h": 142
  },
  "luminance": 0.15999
}

Semantic roles & 50–950 ramp

primary
#317F2A
secondary
#A757AE
accent
#4EDACE
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#090F06
muted
#7B7F7A

Preview Lab

Preview with #317F2A

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

Preview Lab → · Contrast checker → · Palette generator →

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