#315D11#315D11

#315D11 is a dark, moderate yellow-green. Relative luminance 0.085; OKLCH L 43.0% C 0.115 H 135.4°. Best body text is #FFFFFF at 7.77:1 contrast (WCAG AA passes).

Color values

HEX#315D11
RGBrgb(49, 93, 17)
HSLhsl(95, 69%, 22%)
HSVhsv(95, 82%, 36%)
CMYKcmyk(47.3%, 0%, 81.7%, 63.5%)
CIE-LABlab(35.05, -29.22, 36.17)
CIE-LCHlch(35.05, 46.50, 128.94°)
OKLaboklab(43.03% -0.0816 0.0806)
OKLCHoklch(43.03% 0.115 135.4)
XYZxyz(5.2820, 8.5218, 1.8968)
Luminance0.0852 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315D11 #3D115D
analogous
#575D11 #315D11 #115D17
triadic
#315D11 #11315D #5D1131
tetradic
#315D11 #11575D #3D115D #5D1711
square
#315D11 #11575D #3D115D #5D1711
split-complementary
#315D11 #17115D #5D1157
monochromatic
#0E1A05 #162908 #315D11 #4C911A #68C424

Accessibility & contrast

On white

7.77
#315D11 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#315D11 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #315D11
7.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315D11#FFFFFF#000000##FFFFFF
##315D111.007.772.707.77
#FFFFFF7.771.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#615502
Deuteranopia (green-blind)
#5B5119
Tritanopia (blue-blind)
#30594F
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #315d11;
/* rgb */ color: rgb(49, 93, 17);
/* oklch */ color: oklch(43.0% 0.115 135.4);
Tailwind
colors: {
  custom: {
    50: '#6e8b56',
    500: '#315d11',
    950: '#000000',
  },
}
SCSS
$custom: #315d11;
$custom-light: #6e8b56;
$custom-dark: #000000;
JSON
{
  "hex": "#315d11",
  "rgb": {
    "r": 49,
    "g": 93,
    "b": 17
  },
  "hsl": {
    "h": 94.737,
    "s": 69.091,
    "l": 21.569
  },
  "oklch": {
    "l": 0.43031,
    "c": 0.11475,
    "h": 135.4
  },
  "luminance": 0.08522
}

Semantic roles & 50–950 ramp

primary
#315D11
secondary
#6D3496
accent
#3CECA2
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070C03
muted
#7A7D78

Preview Lab

Preview with #315D11

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

Preview Lab → · Contrast checker → · Palette generator →

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