#8728BC#8728BC

#8728BC is a mid, highly saturated violet. Relative luminance 0.103; OKLCH L 49.7% C 0.217 H 309.6°. Best body text is #FFFFFF at 6.86:1 contrast (WCAG AA passes).

Color values

HEX#8728BC
RGBrgb(135, 40, 188)
HSLhsl(279, 65%, 45%)
HSVhsv(279, 79%, 74%)
CMYKcmyk(28.2%, 78.7%, 0%, 26.3%)
CIE-LABlab(38.38, 62.15, -59.00)
CIE-LCHlch(38.38, 85.70, 316.49°)
OKLaboklab(49.69% 0.1386 -0.1675)
OKLCHoklch(49.69% 0.217 309.6)
XYZxyz(19.8257, 10.2997, 48.5108)
Luminance0.1030 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8728BC #5DBC28
analogous
#3D28BC #8728BC #BC28A7
triadic
#8728BC #BC8728 #28BC87
tetradic
#8728BC #BC3D28 #5DBC28 #28A7BC
square
#8728BC #BC3D28 #5DBC28 #28A7BC
split-complementary
#8728BC #A7BC28 #28BC3D
monochromatic
#3F1357 #631D8A #8728BC #A549D8 #BE7BE3

Accessibility & contrast

On white

6.86
#8728BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#8728BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8728BC
6.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8728BC#FFFFFF#000000##FFFFFF
##8728BC1.006.863.066.86
#FFFFFF6.861.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C0
Deuteranopia (green-blind)
#005CB9
Tritanopia (blue-blind)
#7F4D72
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #8728bc;
/* rgb */ color: rgb(135, 40, 188);
/* oklch */ color: oklch(49.7% 0.217 309.6);
Tailwind
colors: {
  custom: {
    50: '#af6dd1',
    500: '#8728bc',
    950: '#000000',
  },
}
SCSS
$custom: #8728bc;
$custom-light: #af6dd1;
$custom-dark: #000000;
JSON
{
  "hex": "#8728bc",
  "rgb": {
    "r": 135,
    "g": 40,
    "b": 188
  },
  "hsl": {
    "h": 278.514,
    "s": 64.912,
    "l": 44.706
  },
  "oklch": {
    "l": 0.49689,
    "c": 0.21739,
    "h": 309.6
  },
  "luminance": 0.10299
}

Semantic roles & 50–950 ramp

primary
#8728BC
secondary
#94CB75
accent
#E8407C
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110814
muted
#807B83

Preview Lab

Preview with #8728BC

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

Preview Lab → · Contrast checker → · Palette generator →

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