#315B11#315B11

#315B11 is a dark, moderate yellow-green. Relative luminance 0.082; OKLCH L 42.5% C 0.112 H 135.0°. Best body text is #FFFFFF at 7.97:1 contrast (WCAG AA passes).

Color values

HEX#315B11
RGBrgb(49, 91, 17)
HSLhsl(94, 69%, 21%)
HSVhsv(94, 81%, 36%)
CMYKcmyk(46.2%, 0%, 81.3%, 64.3%)
CIE-LABlab(34.35, -28.31, 35.49)
CIE-LCHlch(34.35, 45.40, 128.58°)
OKLaboklab(42.46% -0.0792 0.0792)
OKLCHoklch(42.46% 0.112 135)
XYZxyz(5.1088, 8.1753, 1.8390)
Luminance0.0818 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315B11 #3B115B
analogous
#565B11 #315B11 #115B16
triadic
#315B11 #11315B #5B1131
tetradic
#315B11 #11565B #3B115B #5B1611
square
#315B11 #11565B #3B115B #5B1611
split-complementary
#315B11 #16115B #5B1156
monochromatic
#0E1A05 #152707 #315B11 #4D8F1B #69C224

Accessibility & contrast

On white

7.97
#315B11 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#315B11 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #315B11
7.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315B11#FFFFFF#000000##FFFFFF
##315B111.007.972.647.97
#FFFFFF7.971.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5F5302
Deuteranopia (green-blind)
#595019
Tritanopia (blue-blind)
#30574D
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #315b11;
/* rgb */ color: rgb(49, 91, 17);
/* oklch */ color: oklch(42.5% 0.112 135.0);
Tailwind
colors: {
  custom: {
    50: '#6e8a55',
    500: '#315b11',
    950: '#000000',
  },
}
SCSS
$custom: #315b11;
$custom-light: #6e8a55;
$custom-dark: #000000;
JSON
{
  "hex": "#315b11",
  "rgb": {
    "r": 49,
    "g": 91,
    "b": 17
  },
  "hsl": {
    "h": 94.054,
    "s": 68.519,
    "l": 21.176
  },
  "oklch": {
    "l": 0.42456,
    "c": 0.11201,
    "h": 135
  },
  "luminance": 0.08176
}

Semantic roles & 50–950 ramp

primary
#315B11
secondary
#6A3494
accent
#3CEBA0
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #315B11

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

Preview Lab → · Contrast checker → · Palette generator →

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