#817C8D#817C8D

#817C8D is a mid, muted grey. Relative luminance 0.210; OKLCH L 59.6% C 0.026 H 299.0°. Best body text is #000000 at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#817C8D
RGBrgb(129, 124, 141)
HSLhsl(258, 7%, 52%)
HSVhsv(258, 12%, 55%)
CMYKcmyk(8.5%, 12.1%, 0%, 44.7%)
CIE-LABlab(52.96, 5.37, -8.50)
CIE-LCHlch(52.96, 10.06, 302.29°)
OKLaboklab(59.65% 0.0127 -0.0229)
OKLCHoklch(59.65% 0.026 299)
XYZxyz(21.0677, 21.0055, 28.1387)
Luminance0.2101 (WCAG relative)
Temperatureneutral
Familygrey

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#817C8D #888D7C
analogous
#7C808D #817C8D #8A7C8D
triadic
#817C8D #8D817C #7C8D81
tetradic
#817C8D #8D7C80 #888D7C #7C8D8A
square
#817C8D #8D7C80 #888D7C #7C8D8A
split-complementary
#817C8D #8D8A7C #808D7C
monochromatic
#45424C #635F6D #817C8D #A09DA9 #C0BDC6

Accessibility & contrast

On white

4.04
#817C8D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.20
#817C8D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #817C8D
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##817C8D#FFFFFF#000000##000000
##817C8D1.004.045.205.20
#FFFFFF4.041.0021.0021.00
#0000005.2021.001.001.00
##0000005.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#797E8E
Deuteranopia (green-blind)
#7A7E8C
Tritanopia (blue-blind)
#7F7E81
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #817c8d;
/* rgb */ color: rgb(129, 124, 141);
/* oklch */ color: oklch(59.6% 0.026 299.0);
Tailwind
colors: {
  custom: {
    50: '#a5a1ae',
    500: '#817c8d',
    950: '#000000',
  },
}
SCSS
$custom: #817c8d;
$custom-light: #a5a1ae;
$custom-dark: #000000;
JSON
{
  "hex": "#817c8d",
  "rgb": {
    "r": 129,
    "g": 124,
    "b": 141
  },
  "hsl": {
    "h": 257.647,
    "s": 6.939,
    "l": 51.961
  },
  "oklch": {
    "l": 0.59646,
    "c": 0.02615,
    "h": 299
  },
  "luminance": 0.21006
}

Semantic roles & 50–950 ramp

primary
#817C8D
secondary
#B4B6AF
accent
#B0789F
background
#FAF9FA
surface
#F4F2F4
border
#CECCCE
text
#0F0F10
muted
#7F7E7F

Preview Lab

Preview with #817C8D

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

Preview Lab → · Contrast checker → · Palette generator →

#817C8D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva