#166818#166818

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

Color values

HEX#166818
RGBrgb(22, 104, 24)
HSLhsl(121, 65%, 25%)
HSVhsv(121, 79%, 41%)
CMYKcmyk(78.8%, 0%, 76.9%, 59.2%)
CIE-LABlab(38.09, -40.37, 36.15)
CIE-LCHlch(38.09, 54.20, 138.16°)
OKLaboklab(45.3% -0.1095 0.082)
OKLCHoklch(45.3% 0.137 143.2)
XYZxyz(5.4457, 10.1365, 2.5335)
Luminance0.1014 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#166818 #681666
analogous
#3D6816 #166818 #166841
triadic
#166818 #181668 #681816
tetradic
#166818 #163D68 #681666 #684116
square
#166818 #163D68 #681666 #684116
split-complementary
#166818 #411668 #68163D
monochromatic
#051906 #0B350C #166818 #219B24 #2BCD2F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##166818#FFFFFF#000000##FFFFFF
##1668181.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)
#6A5D0A
Deuteranopia (green-blind)
#615720
Tritanopia (blue-blind)
#006558
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #166818;
/* rgb */ color: rgb(22, 104, 24);
/* oklch */ color: oklch(45.3% 0.137 143.2);
Tailwind
colors: {
  custom: {
    50: '#63945a',
    500: '#166818',
    950: '#000000',
  },
}
SCSS
$custom: #166818;
$custom-light: #63945a;
$custom-dark: #000000;
JSON
{
  "hex": "#166818",
  "rgb": {
    "r": 22,
    "g": 104,
    "b": 24
  },
  "hsl": {
    "h": 121.463,
    "s": 65.079,
    "l": 24.706
  },
  "oklch": {
    "l": 0.45301,
    "c": 0.1368,
    "h": 143.2
  },
  "luminance": 0.10137
}

Semantic roles & 50–950 ramp

primary
#166818
secondary
#9F3B9C
accent
#40E4E8
background
#F6F9F5
surface
#EBF1E9
border
#C6CBC5
text
#060D04
muted
#7A7E79

Preview Lab

Preview with #166818

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

Preview Lab → · Contrast checker → · Palette generator →

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