#317B2F#317B2F

#317B2F is a mid, vivid green. Relative luminance 0.150; OKLCH L 51.9% C 0.133 H 142.9°. Best body text is #FFFFFF at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#317B2F
RGBrgb(49, 123, 47)
HSLhsl(118, 45%, 33%)
HSVhsv(118, 62%, 48%)
CMYKcmyk(60.2%, 0%, 61.8%, 51.8%)
CIE-LABlab(45.67, -39.07, 34.13)
CIE-LCHlch(45.67, 51.88, 138.87°)
OKLaboklab(51.85% -0.1063 0.0803)
OKLCHoklch(51.85% 0.133 142.9)
XYZxyz(8.8622, 15.0233, 5.1215)
Luminance0.1502 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#317B2F #792F7B
analogous
#577B2F #317B2F #2F7B53
triadic
#317B2F #2F317B #7B2F31
tetradic
#317B2F #2F577B #792F7B #7B532F
square
#317B2F #2F577B #792F7B #7B532F
split-complementary
#317B2F #532F7B #7B2F57
monochromatic
#0E220D #1F4F1E #317B2F #43A740 #64C362

Accessibility & contrast

On white

5.24
#317B2F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.00
#317B2F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #317B2F
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##317B2F#FFFFFF#000000##FFFFFF
##317B2F1.005.244.005.24
#FFFFFF5.241.0021.001.00
#0000004.0021.001.0021.00
##FFFFFF5.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E7027
Deuteranopia (green-blind)
#746A35
Tritanopia (blue-blind)
#25786B
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #317b2f;
/* rgb */ color: rgb(49, 123, 47);
/* oklch */ color: oklch(51.9% 0.133 142.9);
Tailwind
colors: {
  custom: {
    50: '#71a26a',
    500: '#317b2f',
    950: '#000000',
  },
}
SCSS
$custom: #317b2f;
$custom-light: #71a26a;
$custom-dark: #000000;
JSON
{
  "hex": "#317b2f",
  "rgb": {
    "r": 49,
    "g": 123,
    "b": 47
  },
  "hsl": {
    "h": 118.421,
    "s": 44.706,
    "l": 33.333
  },
  "oklch": {
    "l": 0.51852,
    "c": 0.13319,
    "h": 142.9
  },
  "luminance": 0.15024
}

Semantic roles & 50–950 ramp

primary
#317B2F
secondary
#A85CAA
accent
#53D4D1
background
#F7FAF6
surface
#EDF3EB
border
#C8CDC6
text
#080F07
muted
#7B7F7A

Preview Lab

Preview with #317B2F

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

Preview Lab → · Contrast checker → · Palette generator →

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