#8728B9#8728B9

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

Color values

HEX#8728B9
RGBrgb(135, 40, 185)
HSLhsl(279, 64%, 44%)
HSVhsv(279, 78%, 73%)
CMYKcmyk(27%, 78.4%, 0%, 27.5%)
CIE-LABlab(38.15, 61.52, -57.60)
CIE-LCHlch(38.15, 84.28, 316.89°)
OKLaboklab(49.46% 0.1392 -0.1634)
OKLCHoklch(49.46% 0.215 310.4)
XYZxyz(19.5057, 10.1717, 46.8253)
Luminance0.1017 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8728B9 #5AB928
analogous
#3F28B9 #8728B9 #B928A3
triadic
#8728B9 #B98728 #28B987
tetradic
#8728B9 #B93F28 #5AB928 #28A3B9
square
#8728B9 #B93F28 #5AB928 #28A3B9
split-complementary
#8728B9 #A3B928 #28B93F
monochromatic
#3E1254 #621D87 #8728B9 #A547D7 #BE79E2

Accessibility & contrast

On white

6.92
#8728B9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#8728B9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8728B9
6.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8728B9#FFFFFF#000000##FFFFFF
##8728B91.006.923.036.92
#FFFFFF6.921.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BD
Deuteranopia (green-blind)
#005BB6
Tritanopia (blue-blind)
#804C70
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #8728b9;
/* rgb */ color: rgb(135, 40, 185);
/* oklch */ color: oklch(49.5% 0.215 310.4);
Tailwind
colors: {
  custom: {
    50: '#af6dcf',
    500: '#8728b9',
    950: '#000000',
  },
}
SCSS
$custom: #8728b9;
$custom-light: #af6dcf;
$custom-dark: #000000;
JSON
{
  "hex": "#8728b9",
  "rgb": {
    "r": 135,
    "g": 40,
    "b": 185
  },
  "hsl": {
    "h": 279.31,
    "s": 64.444,
    "l": 44.118
  },
  "oklch": {
    "l": 0.4946,
    "c": 0.21466,
    "h": 310.4
  },
  "luminance": 0.10171
}

Semantic roles & 50–950 ramp

primary
#8728B9
secondary
#91CA73
accent
#E7407A
background
#FBF6FC
surface
#F6ECF9
border
#D0C7D2
text
#110814
muted
#807B82

Preview Lab

Preview with #8728B9

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

Preview Lab → · Contrast checker → · Palette generator →

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