#315115#315115

#315115 is a dark, moderate yellow-green. Relative luminance 0.066; OKLCH L 39.6% C 0.095 H 133.3°. Best body text is #FFFFFF at 9.06:1 contrast (WCAG AA passes).

Color values

HEX#315115
RGBrgb(49, 81, 21)
HSLhsl(92, 59%, 20%)
HSVhsv(92, 74%, 32%)
CMYKcmyk(39.5%, 0%, 74.1%, 68.2%)
CIE-LABlab(30.86, -23.21, 30.29)
CIE-LCHlch(30.86, 38.16, 127.46°)
OKLaboklab(39.61% -0.065 0.069)
OKLCHoklch(39.61% 0.095 133.3)
XYZxyz(4.3443, 6.5918, 1.7528)
Luminance0.0659 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315115 #351551
analogous
#4F5115 #315115 #155117
triadic
#315115 #153151 #511531
tetradic
#315115 #154F51 #351551 #511715
square
#315115 #154F51 #351551 #511715
split-complementary
#315115 #171551 #51154F
monochromatic
#0F1806 #142008 #315115 #4E8222 #6CB22E

Accessibility & contrast

On white

9.06
#315115 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#315115 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #315115
9.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315115#FFFFFF#000000##FFFFFF
##3151151.009.062.329.06
#FFFFFF9.061.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#554A0C
Deuteranopia (green-blind)
#50481A
Tritanopia (blue-blind)
#314E45
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #315115;
/* rgb */ color: rgb(49, 81, 21);
/* oklch */ color: oklch(39.6% 0.095 133.3);
Tailwind
colors: {
  custom: {
    50: '#6c8256',
    500: '#315115',
    950: '#000000',
  },
}
SCSS
$custom: #315115;
$custom-light: #6c8256;
$custom-dark: #000000;
JSON
{
  "hex": "#315115",
  "rgb": {
    "r": 49,
    "g": 81,
    "b": 21
  },
  "hsl": {
    "h": 92,
    "s": 58.824,
    "l": 20
  },
  "oklch": {
    "l": 0.39613,
    "c": 0.09481,
    "h": 133.3
  },
  "luminance": 0.06592
}

Semantic roles & 50–950 ramp

primary
#315115
secondary
#643989
accent
#46E299
background
#F6F7F5
surface
#ECEEE9
border
#C7C9C5
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #315115

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

Preview Lab → · Contrast checker → · Palette generator →

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