#317212#317212

#317212 is a mid, vivid green. Relative luminance 0.127; OKLCH L 49.0% C 0.142 H 138.1°. Best body text is #FFFFFF at 5.92:1 contrast (WCAG AA passes).

Color values

HEX#317212
RGBrgb(49, 114, 18)
HSLhsl(101, 73%, 26%)
HSVhsv(101, 84%, 45%)
CMYKcmyk(57%, 0%, 84.2%, 55.3%)
CIE-LABlab(42.35, -38.10, 42.73)
CIE-LCHlch(42.35, 57.24, 131.72°)
OKLaboklab(49.05% -0.1054 0.0945)
OKLCHoklch(49.05% 0.142 138.1)
XYZxyz(7.3929, 12.7307, 2.6398)
Luminance0.1273 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#317212 #531272
analogous
#617212 #317212 #127223
triadic
#317212 #123172 #721231
tetradic
#317212 #126172 #531272 #722312
square
#317212 #126172 #531272 #722312
split-complementary
#317212 #231272 #721261
monochromatic
#0B1A04 #1A3D0A #317212 #48A71A #5EDC23

Accessibility & contrast

On white

5.92
#317212 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#317212 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #317212
5.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##317212#FFFFFF#000000##FFFFFF
##3172121.005.923.555.92
#FFFFFF5.921.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#766700
Deuteranopia (green-blind)
#6E621E
Tritanopia (blue-blind)
#2B6E61
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #317212;
/* rgb */ color: rgb(49, 114, 18);
/* oklch */ color: oklch(49.0% 0.142 138.1);
Tailwind
colors: {
  custom: {
    50: '#719b59',
    500: '#317212',
    950: '#000000',
  },
}
SCSS
$custom: #317212;
$custom-light: #719b59;
$custom-dark: #000000;
JSON
{
  "hex": "#317212",
  "rgb": {
    "r": 49,
    "g": 114,
    "b": 18
  },
  "hsl": {
    "h": 100.625,
    "s": 72.727,
    "l": 25.882
  },
  "oklch": {
    "l": 0.49047,
    "c": 0.1416,
    "h": 138.1
  },
  "luminance": 0.12731
}

Semantic roles & 50–950 ramp

primary
#317212
secondary
#8437A9
accent
#38EFB4
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E04
muted
#7B7E79

Preview Lab

Preview with #317212

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

Preview Lab → · Contrast checker → · Palette generator →

#317212 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva