#316815#316815

#316815 is a mid, vivid yellow-green. Relative luminance 0.106; OKLCH L 46.2% C 0.127 H 137.4°. Best body text is #FFFFFF at 6.73:1 contrast (WCAG AA passes).

Color values

HEX#316815
RGBrgb(49, 104, 21)
HSLhsl(100, 66%, 25%)
HSVhsv(100, 80%, 41%)
CMYKcmyk(52.9%, 0%, 79.8%, 59.2%)
CIE-LABlab(38.91, -33.78, 38.43)
CIE-LCHlch(38.91, 51.16, 131.32°)
OKLaboklab(46.21% -0.0936 0.086)
OKLCHoklch(46.21% 0.127 137.4)
XYZxyz(6.3521, 10.6073, 2.4220)
Luminance0.1061 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#316815 #4C1568
analogous
#5B6815 #316815 #156823
triadic
#316815 #153168 #681531
tetradic
#316815 #155B68 #4C1568 #682315
square
#316815 #155B68 #4C1568 #682315
split-complementary
#316815 #231568 #68155B
monochromatic
#0C1905 #19350B #316815 #499B1F #61CE2A

Accessibility & contrast

On white

6.73
#316815 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#316815 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #316815
6.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##316815#FFFFFF#000000##FFFFFF
##3168151.006.733.126.73
#FFFFFF6.731.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6C5E04
Deuteranopia (green-blind)
#645A1E
Tritanopia (blue-blind)
#2D6458
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #316815;
/* rgb */ color: rgb(49, 104, 21);
/* oklch */ color: oklch(46.2% 0.127 137.4);
Tailwind
colors: {
  custom: {
    50: '#6f9459',
    500: '#316815',
    950: '#000000',
  },
}
SCSS
$custom: #316815;
$custom-light: #6f9459;
$custom-dark: #000000;
JSON
{
  "hex": "#316815",
  "rgb": {
    "r": 49,
    "g": 104,
    "b": 21
  },
  "hsl": {
    "h": 99.759,
    "s": 66.4,
    "l": 24.51
  },
  "oklch": {
    "l": 0.46214,
    "c": 0.12715,
    "h": 137.4
  },
  "luminance": 0.10608
}

Semantic roles & 50–950 ramp

primary
#316815
secondary
#7D3A9F
accent
#3EE9B0
background
#F7F9F5
surface
#EDF1E9
border
#C8CBC5
text
#080D04
muted
#7B7E79

Preview Lab

Preview with #316815

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

Preview Lab → · Contrast checker → · Palette generator →

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