#317A42#317A42

#317A42 is a mid, moderate green. Relative luminance 0.150; OKLCH L 51.9% C 0.113 H 148.7°. Best body text is #FFFFFF at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#317A42
RGBrgb(49, 122, 66)
HSLhsl(134, 43%, 34%)
HSVhsv(134, 60%, 48%)
CMYKcmyk(59.8%, 0%, 45.9%, 52.2%)
CIE-LABlab(45.59, -35.81, 23.99)
CIE-LCHlch(45.59, 43.10, 146.18°)
OKLaboklab(51.87% -0.0969 0.059)
OKLCHoklch(51.87% 0.113 148.7)
XYZxyz(9.2089, 14.9645, 7.5564)
Luminance0.1497 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#317A42 #7A3169
analogous
#447A31 #317A42 #317A66
triadic
#317A42 #42317A #7A4231
tetradic
#317A42 #31447A #7A3169 #7A6631
square
#317A42 #31447A #7A3169 #7A6631
split-complementary
#317A42 #66317A #7A3144
monochromatic
#0E2313 #1F4E2A #317A42 #43A65A #64C17A

Accessibility & contrast

On white

5.26
#317A42 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#317A42 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #317A42
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##317A42#FFFFFF#000000##FFFFFF
##317A421.005.263.995.26
#FFFFFF5.261.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B703E
Deuteranopia (green-blind)
#716946
Tritanopia (blue-blind)
#1F786C
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #317a42;
/* rgb */ color: rgb(49, 122, 66);
/* oklch */ color: oklch(51.9% 0.113 148.7);
Tailwind
colors: {
  custom: {
    50: '#70a177',
    500: '#317a42',
    950: '#000000',
  },
}
SCSS
$custom: #317a42;
$custom-light: #70a177;
$custom-dark: #000000;
JSON
{
  "hex": "#317a42",
  "rgb": {
    "r": 49,
    "g": 122,
    "b": 66
  },
  "hsl": {
    "h": 133.973,
    "s": 42.69,
    "l": 33.529
  },
  "oklch": {
    "l": 0.5187,
    "c": 0.11342,
    "h": 148.7
  },
  "luminance": 0.14965
}

Semantic roles & 50–950 ramp

primary
#317A42
secondary
#A85E97
accent
#55B5D2
background
#F7FAF7
surface
#EDF3ED
border
#C8CDC8
text
#080F08
muted
#7B7F7B

Preview Lab

Preview with #317A42

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

Preview Lab → · Contrast checker → · Palette generator →

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