#315711#315711

#315711 is a dark, moderate yellow-green. Relative luminance 0.075; OKLCH L 41.3% C 0.106 H 134.2°. Best body text is #FFFFFF at 8.39:1 contrast (WCAG AA passes).

Color values

HEX#315711
RGBrgb(49, 87, 17)
HSLhsl(93, 67%, 20%)
HSVhsv(93, 80%, 34%)
CMYKcmyk(43.7%, 0%, 80.5%, 65.9%)
CIE-LABlab(32.94, -26.44, 34.12)
CIE-LCHlch(32.94, 43.17, 127.78°)
OKLaboklab(41.3% -0.0741 0.0764)
OKLCHoklch(41.3% 0.106 134.2)
XYZxyz(4.7759, 7.5096, 1.7281)
Luminance0.0751 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315711 #371157
analogous
#545711 #315711 #115714
triadic
#315711 #113157 #571131
tetradic
#315711 #115457 #371157 #571411
square
#315711 #115457 #371157 #571411
split-complementary
#315711 #141157 #571154
monochromatic
#0E1A05 #142407 #315711 #4E8A1B #6BBD25

Accessibility & contrast

On white

8.39
#315711 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#315711 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #315711
8.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315711#FFFFFF#000000##FFFFFF
##3157111.008.392.508.39
#FFFFFF8.391.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5B4F04
Deuteranopia (green-blind)
#564C18
Tritanopia (blue-blind)
#31534A
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #315711;
/* rgb */ color: rgb(49, 87, 17);
/* oklch */ color: oklch(41.3% 0.106 134.2);
Tailwind
colors: {
  custom: {
    50: '#6d8755',
    500: '#315711',
    950: '#000000',
  },
}
SCSS
$custom: #315711;
$custom-light: #6d8755;
$custom-dark: #000000;
JSON
{
  "hex": "#315711",
  "rgb": {
    "r": 49,
    "g": 87,
    "b": 17
  },
  "hsl": {
    "h": 92.571,
    "s": 67.308,
    "l": 20.392
  },
  "oklch": {
    "l": 0.41304,
    "c": 0.10642,
    "h": 134.2
  },
  "luminance": 0.0751
}

Semantic roles & 50–950 ramp

primary
#315711
secondary
#663490
accent
#3EEA9B
background
#F6F8F5
surface
#ECEFE9
border
#C7CAC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #315711

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

Preview Lab → · Contrast checker → · Palette generator →

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