#315917#315917

#315917 is a dark, moderate yellow-green. Relative luminance 0.079; OKLCH L 41.9% C 0.105 H 135.5°. Best body text is #FFFFFF at 8.16:1 contrast (WCAG AA passes).

Color values

HEX#315917
RGBrgb(49, 89, 23)
HSLhsl(96, 59%, 22%)
HSVhsv(96, 74%, 35%)
CMYKcmyk(44.9%, 0%, 74.2%, 65.1%)
CIE-LABlab(33.69, -26.91, 32.34)
CIE-LCHlch(33.69, 42.07, 129.76°)
OKLaboklab(41.93% -0.0749 0.0736)
OKLCHoklch(41.93% 0.105 135.5)
XYZxyz(4.9935, 7.8593, 2.0643)
Luminance0.0786 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315917 #3F1759
analogous
#525917 #315917 #17591E
triadic
#315917 #173159 #591731
tetradic
#315917 #175259 #3F1759 #591E17
square
#315917 #175259 #3F1759 #591E17
split-complementary
#315917 #1E1759 #591752
monochromatic
#0D1806 #16280A #315917 #4C8A24 #67BA30

Accessibility & contrast

On white

8.16
#315917 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#315917 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #315917
8.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315917#FFFFFF#000000##FFFFFF
##3159171.008.162.578.16
#FFFFFF8.161.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5C510D
Deuteranopia (green-blind)
#574E1D
Tritanopia (blue-blind)
#30554C
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #315917;
/* rgb */ color: rgb(49, 89, 23);
/* oklch */ color: oklch(41.9% 0.105 135.5);
Tailwind
colors: {
  custom: {
    50: '#6d8858',
    500: '#315917',
    950: '#000000',
  },
}
SCSS
$custom: #315917;
$custom-light: #6d8858;
$custom-dark: #000000;
JSON
{
  "hex": "#315917",
  "rgb": {
    "r": 49,
    "g": 89,
    "b": 23
  },
  "hsl": {
    "h": 96.364,
    "s": 58.929,
    "l": 21.961
  },
  "oklch": {
    "l": 0.41931,
    "c": 0.10501,
    "h": 135.5
  },
  "luminance": 0.0786
}

Semantic roles & 50–950 ramp

primary
#315917
secondary
#6F3C90
accent
#46E2A4
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #315917

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

Preview Lab → · Contrast checker → · Palette generator →

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