#8A4E7B#8A4E7B

#8A4E7B is a mid, moderate pink. Relative luminance 0.123; OKLCH L 51.0% C 0.101 H 336.9°. Best body text is #FFFFFF at 6.08:1 contrast (WCAG AA passes).

Color values

HEX#8A4E7B
RGBrgb(138, 78, 123)
HSLhsl(315, 28%, 42%)
HSVhsv(315, 43%, 54%)
CMYKcmyk(0%, 43.5%, 10.9%, 45.9%)
CIE-LABlab(41.66, 31.95, -14.69)
CIE-LCHlch(41.66, 35.17, 335.31°)
OKLaboklab(50.99% 0.0927 -0.0394)
OKLCHoklch(50.99% 0.101 336.9)
XYZxyz(16.7808, 12.2831, 20.2221)
Luminance0.1228 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4E7B #4E8A5D
analogous
#7B4E8A #8A4E7B #8A4E5D
triadic
#8A4E7B #7B8A4E #4E7B8A
tetradic
#8A4E7B #8A7B4E #4E8A5D #4E5D8A
square
#8A4E7B #8A7B4E #4E8A5D #4E5D8A
split-complementary
#8A4E7B #5D8A4E #4E8A7B
monochromatic
#3C2235 #633858 #8A4E7B #AB6A9B #C191B5

Accessibility & contrast

On white

6.08
#8A4E7B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#8A4E7B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4E7B
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4E7B#FFFFFF#000000##FFFFFF
##8A4E7B1.006.083.466.08
#FFFFFF6.081.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4F5D7D
Deuteranopia (green-blind)
#5F6679
Tritanopia (blue-blind)
#90505F
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #8a4e7b;
/* rgb */ color: rgb(138, 78, 123);
/* oklch */ color: oklch(51.0% 0.101 336.9);
Tailwind
colors: {
  custom: {
    50: '#ad81a1',
    500: '#8a4e7b',
    950: '#000000',
  },
}
SCSS
$custom: #8a4e7b;
$custom-light: #ad81a1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4e7b",
  "rgb": {
    "r": 138,
    "g": 78,
    "b": 123
  },
  "hsl": {
    "h": 315,
    "s": 27.778,
    "l": 42.353
  },
  "oklch": {
    "l": 0.5099,
    "c": 0.10069,
    "h": 336.9
  },
  "luminance": 0.12282
}

Semantic roles & 50–950 ramp

primary
#8A4E7B
secondary
#86AE90
accent
#C47C64
background
#FAF8F9
surface
#F4EFF2
border
#CECACC
text
#100A0F
muted
#7F7C7E

Preview Lab

Preview with #8A4E7B

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

Preview Lab → · Contrast checker → · Palette generator →

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