#8728A4#8728A4

#8728A4 is a mid, vivid purple. Relative luminance 0.093; OKLCH L 47.9% C 0.196 H 316.9°. Best body text is #FFFFFF at 7.32:1 contrast (WCAG AA passes).

Color values

HEX#8728A4
RGBrgb(135, 40, 164)
HSLhsl(286, 61%, 40%)
HSVhsv(286, 76%, 64%)
CMYKcmyk(17.7%, 75.6%, 0%, 35.7%)
CIE-LABlab(36.65, 57.24, -47.52)
CIE-LCHlch(36.65, 74.40, 320.30°)
OKLaboklab(47.93% 0.1429 -0.1338)
OKLCHoklch(47.93% 0.196 316.9)
XYZxyz(17.4503, 9.3496, 36.0002)
Luminance0.0935 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8728A4 #45A428
analogous
#4928A4 #8728A4 #A42883
triadic
#8728A4 #A48728 #28A487
tetradic
#8728A4 #A44928 #45A428 #2883A4
square
#8728A4 #A44928 #45A428 #2883A4
split-complementary
#8728A4 #83A428 #28A449
monochromatic
#361042 #5F1C73 #8728A4 #AC3ACF #C16BDB

Accessibility & contrast

On white

7.32
#8728A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#8728A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8728A4
7.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8728A4#FFFFFF#000000##FFFFFF
##8728A41.007.322.877.32
#FFFFFF7.321.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A7
Deuteranopia (green-blind)
#2959A1
Tritanopia (blue-blind)
#854364
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #8728a4;
/* rgb */ color: rgb(135, 40, 164);
/* oklch */ color: oklch(47.9% 0.196 316.9);
Tailwind
colors: {
  custom: {
    50: '#ae6cc0',
    500: '#8728a4',
    950: '#000000',
  },
}
SCSS
$custom: #8728a4;
$custom-light: #ae6cc0;
$custom-dark: #000000;
JSON
{
  "hex": "#8728a4",
  "rgb": {
    "r": 135,
    "g": 40,
    "b": 164
  },
  "hsl": {
    "h": 285.968,
    "s": 60.784,
    "l": 40
  },
  "oklch": {
    "l": 0.47929,
    "c": 0.19571,
    "h": 316.9
  },
  "luminance": 0.09349
}

Semantic roles & 50–950 ramp

primary
#8728A4
secondary
#7CC166
accent
#E44469
background
#FBF6FB
surface
#F6ECF7
border
#D0C7D0
text
#110712
muted
#807A81

Preview Lab

Preview with #8728A4

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

Preview Lab → · Contrast checker → · Palette generator →

#8728A4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva