#315817#315817

#315817 is a dark, moderate yellow-green. Relative luminance 0.077; OKLCH L 41.6% C 0.104 H 135.3°. Best body text is #FFFFFF at 8.27:1 contrast (WCAG AA passes).

Color values

HEX#315817
RGBrgb(49, 88, 23)
HSLhsl(96, 59%, 22%)
HSVhsv(96, 74%, 35%)
CMYKcmyk(44.3%, 0%, 73.9%, 65.5%)
CIE-LABlab(33.34, -26.43, 31.97)
CIE-LCHlch(33.34, 41.48, 129.58°)
OKLaboklab(41.64% -0.0736 0.0728)
OKLCHoklch(41.64% 0.104 135.3)
XYZxyz(4.9109, 7.6940, 2.0368)
Luminance0.0769 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315817 #3E1758
analogous
#525817 #315817 #17581E
triadic
#315817 #173158 #581731
tetradic
#315817 #175258 #3E1758 #581E17
square
#315817 #175258 #3E1758 #581E17
split-complementary
#315817 #1E1758 #581752
monochromatic
#0E1806 #16270A #315817 #4C8924 #67B930

Accessibility & contrast

On white

8.27
#315817 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#315817 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #315817
8.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315817#FFFFFF#000000##FFFFFF
##3158171.008.272.548.27
#FFFFFF8.271.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5B500D
Deuteranopia (green-blind)
#564D1D
Tritanopia (blue-blind)
#30544B
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #315817;
/* rgb */ color: rgb(49, 88, 23);
/* oklch */ color: oklch(41.6% 0.104 135.3);
Tailwind
colors: {
  custom: {
    50: '#6d8758',
    500: '#315817',
    950: '#000000',
  },
}
SCSS
$custom: #315817;
$custom-light: #6d8758;
$custom-dark: #000000;
JSON
{
  "hex": "#315817",
  "rgb": {
    "r": 49,
    "g": 88,
    "b": 23
  },
  "hsl": {
    "h": 96,
    "s": 58.559,
    "l": 21.765
  },
  "oklch": {
    "l": 0.41644,
    "c": 0.10356,
    "h": 135.3
  },
  "luminance": 0.07694
}

Semantic roles & 50–950 ramp

primary
#315817
secondary
#6E3C8F
accent
#46E2A3
background
#F6F8F5
surface
#ECEFE9
border
#C7CAC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #315817

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

Preview Lab → · Contrast checker → · Palette generator →

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