#315A16#315A16

#315A16 is a dark, moderate yellow-green. Relative luminance 0.080; OKLCH L 42.2% C 0.107 H 135.5°. Best body text is #FFFFFF at 8.06:1 contrast (WCAG AA passes).

Color values

HEX#315A16
RGBrgb(49, 90, 22)
HSLhsl(96, 61%, 22%)
HSVhsv(96, 76%, 35%)
CMYKcmyk(45.6%, 0%, 75.6%, 64.7%)
CIE-LABlab(34.03, -27.46, 33.14)
CIE-LCHlch(34.03, 43.04, 129.65°)
OKLaboklab(42.21% -0.0765 0.0751)
OKLCHoklch(42.21% 0.107 135.5)
XYZxyz(5.0675, 8.0229, 2.0405)
Luminance0.0802 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315A16 #3F165A
analogous
#535A16 #315A16 #165A1D
triadic
#315A16 #16315A #5A1631
tetradic
#315A16 #16535A #3F165A #5A1D16
square
#315A16 #16535A #3F165A #5A1D16
split-complementary
#315A16 #1D165A #5A1653
monochromatic
#0D1906 #16290A #315A16 #4C8B22 #67BC2E

Accessibility & contrast

On white

8.06
#315A16 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#315A16 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #315A16
8.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315A16#FFFFFF#000000##FFFFFF
##315A161.008.062.608.06
#FFFFFF8.061.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5D520B
Deuteranopia (green-blind)
#584F1C
Tritanopia (blue-blind)
#30564D
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #315a16;
/* rgb */ color: rgb(49, 90, 22);
/* oklch */ color: oklch(42.2% 0.107 135.5);
Tailwind
colors: {
  custom: {
    50: '#6d8958',
    500: '#315a16',
    950: '#000000',
  },
}
SCSS
$custom: #315a16;
$custom-light: #6d8958;
$custom-dark: #000000;
JSON
{
  "hex": "#315a16",
  "rgb": {
    "r": 49,
    "g": 90,
    "b": 22
  },
  "hsl": {
    "h": 96.176,
    "s": 60.714,
    "l": 21.961
  },
  "oklch": {
    "l": 0.42209,
    "c": 0.1072,
    "h": 135.5
  },
  "luminance": 0.08023
}

Semantic roles & 50–950 ramp

primary
#315A16
secondary
#6F3B91
accent
#44E4A4
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #315A16

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

Preview Lab → · Contrast checker → · Palette generator →

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