#315217#315217

#315217 is a dark, moderate yellow-green. Relative luminance 0.067; OKLCH L 39.9% C 0.095 H 134.0°. Best body text is #FFFFFF at 8.94:1 contrast (WCAG AA passes).

Color values

HEX#315217
RGBrgb(49, 82, 23)
HSLhsl(94, 56%, 21%)
HSVhsv(94, 72%, 32%)
CMYKcmyk(40.2%, 0%, 72%, 67.8%)
CIE-LABlab(31.23, -23.52, 29.74)
CIE-LCHlch(31.23, 37.92, 128.34°)
OKLaboklab(39.92% -0.0657 0.0681)
OKLCHoklch(39.92% 0.095 134)
XYZxyz(4.4385, 6.7492, 1.8793)
Luminance0.0675 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315217 #381752
analogous
#4E5217 #315217 #17521A
triadic
#315217 #173152 #521731
tetradic
#315217 #174E52 #381752 #521A17
square
#315217 #174E52 #381752 #521A17
split-complementary
#315217 #1A1752 #52174E
monochromatic
#0E1807 #14220A #315217 #4E8224 #6AB232

Accessibility & contrast

On white

8.94
#315217 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#315217 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #315217
8.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315217#FFFFFF#000000##FFFFFF
##3152171.008.942.358.94
#FFFFFF8.941.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#554B0F
Deuteranopia (green-blind)
#51491C
Tritanopia (blue-blind)
#314F46
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #315217;
/* rgb */ color: rgb(49, 82, 23);
/* oklch */ color: oklch(39.9% 0.095 134.0);
Tailwind
colors: {
  custom: {
    50: '#6c8357',
    500: '#315217',
    950: '#000000',
  },
}
SCSS
$custom: #315217;
$custom-light: #6c8357;
$custom-dark: #000000;
JSON
{
  "hex": "#315217",
  "rgb": {
    "r": 49,
    "g": 82,
    "b": 23
  },
  "hsl": {
    "h": 93.559,
    "s": 56.19,
    "l": 20.588
  },
  "oklch": {
    "l": 0.39921,
    "c": 0.09465,
    "h": 134
  },
  "luminance": 0.06749
}

Semantic roles & 50–950 ramp

primary
#315217
secondary
#673C89
accent
#48DF9D
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #315217

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

Preview Lab → · Contrast checker → · Palette generator →

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