#315816#315816

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

Color values

HEX#315816
RGBrgb(49, 88, 22)
HSLhsl(95, 60%, 22%)
HSVhsv(95, 75%, 35%)
CMYKcmyk(44.3%, 0%, 75%, 65.5%)
CIE-LABlab(33.33, -26.52, 32.41)
CIE-LCHlch(33.33, 41.88, 129.29°)
OKLaboklab(41.63% -0.0739 0.0736)
OKLCHoklch(41.63% 0.104 135.1)
XYZxyz(4.9011, 7.6901, 1.9850)
Luminance0.0769 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315816 #3D1658
analogous
#525816 #315816 #16581C
triadic
#315816 #163158 #581631
tetradic
#315816 #165258 #3D1658 #581C16
square
#315816 #165258 #3D1658 #581C16
split-complementary
#315816 #1C1658 #581652
monochromatic
#0E1806 #16270A #315816 #4C8922 #68BA2E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##315816#FFFFFF#000000##FFFFFF
##3158161.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)
#5B500C
Deuteranopia (green-blind)
#564D1C
Tritanopia (blue-blind)
#30544B
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #315816;
/* rgb */ color: rgb(49, 88, 22);
/* oklch */ color: oklch(41.6% 0.104 135.1);
Tailwind
colors: {
  custom: {
    50: '#6d8758',
    500: '#315816',
    950: '#000000',
  },
}
SCSS
$custom: #315816;
$custom-light: #6d8758;
$custom-dark: #000000;
JSON
{
  "hex": "#315816",
  "rgb": {
    "r": 49,
    "g": 88,
    "b": 22
  },
  "hsl": {
    "h": 95.455,
    "s": 60,
    "l": 21.569
  },
  "oklch": {
    "l": 0.41634,
    "c": 0.10433,
    "h": 135.1
  },
  "luminance": 0.0769
}

Semantic roles & 50–950 ramp

primary
#315816
secondary
#6D3B8F
accent
#45E3A2
background
#F6F8F5
surface
#ECEFE9
border
#C7CAC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #315816

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

Preview Lab → · Contrast checker → · Palette generator →

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