#315918#315918

#315918 is a dark, moderate yellow-green. Relative luminance 0.079; OKLCH L 41.9% C 0.104 H 135.7°. Best body text is #FFFFFF at 8.16:1 contrast (WCAG AA passes).

Color values

HEX#315918
RGBrgb(49, 89, 24)
HSLhsl(97, 58%, 22%)
HSVhsv(97, 73%, 35%)
CMYKcmyk(44.9%, 0%, 73%, 65.1%)
CIE-LABlab(33.70, -26.82, 31.90)
CIE-LCHlch(33.70, 41.67, 130.06°)
OKLaboklab(41.94% -0.0746 0.0728)
OKLCHoklch(41.94% 0.104 135.7)
XYZxyz(5.0037, 7.8634, 2.1181)
Luminance0.0786 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315918 #401859
analogous
#525918 #315918 #185920
triadic
#315918 #183159 #591831
tetradic
#315918 #185259 #401859 #592018
square
#315918 #185259 #401859 #592018
split-complementary
#315918 #201859 #591852
monochromatic
#0D1806 #16290B #315918 #4C8925 #66B932

Accessibility & contrast

On white

8.16
#315918 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#315918 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #315918
8.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315918#FFFFFF#000000##FFFFFF
##3159181.008.162.578.16
#FFFFFF8.161.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5C510F
Deuteranopia (green-blind)
#574E1E
Tritanopia (blue-blind)
#30554C
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #315918;
/* rgb */ color: rgb(49, 89, 24);
/* oklch */ color: oklch(41.9% 0.104 135.7);
Tailwind
colors: {
  custom: {
    50: '#6d8859',
    500: '#315918',
    950: '#000000',
  },
}
SCSS
$custom: #315918;
$custom-light: #6d8859;
$custom-dark: #000000;
JSON
{
  "hex": "#315918",
  "rgb": {
    "r": 49,
    "g": 89,
    "b": 24
  },
  "hsl": {
    "h": 96.923,
    "s": 57.522,
    "l": 22.157
  },
  "oklch": {
    "l": 0.41941,
    "c": 0.10422,
    "h": 135.7
  },
  "luminance": 0.07864
}

Semantic roles & 50–950 ramp

primary
#315918
secondary
#703D90
accent
#47E1A6
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070B04
muted
#7A7C79

Preview Lab

Preview with #315918

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

Preview Lab → · Contrast checker → · Palette generator →

#315918 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva