#315C0F#315C0F

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

Color values

HEX#315C0F
RGBrgb(49, 92, 15)
HSLhsl(94, 72%, 21%)
HSVhsv(94, 84%, 36%)
CMYKcmyk(46.7%, 0%, 83.7%, 63.9%)
CIE-LABlab(34.68, -28.90, 36.54)
CIE-LCHlch(34.68, 46.59, 128.34°)
OKLaboklab(42.73% -0.0809 0.0811)
OKLCHoklch(42.73% 0.115 134.9)
XYZxyz(5.1799, 8.3415, 1.7890)
Luminance0.0834 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315C0F #3A0F5C
analogous
#575C0F #315C0F #0F5C13
triadic
#315C0F #0F315C #5C0F31
tetradic
#315C0F #0F575C #3A0F5C #5C130F
square
#315C0F #0F575C #3A0F5C #5C130F
split-complementary
#315C0F #130F5C #5C0F57
monochromatic
#0E1A04 #152706 #315C0F #4D9118 #69C520

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##315C0F#FFFFFF#000000##FFFFFF
##315C0F1.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)
#5A5018
Tritanopia (blue-blind)
#30584E
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #315c0f;
/* rgb */ color: rgb(49, 92, 15);
/* oklch */ color: oklch(42.7% 0.115 134.9);
Tailwind
colors: {
  custom: {
    50: '#6e8a55',
    500: '#315c0f',
    950: '#000000',
  },
}
SCSS
$custom: #315c0f;
$custom-light: #6e8a55;
$custom-dark: #000000;
JSON
{
  "hex": "#315c0f",
  "rgb": {
    "r": 49,
    "g": 92,
    "b": 15
  },
  "hsl": {
    "h": 93.506,
    "s": 71.963,
    "l": 20.98
  },
  "oklch": {
    "l": 0.42729,
    "c": 0.11456,
    "h": 134.9
  },
  "luminance": 0.08342
}

Semantic roles & 50–950 ramp

primary
#315C0F
secondary
#693195
accent
#39EF9F
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070C03
muted
#7A7D78

Preview Lab

Preview with #315C0F

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

Preview Lab → · Contrast checker → · Palette generator →

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