#315912#315912

#315912 is a dark, moderate yellow-green. Relative luminance 0.078; OKLCH L 41.9% C 0.109 H 134.7°. Best body text is #FFFFFF at 8.18:1 contrast (WCAG AA passes).

Color values

HEX#315912
RGBrgb(49, 89, 18)
HSLhsl(94, 66%, 21%)
HSVhsv(94, 80%, 35%)
CMYKcmyk(44.9%, 0%, 79.8%, 65.1%)
CIE-LABlab(33.65, -27.31, 34.42)
CIE-LCHlch(33.65, 43.94, 128.43°)
OKLaboklab(41.89% -0.0764 0.0772)
OKLCHoklch(41.89% 0.109 134.7)
XYZxyz(4.9481, 7.8411, 1.8249)
Luminance0.0784 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315912 #3A1259
analogous
#545912 #315912 #125916
triadic
#315912 #123159 #591231
tetradic
#315912 #125459 #3A1259 #591612
square
#315912 #125459 #3A1259 #591612
split-complementary
#315912 #161259 #591254
monochromatic
#0E1905 #152608 #315912 #4D8C1C #69BF27

Accessibility & contrast

On white

8.18
#315912 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #315912
8.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315912#FFFFFF#000000##FFFFFF
##3159121.008.182.578.18
#FFFFFF8.181.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5D5105
Deuteranopia (green-blind)
#574E19
Tritanopia (blue-blind)
#30554B
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #315912;
/* rgb */ color: rgb(49, 89, 18);
/* oklch */ color: oklch(41.9% 0.109 134.7);
Tailwind
colors: {
  custom: {
    50: '#6d8856',
    500: '#315912',
    950: '#000000',
  },
}
SCSS
$custom: #315912;
$custom-light: #6d8856;
$custom-dark: #000000;
JSON
{
  "hex": "#315912",
  "rgb": {
    "r": 49,
    "g": 89,
    "b": 18
  },
  "hsl": {
    "h": 93.803,
    "s": 66.355,
    "l": 20.98
  },
  "oklch": {
    "l": 0.41888,
    "c": 0.10858,
    "h": 134.7
  },
  "luminance": 0.07841
}

Semantic roles & 50–950 ramp

primary
#315912
secondary
#693592
accent
#3FE99F
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #315912

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

Preview Lab → · Contrast checker → · Palette generator →

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