#8728A2#8728A2

#8728A2 is a mid, vivid purple. Relative luminance 0.093; OKLCH L 47.8% C 0.194 H 317.6°. Best body text is #FFFFFF at 7.35:1 contrast (WCAG AA passes).

Color values

HEX#8728A2
RGBrgb(135, 40, 162)
HSLhsl(287, 60%, 40%)
HSVhsv(287, 75%, 64%)
CMYKcmyk(16.7%, 75.3%, 0%, 36.5%)
CIE-LABlab(36.51, 56.85, -46.54)
CIE-LCHlch(36.51, 73.47, 320.70°)
OKLaboklab(47.79% 0.1431 -0.1309)
OKLCHoklch(47.79% 0.194 317.6)
XYZxyz(17.2711, 9.2779, 35.0565)
Luminance0.0928 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8728A2 #43A228
analogous
#4A28A2 #8728A2 #A22880
triadic
#8728A2 #A28728 #28A287
tetradic
#8728A2 #A24A28 #43A228 #2880A2
square
#8728A2 #A24A28 #43A228 #2880A2
split-complementary
#8728A2 #80A228 #28A24A
monochromatic
#351040 #5E1C71 #8728A2 #AD39CE #C16ADA

Accessibility & contrast

On white

7.35
#8728A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#8728A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8728A2
7.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8728A2#FFFFFF#000000##FFFFFF
##8728A21.007.352.867.35
#FFFFFF7.351.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A5
Deuteranopia (green-blind)
#2C599F
Tritanopia (blue-blind)
#864263
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #8728a2;
/* rgb */ color: rgb(135, 40, 162);
/* oklch */ color: oklch(47.8% 0.194 317.6);
Tailwind
colors: {
  custom: {
    50: '#ae6cbe',
    500: '#8728a2',
    950: '#000000',
  },
}
SCSS
$custom: #8728a2;
$custom-light: #ae6cbe;
$custom-dark: #000000;
JSON
{
  "hex": "#8728a2",
  "rgb": {
    "r": 135,
    "g": 40,
    "b": 162
  },
  "hsl": {
    "h": 286.721,
    "s": 60.396,
    "l": 39.608
  },
  "oklch": {
    "l": 0.4779,
    "c": 0.19393,
    "h": 317.6
  },
  "luminance": 0.09277
}

Semantic roles & 50–950 ramp

primary
#8728A2
secondary
#79C165
accent
#E44468
background
#FBF6FB
surface
#F6ECF7
border
#D0C7D0
text
#110712
muted
#807A81

Preview Lab

Preview with #8728A2

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

Preview Lab → · Contrast checker → · Palette generator →

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