#315F17#315F17

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

Color values

HEX#315F17
RGBrgb(49, 95, 23)
HSLhsl(98, 61%, 23%)
HSVhsv(98, 76%, 37%)
CMYKcmyk(48.4%, 0%, 75.8%, 62.7%)
CIE-LABlab(35.79, -29.68, 34.51)
CIE-LCHlch(35.79, 45.52, 130.70°)
OKLaboklab(43.65% -0.0824 0.0781)
OKLCHoklch(43.65% 0.114 136.5)
XYZxyz(5.5133, 8.8989, 2.2376)
Luminance0.0890 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315F17 #45175F
analogous
#555F17 #315F17 #175F21
triadic
#315F17 #17315F #5F1731
tetradic
#315F17 #17555F #45175F #5F2117
square
#315F17 #17555F #45175F #5F2117
split-complementary
#315F17 #21175F #5F1755
monochromatic
#0D1906 #182E0B #315F17 #4A9023 #64C22F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##315F17#FFFFFF#000000##FFFFFF
##315F171.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)
#62570B
Deuteranopia (green-blind)
#5C531E
Tritanopia (blue-blind)
#2F5B51
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #315f17;
/* rgb */ color: rgb(49, 95, 23);
/* oklch */ color: oklch(43.7% 0.114 136.5);
Tailwind
colors: {
  custom: {
    50: '#6e8d59',
    500: '#315f17',
    950: '#000000',
  },
}
SCSS
$custom: #315f17;
$custom-light: #6e8d59;
$custom-dark: #000000;
JSON
{
  "hex": "#315f17",
  "rgb": {
    "r": 49,
    "g": 95,
    "b": 23
  },
  "hsl": {
    "h": 98.333,
    "s": 61.017,
    "l": 23.137
  },
  "oklch": {
    "l": 0.43653,
    "c": 0.11357,
    "h": 136.5
  },
  "luminance": 0.08899
}

Semantic roles & 50–950 ramp

primary
#315F17
secondary
#753C96
accent
#44E4AA
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070C04
muted
#7A7D79

Preview Lab

Preview with #315F17

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

Preview Lab → · Contrast checker → · Palette generator →

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