#315417#315417

#315417 is a dark, moderate yellow-green. Relative luminance 0.071; OKLCH L 40.5% C 0.098 H 134.4°. Best body text is #FFFFFF at 8.71:1 contrast (WCAG AA passes).

Color values

HEX#315417
RGBrgb(49, 84, 23)
HSLhsl(94, 57%, 21%)
HSVhsv(94, 73%, 33%)
CMYKcmyk(41.7%, 0%, 72.6%, 67.1%)
CIE-LABlab(31.93, -24.51, 30.49)
CIE-LCHlch(31.93, 39.12, 128.79°)
OKLaboklab(40.49% -0.0684 0.0697)
OKLCHoklch(40.49% 0.098 134.4)
XYZxyz(4.5915, 7.0553, 1.9303)
Luminance0.0706 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315417 #3A1754
analogous
#4F5417 #315417 #17541B
triadic
#315417 #173154 #541731
tetradic
#315417 #174F54 #3A1754 #541B17
square
#315417 #174F54 #3A1754 #541B17
split-complementary
#315417 #1B1754 #54174F
monochromatic
#0E1807 #15240A #315417 #4D8424 #69B431

Accessibility & contrast

On white

8.71
#315417 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#315417 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #315417
8.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315417#FFFFFF#000000##FFFFFF
##3154171.008.712.418.71
#FFFFFF8.711.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#574D0F
Deuteranopia (green-blind)
#534A1C
Tritanopia (blue-blind)
#315148
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #315417;
/* rgb */ color: rgb(49, 84, 23);
/* oklch */ color: oklch(40.5% 0.098 134.4);
Tailwind
colors: {
  custom: {
    50: '#6c8458',
    500: '#315417',
    950: '#000000',
  },
}
SCSS
$custom: #315417;
$custom-light: #6c8458;
$custom-dark: #000000;
JSON
{
  "hex": "#315417",
  "rgb": {
    "r": 49,
    "g": 84,
    "b": 23
  },
  "hsl": {
    "h": 94.426,
    "s": 57.009,
    "l": 20.98
  },
  "oklch": {
    "l": 0.40495,
    "c": 0.09766,
    "h": 134.4
  },
  "luminance": 0.07055
}

Semantic roles & 50–950 ramp

primary
#315417
secondary
#693C8B
accent
#48E09F
background
#F6F8F5
surface
#ECEFE9
border
#C7CAC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #315417

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

Preview Lab → · Contrast checker → · Palette generator →

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