#8728B2#8728B2

#8728B2 is a mid, highly saturated purple. Relative luminance 0.099; OKLCH L 48.9% C 0.208 H 312.5°. Best body text is #FFFFFF at 7.06:1 contrast (WCAG AA passes).

Color values

HEX#8728B2
RGBrgb(135, 40, 178)
HSLhsl(281, 63%, 43%)
HSVhsv(281, 78%, 70%)
CMYKcmyk(24.2%, 77.5%, 0%, 30.2%)
CIE-LABlab(37.63, 60.07, -54.30)
CIE-LCHlch(37.63, 80.97, 317.89°)
OKLaboklab(48.93% 0.1406 -0.1537)
OKLCHoklch(48.93% 0.208 312.5)
XYZxyz(18.7849, 9.8834, 43.0290)
Luminance0.0988 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8728B2 #53B228
analogous
#4228B2 #8728B2 #B22898
triadic
#8728B2 #B28728 #28B287
tetradic
#8728B2 #B24228 #53B228 #2898B2
square
#8728B2 #B24228 #53B228 #2898B2
split-complementary
#8728B2 #98B228 #28B242
monochromatic
#3B124E #611D80 #8728B2 #A743D5 #BE75E0

Accessibility & contrast

On white

7.06
#8728B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#8728B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8728B2
7.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8728B2#FFFFFF#000000##FFFFFF
##8728B21.007.062.987.06
#FFFFFF7.061.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B6
Deuteranopia (green-blind)
#115AAF
Tritanopia (blue-blind)
#82496C
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #8728b2;
/* rgb */ color: rgb(135, 40, 178);
/* oklch */ color: oklch(48.9% 0.208 312.5);
Tailwind
colors: {
  custom: {
    50: '#af6dca',
    500: '#8728b2',
    950: '#000000',
  },
}
SCSS
$custom: #8728b2;
$custom-light: #af6dca;
$custom-dark: #000000;
JSON
{
  "hex": "#8728b2",
  "rgb": {
    "r": 135,
    "g": 40,
    "b": 178
  },
  "hsl": {
    "h": 281.304,
    "s": 63.303,
    "l": 42.745
  },
  "oklch": {
    "l": 0.48934,
    "c": 0.20831,
    "h": 312.5
  },
  "luminance": 0.09883
}

Semantic roles & 50–950 ramp

primary
#8728B2
secondary
#8AC76F
accent
#E64175
background
#FBF6FC
surface
#F6ECF8
border
#D0C7D1
text
#110813
muted
#807B82

Preview Lab

Preview with #8728B2

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

Preview Lab → · Contrast checker → · Palette generator →

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