#315B16#315B16

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

Color values

HEX#315B16
RGBrgb(49, 91, 22)
HSLhsl(97, 61%, 22%)
HSVhsv(97, 76%, 36%)
CMYKcmyk(46.2%, 0%, 75.8%, 64.3%)
CIE-LABlab(34.38, -27.93, 33.50)
CIE-LCHlch(34.38, 43.61, 129.82°)
OKLaboklab(42.5% -0.0778 0.0759)
OKLCHoklch(42.5% 0.109 135.7)
XYZxyz(5.1524, 8.1928, 2.0688)
Luminance0.0819 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315B16 #40165B
analogous
#545B16 #315B16 #165B1E
triadic
#315B16 #16315B #5B1631
tetradic
#315B16 #16545B #40165B #5B1E16
square
#315B16 #16545B #40165B #5B1E16
split-complementary
#315B16 #1E165B #5B1654
monochromatic
#0D1906 #162A0A #315B16 #4C8C22 #66BE2E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##315B16#FFFFFF#000000##FFFFFF
##315B161.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)
#5E530B
Deuteranopia (green-blind)
#59501C
Tritanopia (blue-blind)
#30574D
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #315b16;
/* rgb */ color: rgb(49, 91, 22);
/* oklch */ color: oklch(42.5% 0.109 135.7);
Tailwind
colors: {
  custom: {
    50: '#6d8a58',
    500: '#315b16',
    950: '#000000',
  },
}
SCSS
$custom: #315b16;
$custom-light: #6d8a58;
$custom-dark: #000000;
JSON
{
  "hex": "#315b16",
  "rgb": {
    "r": 49,
    "g": 91,
    "b": 22
  },
  "hsl": {
    "h": 96.522,
    "s": 61.062,
    "l": 22.157
  },
  "oklch": {
    "l": 0.42496,
    "c": 0.10864,
    "h": 135.7
  },
  "luminance": 0.08193
}

Semantic roles & 50–950 ramp

primary
#315B16
secondary
#703B92
accent
#44E4A5
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #315B16

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

Preview Lab → · Contrast checker → · Palette generator →

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