#166817#166817

#166817 is a mid, vivid green. Relative luminance 0.101; OKLCH L 45.3% C 0.137 H 143.0°. Best body text is #FFFFFF at 6.94:1 contrast (WCAG AA passes).

Color values

HEX#166817
RGBrgb(22, 104, 23)
HSLhsl(121, 65%, 25%)
HSVhsv(121, 79%, 41%)
CMYKcmyk(78.8%, 0%, 77.9%, 59.2%)
CIE-LABlab(38.08, -40.46, 36.55)
CIE-LCHlch(38.08, 54.53, 137.91°)
OKLaboklab(45.29% -0.1098 0.0827)
OKLCHoklch(45.29% 0.137 143)
XYZxyz(5.4355, 10.1324, 2.4797)
Luminance0.1013 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#166817 #681667
analogous
#3E6816 #166817 #166840
triadic
#166817 #171668 #681716
tetradic
#166817 #163E68 #681667 #684016
square
#166817 #163E68 #681667 #684016
split-complementary
#166817 #401668 #68163E
monochromatic
#051906 #0B350C #166817 #219B22 #2BCD2D

Accessibility & contrast

On white

6.94
#166817 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#166817 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #166817
6.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##166817#FFFFFF#000000##FFFFFF
##1668171.006.943.036.94
#FFFFFF6.941.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6A5D08
Deuteranopia (green-blind)
#615720
Tritanopia (blue-blind)
#006558
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #166817;
/* rgb */ color: rgb(22, 104, 23);
/* oklch */ color: oklch(45.3% 0.137 143.0);
Tailwind
colors: {
  custom: {
    50: '#63945a',
    500: '#166817',
    950: '#000000',
  },
}
SCSS
$custom: #166817;
$custom-light: #63945a;
$custom-dark: #000000;
JSON
{
  "hex": "#166817",
  "rgb": {
    "r": 22,
    "g": 104,
    "b": 23
  },
  "hsl": {
    "h": 120.732,
    "s": 65.079,
    "l": 24.706
  },
  "oklch": {
    "l": 0.45292,
    "c": 0.13744,
    "h": 143
  },
  "luminance": 0.10133
}

Semantic roles & 50–950 ramp

primary
#166817
secondary
#9F3B9D
accent
#40E6E8
background
#F6F9F5
surface
#EBF1E9
border
#C6CBC5
text
#060D04
muted
#7A7E79

Preview Lab

Preview with #166817

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

Preview Lab → · Contrast checker → · Palette generator →

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