#315F18#315F18

#315F18 is a dark, moderate yellow-green. Relative luminance 0.089; OKLCH L 43.7% C 0.113 H 136.7°. Best body text is #FFFFFF at 7.55:1 contrast (WCAG AA passes).

Color values

HEX#315F18
RGBrgb(49, 95, 24)
HSLhsl(99, 60%, 23%)
HSVhsv(99, 75%, 37%)
CMYKcmyk(48.4%, 0%, 74.7%, 62.7%)
CIE-LABlab(35.80, -29.59, 34.09)
CIE-LCHlch(35.80, 45.14, 130.96°)
OKLaboklab(43.66% -0.0821 0.0774)
OKLCHoklch(43.66% 0.113 136.7)
XYZxyz(5.5235, 8.9030, 2.2914)
Luminance0.0890 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315F18 #46185F
analogous
#545F18 #315F18 #185F22
triadic
#315F18 #18315F #5F1831
tetradic
#315F18 #18545F #46185F #5F2218
square
#315F18 #18545F #46185F #5F2218
split-complementary
#315F18 #22185F #5F1854
monochromatic
#0D1806 #182E0C #315F18 #4A9024 #63C131

Accessibility & contrast

On white

7.55
#315F18 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#315F18 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #315F18
7.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315F18#FFFFFF#000000##FFFFFF
##315F181.007.552.787.55
#FFFFFF7.551.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#62570D
Deuteranopia (green-blind)
#5C531F
Tritanopia (blue-blind)
#2F5B51
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #315f18;
/* rgb */ color: rgb(49, 95, 24);
/* oklch */ color: oklch(43.7% 0.113 136.7);
Tailwind
colors: {
  custom: {
    50: '#6e8d5a',
    500: '#315f18',
    950: '#000000',
  },
}
SCSS
$custom: #315f18;
$custom-light: #6e8d5a;
$custom-dark: #000000;
JSON
{
  "hex": "#315f18",
  "rgb": {
    "r": 49,
    "g": 95,
    "b": 24
  },
  "hsl": {
    "h": 98.873,
    "s": 59.664,
    "l": 23.333
  },
  "oklch": {
    "l": 0.43662,
    "c": 0.11284,
    "h": 136.7
  },
  "luminance": 0.08903
}

Semantic roles & 50–950 ramp

primary
#315F18
secondary
#763D95
accent
#45E3AB
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070C04
muted
#7A7D79

Preview Lab

Preview with #315F18

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

Preview Lab → · Contrast checker → · Palette generator →

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