#8728BD#8728BD

#8728BD is a mid, highly saturated violet. Relative luminance 0.103; OKLCH L 49.8% C 0.218 H 309.3°. Best body text is #FFFFFF at 6.84:1 contrast (WCAG AA passes).

Color values

HEX#8728BD
RGBrgb(135, 40, 189)
HSLhsl(278, 65%, 45%)
HSVhsv(278, 79%, 74%)
CMYKcmyk(28.6%, 78.8%, 0%, 25.9%)
CIE-LABlab(38.45, 62.36, -59.47)
CIE-LCHlch(38.45, 86.17, 316.36°)
OKLaboklab(49.77% 0.1384 -0.1688)
OKLCHoklch(49.77% 0.218 309.3)
XYZxyz(19.9339, 10.3430, 49.0805)
Luminance0.1034 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8728BD #5EBD28
analogous
#3C28BD #8728BD #BD28A9
triadic
#8728BD #BD8728 #28BD87
tetradic
#8728BD #BD3C28 #5EBD28 #28A9BD
square
#8728BD #BD3C28 #5EBD28 #28A9BD
split-complementary
#8728BD #A9BD28 #28BD3C
monochromatic
#3F1358 #631D8A #8728BD #A54AD9 #BE7CE3

Accessibility & contrast

On white

6.84
#8728BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#8728BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8728BD
6.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8728BD#FFFFFF#000000##FFFFFF
##8728BD1.006.843.076.84
#FFFFFF6.841.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C1
Deuteranopia (green-blind)
#005CBA
Tritanopia (blue-blind)
#7F4E73
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #8728bd;
/* rgb */ color: rgb(135, 40, 189);
/* oklch */ color: oklch(49.8% 0.218 309.3);
Tailwind
colors: {
  custom: {
    50: '#af6ed2',
    500: '#8728bd',
    950: '#000000',
  },
}
SCSS
$custom: #8728bd;
$custom-light: #af6ed2;
$custom-dark: #000000;
JSON
{
  "hex": "#8728bd",
  "rgb": {
    "r": 135,
    "g": 40,
    "b": 189
  },
  "hsl": {
    "h": 278.255,
    "s": 65.066,
    "l": 44.902
  },
  "oklch": {
    "l": 0.49766,
    "c": 0.21829,
    "h": 309.3
  },
  "luminance": 0.10343
}

Semantic roles & 50–950 ramp

primary
#8728BD
secondary
#95CB75
accent
#E8407D
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110814
muted
#807B83

Preview Lab

Preview with #8728BD

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

Preview Lab → · Contrast checker → · Palette generator →

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