#315814#315814

#315814 is a dark, moderate yellow-green. Relative luminance 0.077; OKLCH L 41.6% C 0.106 H 134.8°. Best body text is #FFFFFF at 8.28:1 contrast (WCAG AA passes).

Color values

HEX#315814
RGBrgb(49, 88, 20)
HSLhsl(94, 63%, 21%)
HSVhsv(94, 77%, 35%)
CMYKcmyk(44.3%, 0%, 77.3%, 65.5%)
CIE-LABlab(33.31, -26.69, 33.26)
CIE-LCHlch(33.31, 42.65, 128.74°)
OKLaboklab(41.62% -0.0746 0.0751)
OKLCHoklch(41.62% 0.106 134.8)
XYZxyz(4.8825, 7.6827, 1.8873)
Luminance0.0768 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315814 #3B1458
analogous
#535814 #315814 #145819
triadic
#315814 #143158 #581431
tetradic
#315814 #145358 #3B1458 #581914
square
#315814 #145358 #3B1458 #581914
split-complementary
#315814 #191458 #581453
monochromatic
#0E1906 #152609 #315814 #4D8A1F #69BC2B

Accessibility & contrast

On white

8.28
#315814 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#315814 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #315814
8.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315814#FFFFFF#000000##FFFFFF
##3158141.008.282.548.28
#FFFFFF8.281.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5C5008
Deuteranopia (green-blind)
#564D1A
Tritanopia (blue-blind)
#30544B
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #315814;
/* rgb */ color: rgb(49, 88, 20);
/* oklch */ color: oklch(41.6% 0.106 134.8);
Tailwind
colors: {
  custom: {
    50: '#6d8756',
    500: '#315814',
    950: '#000000',
  },
}
SCSS
$custom: #315814;
$custom-light: #6d8756;
$custom-dark: #000000;
JSON
{
  "hex": "#315814",
  "rgb": {
    "r": 49,
    "g": 88,
    "b": 20
  },
  "hsl": {
    "h": 94.412,
    "s": 62.963,
    "l": 21.176
  },
  "oklch": {
    "l": 0.41616,
    "c": 0.1058,
    "h": 134.8
  },
  "luminance": 0.07683
}

Semantic roles & 50–950 ramp

primary
#315814
secondary
#6A3890
accent
#42E6A0
background
#F6F8F5
surface
#ECEFE9
border
#C7CAC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #315814

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

Preview Lab → · Contrast checker → · Palette generator →

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