#9728BD#9728BD

#9728BD is a mid, highly saturated purple. Relative luminance 0.118; OKLCH L 51.9% C 0.223 H 315.5°. Best body text is #FFFFFF at 6.26:1 contrast (WCAG AA passes).

Color values

HEX#9728BD
RGBrgb(151, 40, 189)
HSLhsl(285, 65%, 45%)
HSVhsv(285, 79%, 74%)
CMYKcmyk(20.1%, 78.8%, 0%, 25.9%)
CIE-LABlab(40.85, 65.19, -55.46)
CIE-LCHlch(40.85, 85.59, 319.61°)
OKLaboklab(51.94% 0.1591 -0.1566)
OKLCHoklch(51.94% 0.223 315.5)
XYZxyz(22.7051, 11.7719, 49.2104)
Luminance0.1177 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9728BD #4EBD28
analogous
#4C28BD #9728BD #BD2899
triadic
#9728BD #BD9728 #28BD97
tetradic
#9728BD #BD4C28 #4EBD28 #2899BD
square
#9728BD #BD4C28 #4EBD28 #2899BD
split-complementary
#9728BD #99BD28 #28BD4C
monochromatic
#461358 #6F1D8A #9728BD #B44AD9 #C97CE3

Accessibility & contrast

On white

6.26
#9728BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#9728BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9728BD
6.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9728BD#FFFFFF#000000##FFFFFF
##9728BD1.006.263.356.26
#FFFFFF6.261.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC1
Deuteranopia (green-blind)
#2263BA
Tritanopia (blue-blind)
#944B73
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #9728bd;
/* rgb */ color: rgb(151, 40, 189);
/* oklch */ color: oklch(51.9% 0.223 315.5);
Tailwind
colors: {
  custom: {
    50: '#ba70d2',
    500: '#9728bd',
    950: '#000000',
  },
}
SCSS
$custom: #9728bd;
$custom-light: #ba70d2;
$custom-dark: #000000;
JSON
{
  "hex": "#9728bd",
  "rgb": {
    "r": 151,
    "g": 40,
    "b": 189
  },
  "hsl": {
    "h": 284.698,
    "s": 65.066,
    "l": 44.902
  },
  "oklch": {
    "l": 0.51937,
    "c": 0.22318,
    "h": 315.5
  },
  "luminance": 0.11771
}

Semantic roles & 50–950 ramp

primary
#9728BD
secondary
#8BCB75
accent
#E8406B
background
#FBF7FD
surface
#F7EDFA
border
#D0C8D3
text
#120814
muted
#817B83

Preview Lab

Preview with #9728BD

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

Preview Lab → · Contrast checker → · Palette generator →

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