#166A17#166A17

#166A17 is a mid, vivid green. Relative luminance 0.105; OKLCH L 45.9% C 0.140 H 143.0°. Best body text is #FFFFFF at 6.76:1 contrast (WCAG AA passes).

Color values

HEX#166A17
RGBrgb(22, 106, 23)
HSLhsl(121, 66%, 25%)
HSVhsv(121, 79%, 42%)
CMYKcmyk(79.2%, 0%, 78.3%, 58.4%)
CIE-LABlab(38.79, -41.17, 37.27)
CIE-LCHlch(38.79, 55.53, 137.85°)
OKLaboklab(45.89% -0.1117 0.0842)
OKLCHoklch(45.89% 0.14 143)
XYZxyz(5.6392, 10.5399, 2.5476)
Luminance0.1054 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#166A17 #6A1669
analogous
#3F6A16 #166A17 #166A41
triadic
#166A17 #17166A #6A1716
tetradic
#166A17 #163F6A #6A1669 #6A4116
square
#166A17 #163F6A #6A1669 #6A4116
split-complementary
#166A17 #41166A #6A163F
monochromatic
#051905 #0B370C #166A17 #219D22 #2BCF2D

Accessibility & contrast

On white

6.76
#166A17 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#166A17 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #166A17
6.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##166A17#FFFFFF#000000##FFFFFF
##166A171.006.763.116.76
#FFFFFF6.761.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6C5F07
Deuteranopia (green-blind)
#635920
Tritanopia (blue-blind)
#00675A
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #166a17;
/* rgb */ color: rgb(22, 106, 23);
/* oklch */ color: oklch(45.9% 0.140 143.0);
Tailwind
colors: {
  custom: {
    50: '#63965a',
    500: '#166a17',
    950: '#000000',
  },
}
SCSS
$custom: #166a17;
$custom-light: #63965a;
$custom-dark: #000000;
JSON
{
  "hex": "#166a17",
  "rgb": {
    "r": 22,
    "g": 106,
    "b": 23
  },
  "hsl": {
    "h": 120.714,
    "s": 65.625,
    "l": 25.098
  },
  "oklch": {
    "l": 0.45887,
    "c": 0.13987,
    "h": 143
  },
  "luminance": 0.10541
}

Semantic roles & 50–950 ramp

primary
#166A17
secondary
#A03B9F
accent
#3FE7E9
background
#F6F9F5
surface
#EBF2E9
border
#C6CCC5
text
#060D04
muted
#7A7E79

Preview Lab

Preview with #166A17

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

Preview Lab → · Contrast checker → · Palette generator →

#166A17 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva