#315716#315716

#315716 is a dark, moderate yellow-green. Relative luminance 0.075; OKLCH L 41.3% C 0.103 H 134.9°. Best body text is #FFFFFF at 8.38:1 contrast (WCAG AA passes).

Color values

HEX#315716
RGBrgb(49, 87, 22)
HSLhsl(95, 60%, 21%)
HSVhsv(95, 75%, 34%)
CMYKcmyk(43.7%, 0%, 74.7%, 65.9%)
CIE-LABlab(32.98, -26.05, 32.05)
CIE-LCHlch(32.98, 41.30, 129.10°)
OKLaboklab(41.35% -0.0727 0.0728)
OKLCHoklch(41.35% 0.103 134.9)
XYZxyz(4.8195, 7.5270, 1.9578)
Luminance0.0753 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315716 #3C1657
analogous
#525716 #315716 #16571C
triadic
#315716 #163157 #571631
tetradic
#315716 #165257 #3C1657 #571C16
square
#315716 #165257 #3C1657 #571C16
split-complementary
#315716 #1C1657 #571652
monochromatic
#0E1806 #15260A #315716 #4D8822 #68B92F

Accessibility & contrast

On white

8.38
#315716 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#315716 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #315716
8.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315716#FFFFFF#000000##FFFFFF
##3157161.008.382.518.38
#FFFFFF8.381.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5A500C
Deuteranopia (green-blind)
#554C1C
Tritanopia (blue-blind)
#30534A
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #315716;
/* rgb */ color: rgb(49, 87, 22);
/* oklch */ color: oklch(41.3% 0.103 134.9);
Tailwind
colors: {
  custom: {
    50: '#6d8757',
    500: '#315716',
    950: '#000000',
  },
}
SCSS
$custom: #315716;
$custom-light: #6d8757;
$custom-dark: #000000;
JSON
{
  "hex": "#315716",
  "rgb": {
    "r": 49,
    "g": 87,
    "b": 22
  },
  "hsl": {
    "h": 95.077,
    "s": 59.633,
    "l": 21.373
  },
  "oklch": {
    "l": 0.41347,
    "c": 0.10287,
    "h": 134.9
  },
  "luminance": 0.07527
}

Semantic roles & 50–950 ramp

primary
#315716
secondary
#6B3A8E
accent
#45E3A1
background
#F6F8F5
surface
#ECEFE9
border
#C7CAC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #315716

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

Preview Lab → · Contrast checker → · Palette generator →

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