#315B14#315B14

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

Color values

HEX#315B14
RGBrgb(49, 91, 20)
HSLhsl(95, 64%, 22%)
HSVhsv(95, 78%, 36%)
CMYKcmyk(46.2%, 0%, 78%, 64.3%)
CIE-LABlab(34.37, -28.09, 34.32)
CIE-LCHlch(34.37, 44.35, 129.30°)
OKLaboklab(42.48% -0.0783 0.0773)
OKLCHoklch(42.48% 0.11 135.4)
XYZxyz(5.1339, 8.1854, 1.9711)
Luminance0.0819 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315B14 #3E145B
analogous
#555B14 #315B14 #145B1B
triadic
#315B14 #14315B #5B1431
tetradic
#315B14 #14555B #3E145B #5B1B14
square
#315B14 #14555B #3E145B #5B1B14
split-complementary
#315B14 #1B145B #5B1455
monochromatic
#0E1906 #162909 #315B14 #4C8D1F #67BF2A

Accessibility & contrast

On white

7.96
#315B14 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #315B14
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315B14#FFFFFF#000000##FFFFFF
##315B141.007.962.647.96
#FFFFFF7.961.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5F5307
Deuteranopia (green-blind)
#59501B
Tritanopia (blue-blind)
#30574D
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #315b14;
/* rgb */ color: rgb(49, 91, 20);
/* oklch */ color: oklch(42.5% 0.110 135.4);
Tailwind
colors: {
  custom: {
    50: '#6d8a57',
    500: '#315b14',
    950: '#000000',
  },
}
SCSS
$custom: #315b14;
$custom-light: #6d8a57;
$custom-dark: #000000;
JSON
{
  "hex": "#315b14",
  "rgb": {
    "r": 49,
    "g": 91,
    "b": 20
  },
  "hsl": {
    "h": 95.493,
    "s": 63.964,
    "l": 21.765
  },
  "oklch": {
    "l": 0.42479,
    "c": 0.11005,
    "h": 135.4
  },
  "luminance": 0.08186
}

Semantic roles & 50–950 ramp

primary
#315B14
secondary
#6E3893
accent
#41E7A3
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #315B14

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

Preview Lab → · Contrast checker → · Palette generator →

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