#315E17#315E17

#315E17 is a dark, moderate yellow-green. Relative luminance 0.087; OKLCH L 43.4% C 0.112 H 136.4°. Best body text is #FFFFFF at 7.65:1 contrast (WCAG AA passes).

Color values

HEX#315E17
RGBrgb(49, 94, 23)
HSLhsl(98, 61%, 23%)
HSVhsv(98, 76%, 37%)
CMYKcmyk(47.9%, 0%, 75.5%, 63.1%)
CIE-LABlab(35.44, -29.22, 34.15)
CIE-LCHlch(35.44, 44.95, 130.55°)
OKLaboklab(43.37% -0.0812 0.0774)
OKLCHoklch(43.37% 0.112 136.4)
XYZxyz(5.4238, 8.7199, 2.2078)
Luminance0.0872 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315E17 #44175E
analogous
#545E17 #315E17 #175E20
triadic
#315E17 #17315E #5E1731
tetradic
#315E17 #17545E #44175E #5E2017
square
#315E17 #17545E #44175E #5E2017
split-complementary
#315E17 #20175E #5E1754
monochromatic
#0D1906 #172D0B #315E17 #4B8F23 #64C02F

Accessibility & contrast

On white

7.65
#315E17 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#315E17 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #315E17
7.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315E17#FFFFFF#000000##FFFFFF
##315E171.007.652.747.65
#FFFFFF7.651.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#61560B
Deuteranopia (green-blind)
#5B521E
Tritanopia (blue-blind)
#2F5A50
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #315e17;
/* rgb */ color: rgb(49, 94, 23);
/* oklch */ color: oklch(43.4% 0.112 136.4);
Tailwind
colors: {
  custom: {
    50: '#6e8c59',
    500: '#315e17',
    950: '#000000',
  },
}
SCSS
$custom: #315e17;
$custom-light: #6e8c59;
$custom-dark: #000000;
JSON
{
  "hex": "#315e17",
  "rgb": {
    "r": 49,
    "g": 94,
    "b": 23
  },
  "hsl": {
    "h": 98.028,
    "s": 60.684,
    "l": 22.941
  },
  "oklch": {
    "l": 0.43366,
    "c": 0.11216,
    "h": 136.4
  },
  "luminance": 0.0872
}

Semantic roles & 50–950 ramp

primary
#315E17
secondary
#743C95
accent
#44E4A9
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070C04
muted
#7A7D79

Preview Lab

Preview with #315E17

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

Preview Lab → · Contrast checker → · Palette generator →

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