#317F2B#317F2B

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

Color values

HEX#317F2B
RGBrgb(49, 127, 43)
HSLhsl(116, 49%, 33%)
HSVhsv(116, 66%, 50%)
CMYKcmyk(61.4%, 0%, 66.1%, 50.2%)
CIE-LABlab(46.98, -41.14, 37.52)
CIE-LCHlch(46.98, 55.68, 137.63°)
OKLaboklab(52.92% -0.1121 0.0871)
OKLCHoklch(52.92% 0.142 142.1)
XYZxyz(9.2916, 16.0053, 4.8847)
Luminance0.1601 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#317F2B #792B7F
analogous
#5B7F2B #317F2B #2B7F4F
triadic
#317F2B #2B317F #7F2B31
tetradic
#317F2B #2B5B7F #792B7F #7F4F2B
square
#317F2B #2B5B7F #792B7F #7F4F2B
split-complementary
#317F2B #4F2B7F #7F2B5B
monochromatic
#0E240C #1F511C #317F2B #43AD3A #64C85C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##317F2B#FFFFFF#000000##FFFFFF
##317F2B1.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)
#827321
Deuteranopia (green-blind)
#786D32
Tritanopia (blue-blind)
#247B6D
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #317f2b;
/* rgb */ color: rgb(49, 127, 43);
/* oklch */ color: oklch(52.9% 0.142 142.1);
Tailwind
colors: {
  custom: {
    50: '#72a568',
    500: '#317f2b',
    950: '#000000',
  },
}
SCSS
$custom: #317f2b;
$custom-light: #72a568;
$custom-dark: #000000;
JSON
{
  "hex": "#317f2b",
  "rgb": {
    "r": 49,
    "g": 127,
    "b": 43
  },
  "hsl": {
    "h": 115.714,
    "s": 49.412,
    "l": 33.333
  },
  "oklch": {
    "l": 0.52924,
    "c": 0.14197,
    "h": 142.1
  },
  "luminance": 0.16006
}

Semantic roles & 50–950 ramp

primary
#317F2B
secondary
#A858AE
accent
#4FD9CF
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#090F06
muted
#7B7F7A

Preview Lab

Preview with #317F2B

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

Preview Lab → · Contrast checker → · Palette generator →

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