#315215#315215

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

Color values

HEX#315215
RGBrgb(49, 82, 21)
HSLhsl(92, 59%, 20%)
HSVhsv(92, 74%, 32%)
CMYKcmyk(40.2%, 0%, 74.4%, 67.8%)
CIE-LABlab(31.21, -23.70, 30.66)
CIE-LCHlch(31.21, 38.75, 127.71°)
OKLaboklab(39.9% -0.0664 0.0698)
OKLCHoklch(39.9% 0.096 133.6)
XYZxyz(4.4192, 6.7415, 1.7777)
Luminance0.0674 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315215 #361552
analogous
#4F5215 #315215 #155218
triadic
#315215 #153152 #521531
tetradic
#315215 #154F52 #361552 #521815
square
#315215 #154F52 #361552 #521815
split-complementary
#315215 #181552 #52154F
monochromatic
#0F1806 #142109 #315215 #4E8321 #6BB32E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##315215#FFFFFF#000000##FFFFFF
##3152151.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)
#564B0C
Deuteranopia (green-blind)
#51481A
Tritanopia (blue-blind)
#314F46
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #315215;
/* rgb */ color: rgb(49, 82, 21);
/* oklch */ color: oklch(39.9% 0.096 133.6);
Tailwind
colors: {
  custom: {
    50: '#6c8356',
    500: '#315215',
    950: '#000000',
  },
}
SCSS
$custom: #315215;
$custom-light: #6c8356;
$custom-dark: #000000;
JSON
{
  "hex": "#315215",
  "rgb": {
    "r": 49,
    "g": 82,
    "b": 21
  },
  "hsl": {
    "h": 92.459,
    "s": 59.223,
    "l": 20.196
  },
  "oklch": {
    "l": 0.399,
    "c": 0.0963,
    "h": 133.6
  },
  "luminance": 0.06742
}

Semantic roles & 50–950 ramp

primary
#315215
secondary
#65398A
accent
#45E29A
background
#F6F8F5
surface
#ECEFE9
border
#C7CAC5
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #315215

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

Preview Lab → · Contrast checker → · Palette generator →

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