#166828#166828

#166828 is a mid, vivid green. Relative luminance 0.102; OKLCH L 45.5% C 0.124 H 146.6°. Best body text is #FFFFFF at 6.90:1 contrast (WCAG AA passes).

Color values

HEX#166828
RGBrgb(22, 104, 40)
HSLhsl(133, 65%, 25%)
HSVhsv(133, 79%, 41%)
CMYKcmyk(78.8%, 0%, 61.5%, 59.2%)
CIE-LABlab(38.24, -38.50, 28.84)
CIE-LCHlch(38.24, 48.11, 143.16°)
OKLaboklab(45.48% -0.1037 0.0683)
OKLCHoklch(45.48% 0.124 146.6)
XYZxyz(5.6638, 10.2237, 3.6820)
Luminance0.1022 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#166828 #681656
analogous
#2D6816 #166828 #166851
triadic
#166828 #281668 #682816
tetradic
#166828 #162D68 #681656 #685116
square
#166828 #162D68 #681656 #685116
split-complementary
#166828 #511668 #68162D
monochromatic
#05190A #0B3515 #166828 #219B3B #2BCD4F

Accessibility & contrast

On white

6.90
#166828 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#166828 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #166828
6.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##166828#FFFFFF#000000##FFFFFF
##1668281.006.903.046.90
#FFFFFF6.901.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#695E22
Deuteranopia (green-blind)
#60572D
Tritanopia (blue-blind)
#00655A
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #166828;
/* rgb */ color: rgb(22, 104, 40);
/* oklch */ color: oklch(45.5% 0.124 146.6);
Tailwind
colors: {
  custom: {
    50: '#629464',
    500: '#166828',
    950: '#000000',
  },
}
SCSS
$custom: #166828;
$custom-light: #629464;
$custom-dark: #000000;
JSON
{
  "hex": "#166828",
  "rgb": {
    "r": 22,
    "g": 104,
    "b": 40
  },
  "hsl": {
    "h": 133.171,
    "s": 65.079,
    "l": 24.706
  },
  "oklch": {
    "l": 0.45479,
    "c": 0.12419,
    "h": 146.6
  },
  "luminance": 0.10224
}

Semantic roles & 50–950 ramp

primary
#166828
secondary
#9F3B89
accent
#40C3E8
background
#F6F9F6
surface
#EBF1EB
border
#C6CBC6
text
#060D05
muted
#7A7E7A

Preview Lab

Preview with #166828

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

Preview Lab → · Contrast checker → · Palette generator →

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