#8A4E7D#8A4E7D

#8A4E7D is a mid, moderate pink. Relative luminance 0.123; OKLCH L 51.1% C 0.102 H 335.5°. Best body text is #FFFFFF at 6.06:1 contrast (WCAG AA passes).

Color values

HEX#8A4E7D
RGBrgb(138, 78, 125)
HSLhsl(313, 28%, 42%)
HSVhsv(313, 43%, 54%)
CMYKcmyk(0%, 43.5%, 9.4%, 45.9%)
CIE-LABlab(41.74, 32.31, -15.79)
CIE-LCHlch(41.74, 35.97, 333.95°)
OKLaboklab(51.08% 0.0932 -0.0425)
OKLCHoklch(51.08% 0.102 335.5)
XYZxyz(16.9073, 12.3337, 20.8882)
Luminance0.1233 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4E7D #4E8A5B
analogous
#794E8A #8A4E7D #8A4E5F
triadic
#8A4E7D #7D8A4E #4E7D8A
tetradic
#8A4E7D #8A794E #4E8A5B #4E5F8A
square
#8A4E7D #8A794E #4E8A5B #4E5F8A
split-complementary
#8A4E7D #5F8A4E #4E8A79
monochromatic
#3C2236 #63385A #8A4E7D #AB6A9D #C191B7

Accessibility & contrast

On white

6.06
#8A4E7D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#8A4E7D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4E7D
6.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4E7D#FFFFFF#000000##FFFFFF
##8A4E7D1.006.063.476.06
#FFFFFF6.061.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4E5D7F
Deuteranopia (green-blind)
#5E667B
Tritanopia (blue-blind)
#8F5160
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #8a4e7d;
/* rgb */ color: rgb(138, 78, 125);
/* oklch */ color: oklch(51.1% 0.102 335.5);
Tailwind
colors: {
  custom: {
    50: '#ad81a2',
    500: '#8a4e7d',
    950: '#000000',
  },
}
SCSS
$custom: #8a4e7d;
$custom-light: #ad81a2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4e7d",
  "rgb": {
    "r": 138,
    "g": 78,
    "b": 125
  },
  "hsl": {
    "h": 313,
    "s": 27.778,
    "l": 42.353
  },
  "oklch": {
    "l": 0.51075,
    "c": 0.10246,
    "h": 335.5
  },
  "luminance": 0.12333
}

Semantic roles & 50–950 ramp

primary
#8A4E7D
secondary
#86AE8F
accent
#C47964
background
#FAF8FA
surface
#F4EFF3
border
#CECACD
text
#100A0F
muted
#7F7C7F

Preview Lab

Preview with #8A4E7D

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

Preview Lab → · Contrast checker → · Palette generator →

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