#315216#315216

#315216 is a dark, moderate yellow-green. Relative luminance 0.067; OKLCH L 39.9% C 0.095 H 133.8°. Best body text is #FFFFFF at 8.94:1 contrast (WCAG AA passes).

Color values

HEX#315216
RGBrgb(49, 82, 22)
HSLhsl(93, 58%, 20%)
HSVhsv(93, 73%, 32%)
CMYKcmyk(40.2%, 0%, 73.2%, 67.8%)
CIE-LABlab(31.22, -23.61, 30.21)
CIE-LCHlch(31.22, 38.34, 128.01°)
OKLaboklab(39.91% -0.066 0.069)
OKLCHoklch(39.91% 0.095 133.8)
XYZxyz(4.4287, 6.7453, 1.8275)
Luminance0.0674 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315216 #371652
analogous
#4F5216 #315216 #165219
triadic
#315216 #163152 #521631
tetradic
#315216 #164F52 #371652 #521916
square
#315216 #164F52 #371652 #521916
split-complementary
#315216 #191652 #52164F
monochromatic
#0E1806 #142209 #315216 #4E8223 #6BB330

Accessibility & contrast

On white

8.94
#315216 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#315216 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #315216
8.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315216#FFFFFF#000000##FFFFFF
##3152161.008.942.358.94
#FFFFFF8.941.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#554B0E
Deuteranopia (green-blind)
#51491B
Tritanopia (blue-blind)
#314F46
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #315216;
/* rgb */ color: rgb(49, 82, 22);
/* oklch */ color: oklch(39.9% 0.095 133.8);
Tailwind
colors: {
  custom: {
    50: '#6c8357',
    500: '#315216',
    950: '#000000',
  },
}
SCSS
$custom: #315216;
$custom-light: #6c8357;
$custom-dark: #000000;
JSON
{
  "hex": "#315216",
  "rgb": {
    "r": 49,
    "g": 82,
    "b": 22
  },
  "hsl": {
    "h": 93,
    "s": 57.692,
    "l": 20.392
  },
  "oklch": {
    "l": 0.3991,
    "c": 0.09548,
    "h": 133.8
  },
  "luminance": 0.06745
}

Semantic roles & 50–950 ramp

primary
#315216
secondary
#663A89
accent
#47E19C
background
#F6F8F5
surface
#ECEFE9
border
#C7CAC5
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #315216

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

Preview Lab → · Contrast checker → · Palette generator →

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