#315A13#315A13

#315A13 is a dark, moderate yellow-green. Relative luminance 0.080; OKLCH L 42.2% C 0.109 H 135.1°. Best body text is #FFFFFF at 8.07:1 contrast (WCAG AA passes).

Color values

HEX#315A13
RGBrgb(49, 90, 19)
HSLhsl(95, 65%, 21%)
HSVhsv(95, 79%, 35%)
CMYKcmyk(45.6%, 0%, 78.9%, 64.7%)
CIE-LABlab(34.01, -27.70, 34.37)
CIE-LCHlch(34.01, 44.15, 128.87°)
OKLaboklab(42.18% -0.0774 0.0772)
OKLCHoklch(42.18% 0.109 135.1)
XYZxyz(5.0402, 8.0120, 1.8969)
Luminance0.0801 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315A13 #3C135A
analogous
#555A13 #315A13 #135A19
triadic
#315A13 #13315A #5A1331
tetradic
#315A13 #13555A #3C135A #5A1913
square
#315A13 #13555A #3C135A #5A1913
split-complementary
#315A13 #19135A #5A1355
monochromatic
#0E1905 #152708 #315A13 #4D8D1E #68BF28

Accessibility & contrast

On white

8.07
#315A13 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#315A13 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #315A13
8.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315A13#FFFFFF#000000##FFFFFF
##315A131.008.072.608.07
#FFFFFF8.071.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5E5206
Deuteranopia (green-blind)
#584F1A
Tritanopia (blue-blind)
#30564C
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #315a13;
/* rgb */ color: rgb(49, 90, 19);
/* oklch */ color: oklch(42.2% 0.109 135.1);
Tailwind
colors: {
  custom: {
    50: '#6d8956',
    500: '#315a13',
    950: '#000000',
  },
}
SCSS
$custom: #315a13;
$custom-light: #6d8956;
$custom-dark: #000000;
JSON
{
  "hex": "#315a13",
  "rgb": {
    "r": 49,
    "g": 90,
    "b": 19
  },
  "hsl": {
    "h": 94.648,
    "s": 65.138,
    "l": 21.373
  },
  "oklch": {
    "l": 0.42183,
    "c": 0.10933,
    "h": 135.1
  },
  "luminance": 0.08012
}

Semantic roles & 50–950 ramp

primary
#315A13
secondary
#6B3792
accent
#40E8A1
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #315A13

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

Preview Lab → · Contrast checker → · Palette generator →

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