#315811#315811

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

Color values

HEX#315811
RGBrgb(49, 88, 17)
HSLhsl(93, 68%, 21%)
HSVhsv(93, 81%, 35%)
CMYKcmyk(44.3%, 0%, 80.7%, 65.5%)
CIE-LABlab(33.29, -26.91, 34.46)
CIE-LCHlch(33.29, 43.73, 127.99°)
OKLaboklab(41.59% -0.0754 0.0771)
OKLCHoklch(41.59% 0.108 134.4)
XYZxyz(4.8574, 7.6726, 1.7552)
Luminance0.0767 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315811 #381158
analogous
#545811 #315811 #115815
triadic
#315811 #113158 #581131
tetradic
#315811 #115458 #381158 #581511
square
#315811 #115458 #381158 #581511
split-complementary
#315811 #151158 #581154
monochromatic
#0E1A05 #142507 #315811 #4E8B1B #6ABF25

Accessibility & contrast

On white

8.29
#315811 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#315811 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #315811
8.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315811#FFFFFF#000000##FFFFFF
##3158111.008.292.538.29
#FFFFFF8.291.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5C5004
Deuteranopia (green-blind)
#564D18
Tritanopia (blue-blind)
#30544A
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #315811;
/* rgb */ color: rgb(49, 88, 17);
/* oklch */ color: oklch(41.6% 0.108 134.4);
Tailwind
colors: {
  custom: {
    50: '#6d8755',
    500: '#315811',
    950: '#000000',
  },
}
SCSS
$custom: #315811;
$custom-light: #6d8755;
$custom-dark: #000000;
JSON
{
  "hex": "#315811",
  "rgb": {
    "r": 49,
    "g": 88,
    "b": 17
  },
  "hsl": {
    "h": 92.958,
    "s": 67.619,
    "l": 20.588
  },
  "oklch": {
    "l": 0.41592,
    "c": 0.10783,
    "h": 134.4
  },
  "luminance": 0.07673
}

Semantic roles & 50–950 ramp

primary
#315811
secondary
#673491
accent
#3DEA9C
background
#F6F8F5
surface
#ECEFE9
border
#C7CAC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #315811

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

Preview Lab → · Contrast checker → · Palette generator →

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