#317B18#317B18

#317B18 is a mid, vivid green. Relative luminance 0.149; OKLCH L 51.6% C 0.150 H 139.3°. Best body text is #FFFFFF at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#317B18
RGBrgb(49, 123, 24)
HSLhsl(105, 67%, 29%)
HSVhsv(105, 80%, 48%)
CMYKcmyk(60.2%, 0%, 80.5%, 51.8%)
CIE-LABlab(45.48, -41.26, 43.71)
CIE-LCHlch(45.48, 60.11, 133.35°)
OKLaboklab(51.63% -0.1136 0.0975)
OKLCHoklch(51.63% 0.15 139.3)
XYZxyz(8.5141, 14.8841, 3.2882)
Luminance0.1489 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#317B18 #62187B
analogous
#637B18 #317B18 #187B30
triadic
#317B18 #18317B #7B1831
tetradic
#317B18 #18637B #62187B #7B3018
square
#317B18 #18637B #62187B #7B3018
split-complementary
#317B18 #30187B #7B1863
monochromatic
#0A1A05 #1D480E #317B18 #45AE22 #5FD836

Accessibility & contrast

On white

5.28
#317B18 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #317B18
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##317B18#FFFFFF#000000##FFFFFF
##317B181.005.283.985.28
#FFFFFF5.281.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F6F00
Deuteranopia (green-blind)
#766923
Tritanopia (blue-blind)
#297769
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #317b18;
/* rgb */ color: rgb(49, 123, 24);
/* oklch */ color: oklch(51.6% 0.150 139.3);
Tailwind
colors: {
  custom: {
    50: '#73a25d',
    500: '#317b18',
    950: '#000000',
  },
}
SCSS
$custom: #317b18;
$custom-light: #73a25d;
$custom-dark: #000000;
JSON
{
  "hex": "#317b18",
  "rgb": {
    "r": 49,
    "g": 123,
    "b": 24
  },
  "hsl": {
    "h": 104.848,
    "s": 67.347,
    "l": 28.824
  },
  "oklch": {
    "l": 0.51633,
    "c": 0.14969,
    "h": 139.3
  },
  "luminance": 0.14885
}

Semantic roles & 50–950 ramp

primary
#317B18
secondary
#933FB0
accent
#3EEABF
background
#F7FAF5
surface
#EDF3E9
border
#C8CDC5
text
#090F05
muted
#7B7F79

Preview Lab

Preview with #317B18

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

Preview Lab → · Contrast checker → · Palette generator →

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