#8A4E87#8A4E87

#8A4E87 is a mid, moderate purple. Relative luminance 0.126; OKLCH L 51.5% C 0.112 H 328.9°. Best body text is #FFFFFF at 5.97:1 contrast (WCAG AA passes).

Color values

HEX#8A4E87
RGBrgb(138, 78, 135)
HSLhsl(303, 28%, 42%)
HSVhsv(303, 43%, 54%)
CMYKcmyk(0%, 43.5%, 2.2%, 45.9%)
CIE-LABlab(42.16, 34.19, -21.25)
CIE-LCHlch(42.16, 40.26, 328.14°)
OKLaboklab(51.52% 0.0958 -0.0579)
OKLCHoklch(51.52% 0.112 328.9)
XYZxyz(17.5785, 12.6022, 24.4235)
Luminance0.1260 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4E87 #4E8A51
analogous
#6F4E8A #8A4E87 #8A4E69
triadic
#8A4E87 #878A4E #4E878A
tetradic
#8A4E87 #8A6F4E #4E8A51 #4E698A
square
#8A4E87 #8A6F4E #4E8A51 #4E698A
split-complementary
#8A4E87 #698A4E #4E8A6F
monochromatic
#3C223B #633861 #8A4E87 #AB6AA8 #C191BF

Accessibility & contrast

On white

5.97
#8A4E87 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#8A4E87 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4E87
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4E87#FFFFFF#000000##FFFFFF
##8A4E871.005.973.525.97
#FFFFFF5.971.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4A5E89
Deuteranopia (green-blind)
#5B6685
Tritanopia (blue-blind)
#8E5364
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #8a4e87;
/* rgb */ color: rgb(138, 78, 135);
/* oklch */ color: oklch(51.5% 0.112 328.9);
Tailwind
colors: {
  custom: {
    50: '#ad81aa',
    500: '#8a4e87',
    950: '#000000',
  },
}
SCSS
$custom: #8a4e87;
$custom-light: #ad81aa;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4e87",
  "rgb": {
    "r": 138,
    "g": 78,
    "b": 135
  },
  "hsl": {
    "h": 303,
    "s": 27.778,
    "l": 42.353
  },
  "oklch": {
    "l": 0.51524,
    "c": 0.11191,
    "h": 328.9
  },
  "luminance": 0.12601
}

Semantic roles & 50–950 ramp

primary
#8A4E87
secondary
#86AE88
accent
#C46964
background
#FAF8FA
surface
#F4EFF4
border
#CECACE
text
#100A10
muted
#7F7C7F

Preview Lab

Preview with #8A4E87

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

Preview Lab → · Contrast checker → · Palette generator →

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