#317B20#317B20

#317B20 is a mid, vivid green. Relative luminance 0.149; OKLCH L 51.7% C 0.145 H 140.3°. Best body text is #FFFFFF at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#317B20
RGBrgb(49, 123, 32)
HSLhsl(109, 59%, 30%)
HSVhsv(109, 74%, 48%)
CMYKcmyk(60.2%, 0%, 74%, 51.8%)
CIE-LABlab(45.53, -40.65, 40.76)
CIE-LCHlch(45.53, 57.57, 134.92°)
OKLaboklab(51.69% -0.1114 0.0925)
OKLCHoklch(51.69% 0.145 140.3)
XYZxyz(8.6099, 14.9224, 3.7928)
Luminance0.1492 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#317B20 #6A207B
analogous
#5E7B20 #317B20 #207B3C
triadic
#317B20 #20317B #7B2031
tetradic
#317B20 #205E7B #6A207B #7B3C20
square
#317B20 #205E7B #6A207B #7B3C20
split-complementary
#317B20 #3C207B #7B205E
monochromatic
#0A1A07 #1E4A13 #317B20 #44AC2D #60CF46

Accessibility & contrast

On white

5.27
#317B20 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#317B20 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #317B20
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##317B20#FFFFFF#000000##FFFFFF
##317B201.005.273.985.27
#FFFFFF5.271.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E7011
Deuteranopia (green-blind)
#756929
Tritanopia (blue-blind)
#287769
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #317b20;
/* rgb */ color: rgb(49, 123, 32);
/* oklch */ color: oklch(51.7% 0.145 140.3);
Tailwind
colors: {
  custom: {
    50: '#72a261',
    500: '#317b20',
    950: '#000000',
  },
}
SCSS
$custom: #317b20;
$custom-light: #72a261;
$custom-dark: #000000;
JSON
{
  "hex": "#317b20",
  "rgb": {
    "r": 49,
    "g": 123,
    "b": 32
  },
  "hsl": {
    "h": 108.791,
    "s": 58.71,
    "l": 30.392
  },
  "oklch": {
    "l": 0.51694,
    "c": 0.14486,
    "h": 140.3
  },
  "luminance": 0.14923
}

Semantic roles & 50–950 ramp

primary
#317B20
secondary
#9B49AE
accent
#46E2C5
background
#F7FAF5
surface
#EDF3EA
border
#C8CDC6
text
#090F05
muted
#7B7F79

Preview Lab

Preview with #317B20

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

Preview Lab → · Contrast checker → · Palette generator →

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