#315712#315712

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

Color values

HEX#315712
RGBrgb(49, 87, 18)
HSLhsl(93, 66%, 21%)
HSVhsv(93, 79%, 34%)
CMYKcmyk(43.7%, 0%, 79.3%, 65.9%)
CIE-LABlab(32.95, -26.37, 33.73)
CIE-LCHlch(32.95, 42.81, 128.02°)
OKLaboklab(41.31% -0.0739 0.0757)
OKLCHoklch(41.31% 0.106 134.3)
XYZxyz(4.7839, 7.5128, 1.7702)
Luminance0.0751 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315712 #381257
analogous
#535712 #315712 #125715
triadic
#315712 #123157 #571231
tetradic
#315712 #125357 #381257 #571512
square
#315712 #125357 #381257 #571512
split-complementary
#315712 #151257 #571253
monochromatic
#0E1905 #142408 #315712 #4E8A1C #6ABC27

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##315712#FFFFFF#000000##FFFFFF
##3157121.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)
#5B4F05
Deuteranopia (green-blind)
#554C19
Tritanopia (blue-blind)
#31534A
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #315712;
/* rgb */ color: rgb(49, 87, 18);
/* oklch */ color: oklch(41.3% 0.106 134.3);
Tailwind
colors: {
  custom: {
    50: '#6d8755',
    500: '#315712',
    950: '#000000',
  },
}
SCSS
$custom: #315712;
$custom-light: #6d8755;
$custom-dark: #000000;
JSON
{
  "hex": "#315712",
  "rgb": {
    "r": 49,
    "g": 87,
    "b": 18
  },
  "hsl": {
    "h": 93.043,
    "s": 65.714,
    "l": 20.588
  },
  "oklch": {
    "l": 0.41312,
    "c": 0.10577,
    "h": 134.3
  },
  "luminance": 0.07513
}

Semantic roles & 50–950 ramp

primary
#315712
secondary
#673590
accent
#3FE99C
background
#F6F8F5
surface
#ECEFE9
border
#C7CAC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #315712

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

Preview Lab → · Contrast checker → · Palette generator →

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