#8728C6#8728C6

#8728C6 is a mid, highly saturated violet. Relative luminance 0.107; OKLCH L 50.5% C 0.227 H 307.0°. Best body text is #FFFFFF at 6.67:1 contrast (WCAG AA passes).

Color values

HEX#8728C6
RGBrgb(135, 40, 198)
HSLhsl(276, 66%, 47%)
HSVhsv(276, 80%, 78%)
CMYKcmyk(31.8%, 79.8%, 0%, 22.4%)
CIE-LABlab(39.15, 64.28, -63.60)
CIE-LCHlch(39.15, 90.42, 315.30°)
OKLaboklab(50.47% 0.1362 -0.181)
OKLCHoklch(50.47% 0.227 307)
XYZxyz(20.9413, 10.7460, 54.3861)
Luminance0.1075 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8728C6 #67C628
analogous
#3828C6 #8728C6 #C628B6
triadic
#8728C6 #C68728 #28C687
tetradic
#8728C6 #C63828 #67C628 #28B6C6
square
#8728C6 #C63828 #67C628 #28B6C6
split-complementary
#8728C6 #B6C628 #28C638
monochromatic
#421360 #641E93 #8728C6 #A450DC #BE83E6

Accessibility & contrast

On white

6.67
#8728C6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#8728C6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8728C6
6.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8728C6#FFFFFF#000000##FFFFFF
##8728C61.006.673.156.67
#FFFFFF6.671.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059CA
Deuteranopia (green-blind)
#005DC3
Tritanopia (blue-blind)
#7C5278
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #8728c6;
/* rgb */ color: rgb(135, 40, 198);
/* oklch */ color: oklch(50.5% 0.227 307.0);
Tailwind
colors: {
  custom: {
    50: '#b06ed8',
    500: '#8728c6',
    950: '#000000',
  },
}
SCSS
$custom: #8728c6;
$custom-light: #b06ed8;
$custom-dark: #000000;
JSON
{
  "hex": "#8728c6",
  "rgb": {
    "r": 135,
    "g": 40,
    "b": 198
  },
  "hsl": {
    "h": 276.076,
    "s": 66.387,
    "l": 46.667
  },
  "oklch": {
    "l": 0.50472,
    "c": 0.2265,
    "h": 307
  },
  "luminance": 0.10746
}

Semantic roles & 50–950 ramp

primary
#8728C6
secondary
#9CCF7B
accent
#E93E83
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110815
muted
#807B83

Preview Lab

Preview with #8728C6

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

Preview Lab → · Contrast checker → · Palette generator →

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