#315317#315317

#315317 is a dark, moderate yellow-green. Relative luminance 0.069; OKLCH L 40.2% C 0.096 H 134.2°. Best body text is #FFFFFF at 8.82:1 contrast (WCAG AA passes).

Color values

HEX#315317
RGBrgb(49, 83, 23)
HSLhsl(94, 57%, 21%)
HSVhsv(94, 72%, 33%)
CMYKcmyk(41%, 0%, 72.3%, 67.5%)
CIE-LABlab(31.58, -24.01, 30.12)
CIE-LCHlch(31.58, 38.52, 128.57°)
OKLaboklab(40.21% -0.067 0.0689)
OKLCHoklch(40.21% 0.096 134.2)
XYZxyz(4.5144, 6.9011, 1.9046)
Luminance0.0690 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315317 #391753
analogous
#4F5317 #315317 #17531B
triadic
#315317 #173153 #531731
tetradic
#315317 #174F53 #391753 #531B17
square
#315317 #174F53 #391753 #531B17
split-complementary
#315317 #1B1753 #53174F
monochromatic
#0E1807 #15230A #315317 #4D8324 #6AB332

Accessibility & contrast

On white

8.82
#315317 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#315317 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #315317
8.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315317#FFFFFF#000000##FFFFFF
##3153171.008.822.388.82
#FFFFFF8.821.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#564C0F
Deuteranopia (green-blind)
#52491C
Tritanopia (blue-blind)
#315047
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #315317;
/* rgb */ color: rgb(49, 83, 23);
/* oklch */ color: oklch(40.2% 0.096 134.2);
Tailwind
colors: {
  custom: {
    50: '#6c8357',
    500: '#315317',
    950: '#000000',
  },
}
SCSS
$custom: #315317;
$custom-light: #6c8357;
$custom-dark: #000000;
JSON
{
  "hex": "#315317",
  "rgb": {
    "r": 49,
    "g": 83,
    "b": 23
  },
  "hsl": {
    "h": 94,
    "s": 56.604,
    "l": 20.784
  },
  "oklch": {
    "l": 0.40208,
    "c": 0.09615,
    "h": 134.2
  },
  "luminance": 0.06901
}

Semantic roles & 50–950 ramp

primary
#315317
secondary
#683C8A
accent
#48E09E
background
#F6F8F5
surface
#ECEFE9
border
#C7CAC5
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #315317

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

Preview Lab → · Contrast checker → · Palette generator →

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