#315E18#315E18

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

Color values

HEX#315E18
RGBrgb(49, 94, 24)
HSLhsl(99, 59%, 23%)
HSVhsv(99, 74%, 37%)
CMYKcmyk(47.9%, 0%, 74.5%, 63.1%)
CIE-LABlab(35.45, -29.14, 33.73)
CIE-LCHlch(35.45, 44.57, 130.83°)
OKLaboklab(43.38% -0.0809 0.0767)
OKLCHoklch(43.38% 0.111 136.5)
XYZxyz(5.4340, 8.7240, 2.2615)
Luminance0.0872 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315E18 #45185E
analogous
#545E18 #315E18 #185E22
triadic
#315E18 #18315E #5E1831
tetradic
#315E18 #18545E #45185E #5E2218
square
#315E18 #18545E #45185E #5E2218
split-complementary
#315E18 #22185E #5E1854
monochromatic
#0D1806 #182D0C #315E18 #4A8F24 #64C031

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##315E18#FFFFFF#000000##FFFFFF
##315E181.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)
#61560D
Deuteranopia (green-blind)
#5B521E
Tritanopia (blue-blind)
#2F5A50
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #315e18;
/* rgb */ color: rgb(49, 94, 24);
/* oklch */ color: oklch(43.4% 0.111 136.5);
Tailwind
colors: {
  custom: {
    50: '#6e8c59',
    500: '#315e18',
    950: '#000000',
  },
}
SCSS
$custom: #315e18;
$custom-light: #6e8c59;
$custom-dark: #000000;
JSON
{
  "hex": "#315e18",
  "rgb": {
    "r": 49,
    "g": 94,
    "b": 24
  },
  "hsl": {
    "h": 98.571,
    "s": 59.322,
    "l": 23.137
  },
  "oklch": {
    "l": 0.43376,
    "c": 0.11142,
    "h": 136.5
  },
  "luminance": 0.08724
}

Semantic roles & 50–950 ramp

primary
#315E18
secondary
#753D94
accent
#45E3AA
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070C04
muted
#7A7D79

Preview Lab

Preview with #315E18

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

Preview Lab → · Contrast checker → · Palette generator →

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