#166812#166812

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

Color values

HEX#166812
RGBrgb(22, 104, 18)
HSLhsl(117, 70%, 24%)
HSVhsv(117, 83%, 41%)
CMYKcmyk(78.8%, 0%, 82.7%, 59.2%)
CIE-LABlab(38.05, -40.86, 38.38)
CIE-LCHlch(38.05, 56.06, 136.79°)
OKLaboklab(45.26% -0.1111 0.0858)
OKLCHoklch(45.26% 0.14 142.3)
XYZxyz(5.3900, 10.1143, 2.2403)
Luminance0.1012 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#166812 #641268
analogous
#416812 #166812 #126839
triadic
#166812 #121668 #681216
tetradic
#166812 #124168 #641268 #683912
square
#166812 #124168 #641268 #683912
split-complementary
#166812 #391268 #681241
monochromatic
#061A05 #0B3409 #166812 #219C1B #2CD024

Accessibility & contrast

On white

6.95
#166812 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#166812 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #166812
6.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##166812#FFFFFF#000000##FFFFFF
##1668121.006.953.026.95
#FFFFFF6.951.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6B5D00
Deuteranopia (green-blind)
#61571C
Tritanopia (blue-blind)
#006558
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #166812;
/* rgb */ color: rgb(22, 104, 18);
/* oklch */ color: oklch(45.3% 0.140 142.3);
Tailwind
colors: {
  custom: {
    50: '#639458',
    500: '#166812',
    950: '#000000',
  },
}
SCSS
$custom: #166812;
$custom-light: #639458;
$custom-dark: #000000;
JSON
{
  "hex": "#166812",
  "rgb": {
    "r": 22,
    "g": 104,
    "b": 18
  },
  "hsl": {
    "h": 117.209,
    "s": 70.492,
    "l": 23.922
  },
  "oklch": {
    "l": 0.45255,
    "c": 0.14037,
    "h": 142.3
  },
  "luminance": 0.10115
}

Semantic roles & 50–950 ramp

primary
#166812
secondary
#9B36A0
accent
#3BEDE5
background
#F6F9F5
surface
#EBF1E9
border
#C6CBC5
text
#060D03
muted
#7A7E78

Preview Lab

Preview with #166812

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

Preview Lab → · Contrast checker → · Palette generator →

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