#166838#166838

#166838 is a mid, moderate green. Relative luminance 0.104; OKLCH L 45.7% C 0.109 H 152.5°. Best body text is #FFFFFF at 6.84:1 contrast (WCAG AA passes).

Color values

HEX#166838
RGBrgb(22, 104, 56)
HSLhsl(145, 65%, 25%)
HSVhsv(145, 79%, 41%)
CMYKcmyk(78.8%, 0%, 46.2%, 59.2%)
CIE-LABlab(38.47, -35.78, 20.33)
CIE-LCHlch(38.47, 41.15, 150.39°)
OKLaboklab(45.75% -0.0963 0.0502)
OKLCHoklch(45.75% 0.109 152.5)
XYZxyz(5.9945, 10.3560, 5.4236)
Luminance0.1036 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#166838 #681646
analogous
#1D6816 #166838 #166861
triadic
#166838 #381668 #683816
tetradic
#166838 #161D68 #681646 #686116
square
#166838 #161D68 #681646 #686116
split-complementary
#166838 #611668 #68161D
monochromatic
#05190E #0B351D #166838 #219B53 #2BCD6E

Accessibility & contrast

On white

6.84
#166838 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#166838 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #166838
6.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##166838#FFFFFF#000000##FFFFFF
##1668381.006.843.076.84
#FFFFFF6.841.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#685F34
Deuteranopia (green-blind)
#5E583B
Tritanopia (blue-blind)
#00665C
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #166838;
/* rgb */ color: rgb(22, 104, 56);
/* oklch */ color: oklch(45.7% 0.109 152.5);
Tailwind
colors: {
  custom: {
    50: '#61946f',
    500: '#166838',
    950: '#000000',
  },
}
SCSS
$custom: #166838;
$custom-light: #61946f;
$custom-dark: #000000;
JSON
{
  "hex": "#166838",
  "rgb": {
    "r": 22,
    "g": 104,
    "b": 56
  },
  "hsl": {
    "h": 144.878,
    "s": 65.079,
    "l": 24.706
  },
  "oklch": {
    "l": 0.45747,
    "c": 0.10857,
    "h": 152.5
  },
  "luminance": 0.10357
}

Semantic roles & 50–950 ramp

primary
#166838
secondary
#9F3B75
accent
#40A2E8
background
#F6F9F6
surface
#EBF1EC
border
#C6CBC7
text
#060D07
muted
#7A7E7A

Preview Lab

Preview with #166838

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

Preview Lab → · Contrast checker → · Palette generator →

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