#315B13#315B13

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

Color values

HEX#315B13
RGBrgb(49, 91, 19)
HSLhsl(95, 65%, 22%)
HSVhsv(95, 79%, 36%)
CMYKcmyk(46.2%, 0%, 79.1%, 64.3%)
CIE-LABlab(34.36, -28.17, 34.72)
CIE-LCHlch(34.36, 44.71, 129.05°)
OKLaboklab(42.47% -0.0786 0.078)
OKLCHoklch(42.47% 0.111 135.3)
XYZxyz(5.1251, 8.1819, 1.9252)
Luminance0.0818 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315B13 #3D135B
analogous
#555B13 #315B13 #135B19
triadic
#315B13 #13315B #5B1331
tetradic
#315B13 #13555B #3D135B #5B1913
square
#315B13 #13555B #3D135B #5B1913
split-complementary
#315B13 #19135B #5B1355
monochromatic
#0E1905 #162808 #315B13 #4C8E1E #68C028

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##315B13#FFFFFF#000000##FFFFFF
##315B131.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)
#5F5306
Deuteranopia (green-blind)
#59501A
Tritanopia (blue-blind)
#30574D
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #315b13;
/* rgb */ color: rgb(49, 91, 19);
/* oklch */ color: oklch(42.5% 0.111 135.3);
Tailwind
colors: {
  custom: {
    50: '#6e8a56',
    500: '#315b13',
    950: '#000000',
  },
}
SCSS
$custom: #315b13;
$custom-light: #6e8a56;
$custom-dark: #000000;
JSON
{
  "hex": "#315b13",
  "rgb": {
    "r": 49,
    "g": 91,
    "b": 19
  },
  "hsl": {
    "h": 95,
    "s": 65.455,
    "l": 21.569
  },
  "oklch": {
    "l": 0.42471,
    "c": 0.11073,
    "h": 135.3
  },
  "luminance": 0.08182
}

Semantic roles & 50–950 ramp

primary
#315B13
secondary
#6D3793
accent
#3FE8A2
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #315B13

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

Preview Lab → · Contrast checker → · Palette generator →

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