#315D15#315D15

#315D15 is a dark, moderate yellow-green. Relative luminance 0.085; OKLCH L 43.1% C 0.112 H 135.9°. Best body text is #FFFFFF at 7.76:1 contrast (WCAG AA passes).

Color values

HEX#315D15
RGBrgb(49, 93, 21)
HSLhsl(97, 63%, 22%)
HSVhsv(97, 77%, 36%)
CMYKcmyk(47.3%, 0%, 77.4%, 63.5%)
CIE-LABlab(35.07, -28.93, 34.62)
CIE-LCHlch(35.07, 45.12, 129.88°)
OKLaboklab(43.06% -0.0805 0.0781)
OKLCHoklch(43.06% 0.112 135.9)
XYZxyz(5.3162, 8.5355, 2.0767)
Luminance0.0854 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315D15 #41155D
analogous
#555D15 #315D15 #155D1D
triadic
#315D15 #15315D #5D1531
tetradic
#315D15 #15555D #41155D #5D1D15
square
#315D15 #15555D #41155D #5D1D15
split-complementary
#315D15 #1D155D #5D1555
monochromatic
#0D1906 #172B0A #315D15 #4B8F20 #66C12C

Accessibility & contrast

On white

7.76
#315D15 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#315D15 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #315D15
7.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315D15#FFFFFF#000000##FFFFFF
##315D151.007.762.717.76
#FFFFFF7.761.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#615508
Deuteranopia (green-blind)
#5B511C
Tritanopia (blue-blind)
#2F594F
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #315d15;
/* rgb */ color: rgb(49, 93, 21);
/* oklch */ color: oklch(43.1% 0.112 135.9);
Tailwind
colors: {
  custom: {
    50: '#6e8b58',
    500: '#315d15',
    950: '#000000',
  },
}
SCSS
$custom: #315d15;
$custom-light: #6e8b58;
$custom-dark: #000000;
JSON
{
  "hex": "#315d15",
  "rgb": {
    "r": 49,
    "g": 93,
    "b": 21
  },
  "hsl": {
    "h": 96.667,
    "s": 63.158,
    "l": 22.353
  },
  "oklch": {
    "l": 0.43062,
    "c": 0.11217,
    "h": 135.9
  },
  "luminance": 0.08536
}

Semantic roles & 50–950 ramp

primary
#315D15
secondary
#713994
accent
#42E6A6
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070C03
muted
#7A7D78

Preview Lab

Preview with #315D15

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

Preview Lab → · Contrast checker → · Palette generator →

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