#315B0E#315B0E

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

Color values

HEX#315B0E
RGBrgb(49, 91, 14)
HSLhsl(93, 73%, 21%)
HSVhsv(93, 85%, 36%)
CMYKcmyk(46.2%, 0%, 84.6%, 64.3%)
CIE-LABlab(34.33, -28.50, 36.55)
CIE-LCHlch(34.33, 46.35, 127.94°)
OKLaboklab(42.44% -0.0799 0.0809)
OKLCHoklch(42.44% 0.114 134.6)
XYZxyz(5.0869, 8.1666, 1.7236)
Luminance0.0817 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315B0E #380E5B
analogous
#575B0E #315B0E #0E5B11
triadic
#315B0E #0E315B #5B0E31
tetradic
#315B0E #0E575B #380E5B #5B110E
square
#315B0E #0E575B #380E5B #5B110E
split-complementary
#315B0E #110E5B #5B0E57
monochromatic
#0E1B04 #142606 #315B0E #4E9016 #6AC51E

Accessibility & contrast

On white

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

On black

2.63
#315B0E on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##315B0E#FFFFFF#000000##FFFFFF
##315B0E1.007.972.637.97
#FFFFFF7.971.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5F5300
Deuteranopia (green-blind)
#594F17
Tritanopia (blue-blind)
#30574D
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #315b0e;
/* rgb */ color: rgb(49, 91, 14);
/* oklch */ color: oklch(42.4% 0.114 134.6);
Tailwind
colors: {
  custom: {
    50: '#6e8a54',
    500: '#315b0e',
    950: '#000000',
  },
}
SCSS
$custom: #315b0e;
$custom-light: #6e8a54;
$custom-dark: #000000;
JSON
{
  "hex": "#315b0e",
  "rgb": {
    "r": 49,
    "g": 91,
    "b": 14
  },
  "hsl": {
    "h": 92.727,
    "s": 73.333,
    "l": 20.588
  },
  "oklch": {
    "l": 0.42435,
    "c": 0.11375,
    "h": 134.6
  },
  "luminance": 0.08167
}

Semantic roles & 50–950 ramp

primary
#315B0E
secondary
#673095
accent
#38F09C
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #315B0E

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

Preview Lab → · Contrast checker → · Palette generator →

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