#315C0D#315C0D

#315C0D is a dark, moderate yellow-green. Relative luminance 0.083; OKLCH L 42.7% C 0.116 H 134.7°. Best body text is #FFFFFF at 7.87:1 contrast (WCAG AA passes).

Color values

HEX#315C0D
RGBrgb(49, 92, 13)
HSLhsl(93, 75%, 21%)
HSVhsv(93, 86%, 36%)
CMYKcmyk(46.7%, 0%, 85.9%, 63.9%)
CIE-LABlab(34.67, -29.02, 37.21)
CIE-LCHlch(34.67, 47.19, 127.95°)
OKLaboklab(42.72% -0.0814 0.0822)
OKLCHoklch(42.72% 0.116 134.7)
XYZxyz(5.1663, 8.3360, 1.7175)
Luminance0.0834 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315C0D #380D5C
analogous
#585C0D #315C0D #0D5C10
triadic
#315C0D #0D315C #5C0D31
tetradic
#315C0D #0D585C #380D5C #5C100D
square
#315C0D #0D585C #380D5C #5C100D
split-complementary
#315C0D #100D5C #5C0D58
monochromatic
#0E1B04 #142605 #315C0D #4E9215 #6AC71C

Accessibility & contrast

On white

7.87
#315C0D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#315C0D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #315C0D
7.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315C0D#FFFFFF#000000##FFFFFF
##315C0D1.007.872.677.87
#FFFFFF7.871.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#605400
Deuteranopia (green-blind)
#5A5016
Tritanopia (blue-blind)
#30584E
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #315c0d;
/* rgb */ color: rgb(49, 92, 13);
/* oklch */ color: oklch(42.7% 0.116 134.7);
Tailwind
colors: {
  custom: {
    50: '#6e8a54',
    500: '#315c0d',
    950: '#000000',
  },
}
SCSS
$custom: #315c0d;
$custom-light: #6e8a54;
$custom-dark: #000000;
JSON
{
  "hex": "#315c0d",
  "rgb": {
    "r": 49,
    "g": 92,
    "b": 13
  },
  "hsl": {
    "h": 92.658,
    "s": 75.238,
    "l": 20.588
  },
  "oklch": {
    "l": 0.42717,
    "c": 0.11563,
    "h": 134.7
  },
  "luminance": 0.08336
}

Semantic roles & 50–950 ramp

primary
#315C0D
secondary
#672F96
accent
#36F29C
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070C03
muted
#7A7D78

Preview Lab

Preview with #315C0D

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

Preview Lab → · Contrast checker → · Palette generator →

#315C0D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva