#315812#315812

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

Color values

HEX#315812
RGBrgb(49, 88, 18)
HSLhsl(93, 66%, 21%)
HSVhsv(93, 80%, 35%)
CMYKcmyk(44.3%, 0%, 79.5%, 65.5%)
CIE-LABlab(33.30, -26.84, 34.07)
CIE-LCHlch(33.30, 43.38, 128.23°)
OKLaboklab(41.6% -0.0751 0.0764)
OKLCHoklch(41.6% 0.107 134.5)
XYZxyz(4.8654, 7.6758, 1.7974)
Luminance0.0768 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315812 #391258
analogous
#545812 #315812 #125816
triadic
#315812 #123158 #581231
tetradic
#315812 #125458 #391258 #581612
square
#315812 #125458 #391258 #581612
split-complementary
#315812 #161258 #581254
monochromatic
#0E1905 #152508 #315812 #4D8B1C #6ABE27

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##315812#FFFFFF#000000##FFFFFF
##3158121.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)
#5C5005
Deuteranopia (green-blind)
#564D19
Tritanopia (blue-blind)
#30544B
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #315812;
/* rgb */ color: rgb(49, 88, 18);
/* oklch */ color: oklch(41.6% 0.107 134.5);
Tailwind
colors: {
  custom: {
    50: '#6d8755',
    500: '#315812',
    950: '#000000',
  },
}
SCSS
$custom: #315812;
$custom-light: #6d8755;
$custom-dark: #000000;
JSON
{
  "hex": "#315812",
  "rgb": {
    "r": 49,
    "g": 88,
    "b": 18
  },
  "hsl": {
    "h": 93.429,
    "s": 66.038,
    "l": 20.784
  },
  "oklch": {
    "l": 0.416,
    "c": 0.10718,
    "h": 134.5
  },
  "luminance": 0.07676
}

Semantic roles & 50–950 ramp

primary
#315812
secondary
#683591
accent
#3FE99E
background
#F6F8F5
surface
#ECEFE9
border
#C7CAC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #315812

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

Preview Lab → · Contrast checker → · Palette generator →

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