#8728BE#8728BE

#8728BE is a mid, highly saturated violet. Relative luminance 0.104; OKLCH L 49.8% C 0.219 H 309.1°. Best body text is #FFFFFF at 6.82:1 contrast (WCAG AA passes).

Color values

HEX#8728BE
RGBrgb(135, 40, 190)
HSLhsl(278, 65%, 45%)
HSVhsv(278, 79%, 75%)
CMYKcmyk(28.9%, 78.9%, 0%, 25.5%)
CIE-LABlab(38.53, 62.57, -59.93)
CIE-LCHlch(38.53, 86.64, 316.24°)
OKLaboklab(49.84% 0.1381 -0.1702)
OKLCHoklch(49.84% 0.219 309.1)
XYZxyz(20.0428, 10.3866, 49.6542)
Luminance0.1039 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8728BE #5FBE28
analogous
#3C28BE #8728BE #BE28AA
triadic
#8728BE #BE8728 #28BE87
tetradic
#8728BE #BE3C28 #5FBE28 #28AABE
square
#8728BE #BE3C28 #5FBE28 #28AABE
split-complementary
#8728BE #AABE28 #28BE3C
monochromatic
#3F1359 #631D8B #8728BE #A54AD9 #BE7DE4

Accessibility & contrast

On white

6.82
#8728BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#8728BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8728BE
6.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8728BE#FFFFFF#000000##FFFFFF
##8728BE1.006.823.086.82
#FFFFFF6.821.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.821.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8728be;
/* rgb */ color: rgb(135, 40, 190);
/* oklch */ color: oklch(49.8% 0.219 309.1);
Tailwind
colors: {
  custom: {
    50: '#af6ed3',
    500: '#8728be',
    950: '#000000',
  },
}
SCSS
$custom: #8728be;
$custom-light: #af6ed3;
$custom-dark: #000000;
JSON
{
  "hex": "#8728be",
  "rgb": {
    "r": 135,
    "g": 40,
    "b": 190
  },
  "hsl": {
    "h": 278,
    "s": 65.217,
    "l": 45.098
  },
  "oklch": {
    "l": 0.49844,
    "c": 0.21921,
    "h": 309.1
  },
  "luminance": 0.10386
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8728BE

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

Preview Lab → · Contrast checker → · Palette generator →

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