#8A517C#8A517C

#8A517C is a mid, moderate pink. Relative luminance 0.127; OKLCH L 51.5% C 0.096 H 336.6°. Best body text is #FFFFFF at 5.92:1 contrast (WCAG AA passes).

Color values

HEX#8A517C
RGBrgb(138, 81, 124)
HSLhsl(315, 26%, 43%)
HSVhsv(315, 41%, 54%)
CMYKcmyk(0%, 41.3%, 10.1%, 45.9%)
CIE-LABlab(42.38, 30.44, -14.22)
CIE-LCHlch(42.38, 33.59, 334.96°)
OKLaboklab(51.54% 0.088 -0.0381)
OKLCHoklch(51.54% 0.096 336.6)
XYZxyz(17.0617, 12.7443, 20.6261)
Luminance0.1274 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A517C #518A5F
analogous
#7B518A #8A517C #8A515F
triadic
#8A517C #7C8A51 #517C8A
tetradic
#8A517C #8A7B51 #518A5F #515F8A
square
#8A517C #8A7B51 #518A5F #515F8A
split-complementary
#8A517C #5F8A51 #518A7B
monochromatic
#3D2437 #633A59 #8A517C #AA6E9B #C195B6

Accessibility & contrast

On white

5.92
#8A517C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#8A517C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A517C
5.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A517C#FFFFFF#000000##FFFFFF
##8A517C1.005.923.555.92
#FFFFFF5.921.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#525F7E
Deuteranopia (green-blind)
#60677A
Tritanopia (blue-blind)
#8F5361
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #8a517c;
/* rgb */ color: rgb(138, 81, 124);
/* oklch */ color: oklch(51.5% 0.096 336.6);
Tailwind
colors: {
  custom: {
    50: '#ad83a2',
    500: '#8a517c',
    950: '#000000',
  },
}
SCSS
$custom: #8a517c;
$custom-light: #ad83a2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a517c",
  "rgb": {
    "r": 138,
    "g": 81,
    "b": 124
  },
  "hsl": {
    "h": 314.737,
    "s": 26.027,
    "l": 42.941
  },
  "oklch": {
    "l": 0.51539,
    "c": 0.09594,
    "h": 336.6
  },
  "luminance": 0.12743
}

Semantic roles & 50–950 ramp

primary
#8A517C
secondary
#89AE92
accent
#C27C65
background
#FAF8F9
surface
#F4EFF2
border
#CECACC
text
#100B0F
muted
#7F7C7E

Preview Lab

Preview with #8A517C

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

Preview Lab → · Contrast checker → · Palette generator →

#8A517C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva