#315C11#315C11

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

Color values

HEX#315C11
RGBrgb(49, 92, 17)
HSLhsl(94, 69%, 21%)
HSVhsv(94, 82%, 36%)
CMYKcmyk(46.7%, 0%, 81.5%, 63.9%)
CIE-LABlab(34.70, -28.77, 35.83)
CIE-LCHlch(34.70, 45.95, 128.76°)
OKLaboklab(42.74% -0.0804 0.0799)
OKLCHoklch(42.74% 0.113 135.2)
XYZxyz(5.1948, 8.3474, 1.8677)
Luminance0.0835 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315C11 #3C115C
analogous
#575C11 #315C11 #115C17
triadic
#315C11 #11315C #5C1131
tetradic
#315C11 #11575C #3C115C #5C1711
square
#315C11 #11575C #3C115C #5C1711
split-complementary
#315C11 #17115C #5C1157
monochromatic
#0E1A05 #152807 #315C11 #4D901B #68C324

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##315C11#FFFFFF#000000##FFFFFF
##315C111.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)
#605402
Deuteranopia (green-blind)
#5A5019
Tritanopia (blue-blind)
#30584E
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #315c11;
/* rgb */ color: rgb(49, 92, 17);
/* oklch */ color: oklch(42.7% 0.113 135.2);
Tailwind
colors: {
  custom: {
    50: '#6e8a55',
    500: '#315c11',
    950: '#000000',
  },
}
SCSS
$custom: #315c11;
$custom-light: #6e8a55;
$custom-dark: #000000;
JSON
{
  "hex": "#315c11",
  "rgb": {
    "r": 49,
    "g": 92,
    "b": 17
  },
  "hsl": {
    "h": 94.4,
    "s": 68.807,
    "l": 21.373
  },
  "oklch": {
    "l": 0.42743,
    "c": 0.11339,
    "h": 135.2
  },
  "luminance": 0.08348
}

Semantic roles & 50–950 ramp

primary
#315C11
secondary
#6B3495
accent
#3CECA1
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070C03
muted
#7A7D78

Preview Lab

Preview with #315C11

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

Preview Lab → · Contrast checker → · Palette generator →

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