#317B40#317B40

#317B40 is a mid, moderate green. Relative luminance 0.152; OKLCH L 52.1% C 0.117 H 147.8°. Best body text is #FFFFFF at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#317B40
RGBrgb(49, 123, 64)
HSLhsl(132, 43%, 34%)
HSVhsv(132, 60%, 48%)
CMYKcmyk(60.2%, 0%, 48%, 51.8%)
CIE-LABlab(45.89, -36.58, 25.49)
CIE-LCHlch(45.89, 44.59, 145.13°)
OKLaboklab(52.11% -0.099 0.0623)
OKLCHoklch(52.11% 0.117 147.8)
XYZxyz(9.2744, 15.1882, 7.2924)
Luminance0.1519 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#317B40 #7B316C
analogous
#477B31 #317B40 #317B65
triadic
#317B40 #40317B #7B4031
tetradic
#317B40 #31477B #7B316C #7B6531
square
#317B40 #31477B #7B316C #7B6531
split-complementary
#317B40 #65317B #7B3147
monochromatic
#0E2312 #204F29 #317B40 #42A757 #65C278

Accessibility & contrast

On white

5.20
#317B40 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#317B40 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #317B40
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##317B40#FFFFFF#000000##FFFFFF
##317B401.005.204.045.20
#FFFFFF5.201.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C713B
Deuteranopia (green-blind)
#736A44
Tritanopia (blue-blind)
#20796D
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #317b40;
/* rgb */ color: rgb(49, 123, 64);
/* oklch */ color: oklch(52.1% 0.117 147.8);
Tailwind
colors: {
  custom: {
    50: '#71a276',
    500: '#317b40',
    950: '#000000',
  },
}
SCSS
$custom: #317b40;
$custom-light: #71a276;
$custom-dark: #000000;
JSON
{
  "hex": "#317b40",
  "rgb": {
    "r": 49,
    "g": 123,
    "b": 64
  },
  "hsl": {
    "h": 132.162,
    "s": 43.023,
    "l": 33.725
  },
  "oklch": {
    "l": 0.5211,
    "c": 0.11694,
    "h": 147.8
  },
  "luminance": 0.15189
}

Semantic roles & 50–950 ramp

primary
#317B40
secondary
#A95F9A
accent
#55B9D3
background
#F7FAF7
surface
#EDF3ED
border
#C8CDC8
text
#080F08
muted
#7B7F7B

Preview Lab

Preview with #317B40

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

Preview Lab → · Contrast checker → · Palette generator →

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