#8728BA#8728BA

#8728BA is a mid, highly saturated violet. Relative luminance 0.102; OKLCH L 49.5% C 0.216 H 310.2°. Best body text is #FFFFFF at 6.90:1 contrast (WCAG AA passes).

Color values

HEX#8728BA
RGBrgb(135, 40, 186)
HSLhsl(279, 65%, 44%)
HSVhsv(279, 78%, 73%)
CMYKcmyk(27.4%, 78.5%, 0%, 27.1%)
CIE-LABlab(38.22, 61.73, -58.07)
CIE-LCHlch(38.22, 84.75, 316.75°)
OKLaboklab(49.54% 0.139 -0.1647)
OKLCHoklch(49.54% 0.216 310.2)
XYZxyz(19.6116, 10.2141, 47.3833)
Luminance0.1021 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8728BA #5BBA28
analogous
#3E28BA #8728BA #BA28A4
triadic
#8728BA #BA8728 #28BA87
tetradic
#8728BA #BA3E28 #5BBA28 #28A4BA
square
#8728BA #BA3E28 #5BBA28 #28A4BA
split-complementary
#8728BA #A4BA28 #28BA3E
monochromatic
#3E1255 #621D88 #8728BA #A548D8 #BE7AE2

Accessibility & contrast

On white

6.90
#8728BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#8728BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8728BA
6.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8728BA#FFFFFF#000000##FFFFFF
##8728BA1.006.903.046.90
#FFFFFF6.901.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BE
Deuteranopia (green-blind)
#005BB7
Tritanopia (blue-blind)
#804C71
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #8728ba;
/* rgb */ color: rgb(135, 40, 186);
/* oklch */ color: oklch(49.5% 0.216 310.2);
Tailwind
colors: {
  custom: {
    50: '#af6dd0',
    500: '#8728ba',
    950: '#000000',
  },
}
SCSS
$custom: #8728ba;
$custom-light: #af6dd0;
$custom-dark: #000000;
JSON
{
  "hex": "#8728ba",
  "rgb": {
    "r": 135,
    "g": 40,
    "b": 186
  },
  "hsl": {
    "h": 279.041,
    "s": 64.602,
    "l": 44.314
  },
  "oklch": {
    "l": 0.49536,
    "c": 0.21557,
    "h": 310.2
  },
  "luminance": 0.10214
}

Semantic roles & 50–950 ramp

primary
#8728BA
secondary
#92CA73
accent
#E8407B
background
#FBF6FC
surface
#F6ECF9
border
#D0C7D2
text
#110814
muted
#807B82

Preview Lab

Preview with #8728BA

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

Preview Lab → · Contrast checker → · Palette generator →

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