#316217#316217

#316217 is a dark, moderate yellow-green. Relative luminance 0.095; OKLCH L 44.5% C 0.118 H 136.9°. Best body text is #FFFFFF at 7.27:1 contrast (WCAG AA passes).

Color values

HEX#316217
RGBrgb(49, 98, 23)
HSLhsl(99, 62%, 24%)
HSVhsv(99, 77%, 38%)
CMYKcmyk(50%, 0%, 76.5%, 61.6%)
CIE-LABlab(36.84, -31.02, 35.58)
CIE-LCHlch(36.84, 47.20, 131.09°)
OKLaboklab(44.51% -0.086 0.0804)
OKLCHoklch(44.51% 0.118 136.9)
XYZxyz(5.7888, 9.4498, 2.3294)
Luminance0.0945 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#316217 #481762
analogous
#566217 #316217 #176222
triadic
#316217 #173162 #621731
tetradic
#316217 #175662 #481762 #622217
square
#316217 #175662 #481762 #622217
split-complementary
#316217 #221762 #621756
monochromatic
#0C1906 #18300B #316217 #4A9423 #63C52E

Accessibility & contrast

On white

7.27
#316217 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#316217 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #316217
7.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##316217#FFFFFF#000000##FFFFFF
##3162171.007.272.897.27
#FFFFFF7.271.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#65590A
Deuteranopia (green-blind)
#5F551E
Tritanopia (blue-blind)
#2E5E53
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #316217;
/* rgb */ color: rgb(49, 98, 23);
/* oklch */ color: oklch(44.5% 0.118 136.9);
Tailwind
colors: {
  custom: {
    50: '#6e8f59',
    500: '#316217',
    950: '#000000',
  },
}
SCSS
$custom: #316217;
$custom-light: #6e8f59;
$custom-dark: #000000;
JSON
{
  "hex": "#316217",
  "rgb": {
    "r": 49,
    "g": 98,
    "b": 23
  },
  "hsl": {
    "h": 99.2,
    "s": 61.983,
    "l": 23.725
  },
  "oklch": {
    "l": 0.44513,
    "c": 0.11774,
    "h": 136.9
  },
  "luminance": 0.0945
}

Semantic roles & 50–950 ramp

primary
#316217
secondary
#793C99
accent
#43E5AD
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#080C04
muted
#7B7D79

Preview Lab

Preview with #316217

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

Preview Lab → · Contrast checker → · Palette generator →

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