#315715#315715

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

Color values

HEX#315715
RGBrgb(49, 87, 21)
HSLhsl(95, 61%, 21%)
HSVhsv(95, 76%, 34%)
CMYKcmyk(43.7%, 0%, 75.9%, 65.9%)
CIE-LABlab(32.97, -26.13, 32.48)
CIE-LCHlch(32.97, 41.69, 128.82°)
OKLaboklab(41.34% -0.073 0.0736)
OKLCHoklch(41.34% 0.104 134.8)
XYZxyz(4.8101, 7.5233, 1.9080)
Luminance0.0752 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315715 #3B1557
analogous
#525715 #315715 #15571A
triadic
#315715 #153157 #571531
tetradic
#315715 #155257 #3B1557 #571A15
square
#315715 #155257 #3B1557 #571A15
split-complementary
#315715 #1A1557 #571552
monochromatic
#0E1906 #152609 #315715 #4D8821 #69BA2D

Accessibility & contrast

On white

8.38
#315715 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #315715
8.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315715#FFFFFF#000000##FFFFFF
##3157151.008.382.508.38
#FFFFFF8.381.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5B4F0A
Deuteranopia (green-blind)
#554C1B
Tritanopia (blue-blind)
#30534A
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #315715;
/* rgb */ color: rgb(49, 87, 21);
/* oklch */ color: oklch(41.3% 0.104 134.8);
Tailwind
colors: {
  custom: {
    50: '#6d8757',
    500: '#315715',
    950: '#000000',
  },
}
SCSS
$custom: #315715;
$custom-light: #6d8757;
$custom-dark: #000000;
JSON
{
  "hex": "#315715",
  "rgb": {
    "r": 49,
    "g": 87,
    "b": 21
  },
  "hsl": {
    "h": 94.545,
    "s": 61.111,
    "l": 21.176
  },
  "oklch": {
    "l": 0.41338,
    "c": 0.10363,
    "h": 134.8
  },
  "luminance": 0.07524
}

Semantic roles & 50–950 ramp

primary
#315715
secondary
#6A398F
accent
#44E4A0
background
#F6F8F5
surface
#ECEFE9
border
#C7CAC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #315715

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

Preview Lab → · Contrast checker → · Palette generator →

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