#166831#166831

#166831 is a mid, moderate green. Relative luminance 0.103; OKLCH L 45.6% C 0.116 H 149.5°. Best body text is #FFFFFF at 6.87:1 contrast (WCAG AA passes).

Color values

HEX#166831
RGBrgb(22, 104, 49)
HSLhsl(140, 65%, 25%)
HSVhsv(140, 79%, 41%)
CMYKcmyk(78.8%, 0%, 52.9%, 59.2%)
CIE-LABlab(38.36, -37.07, 24.15)
CIE-LCHlch(38.36, 44.25, 146.92°)
OKLaboklab(45.62% -0.0997 0.0586)
OKLCHoklch(45.62% 0.116 149.5)
XYZxyz(5.8351, 10.2923, 4.5842)
Luminance0.1029 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#166831 #68164D
analogous
#246816 #166831 #16685A
triadic
#166831 #311668 #683116
tetradic
#166831 #162468 #68164D #685A16
square
#166831 #162468 #68164D #685A16
split-complementary
#166831 #5A1668 #681624
monochromatic
#05190C #0B3519 #166831 #219B49 #2BCD61

Accessibility & contrast

On white

6.87
#166831 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#166831 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #166831
6.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##166831#FFFFFF#000000##FFFFFF
##1668311.006.873.066.87
#FFFFFF6.871.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#695E2C
Deuteranopia (green-blind)
#5F5835
Tritanopia (blue-blind)
#00665B
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #166831;
/* rgb */ color: rgb(22, 104, 49);
/* oklch */ color: oklch(45.6% 0.116 149.5);
Tailwind
colors: {
  custom: {
    50: '#62946a',
    500: '#166831',
    950: '#000000',
  },
}
SCSS
$custom: #166831;
$custom-light: #62946a;
$custom-dark: #000000;
JSON
{
  "hex": "#166831",
  "rgb": {
    "r": 22,
    "g": 104,
    "b": 49
  },
  "hsl": {
    "h": 139.756,
    "s": 65.079,
    "l": 24.706
  },
  "oklch": {
    "l": 0.45618,
    "c": 0.11562,
    "h": 149.5
  },
  "luminance": 0.10293
}

Semantic roles & 50–950 ramp

primary
#166831
secondary
#9F3B7E
accent
#40B1E8
background
#F6F9F6
surface
#EBF1EB
border
#C6CBC6
text
#060D06
muted
#7A7E7A

Preview Lab

Preview with #166831

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

Preview Lab → · Contrast checker → · Palette generator →

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