#9728BC#9728BC

#9728BC is a mid, highly saturated purple. Relative luminance 0.117; OKLCH L 51.9% C 0.222 H 315.7°. Best body text is #FFFFFF at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#9728BC
RGBrgb(151, 40, 188)
HSLhsl(285, 65%, 45%)
HSVhsv(285, 79%, 74%)
CMYKcmyk(19.7%, 78.7%, 0%, 26.3%)
CIE-LABlab(40.78, 65.00, -54.99)
CIE-LCHlch(40.78, 85.14, 319.77°)
OKLaboklab(51.87% 0.1592 -0.1552)
OKLCHoklch(51.87% 0.222 315.7)
XYZxyz(22.5969, 11.7286, 48.6407)
Luminance0.1173 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9728BC #4DBC28
analogous
#4D28BC #9728BC #BC2897
triadic
#9728BC #BC9728 #28BC97
tetradic
#9728BC #BC4D28 #4DBC28 #2897BC
square
#9728BC #BC4D28 #4DBC28 #2897BC
split-complementary
#9728BC #97BC28 #28BC4D
monochromatic
#461357 #6E1D8A #9728BC #B449D8 #C97BE3

Accessibility & contrast

On white

6.28
#9728BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #9728BC
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9728BC#FFFFFF#000000##FFFFFF
##9728BC1.006.283.356.28
#FFFFFF6.281.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC0
Deuteranopia (green-blind)
#2463B9
Tritanopia (blue-blind)
#944B72
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #9728bc;
/* rgb */ color: rgb(151, 40, 188);
/* oklch */ color: oklch(51.9% 0.222 315.7);
Tailwind
colors: {
  custom: {
    50: '#ba6fd1',
    500: '#9728bc',
    950: '#000000',
  },
}
SCSS
$custom: #9728bc;
$custom-light: #ba6fd1;
$custom-dark: #000000;
JSON
{
  "hex": "#9728bc",
  "rgb": {
    "r": 151,
    "g": 40,
    "b": 188
  },
  "hsl": {
    "h": 285,
    "s": 64.912,
    "l": 44.706
  },
  "oklch": {
    "l": 0.51866,
    "c": 0.22233,
    "h": 315.7
  },
  "luminance": 0.11728
}

Semantic roles & 50–950 ramp

primary
#9728BC
secondary
#8ACB75
accent
#E8406A
background
#FBF7FC
surface
#F7EDF9
border
#D0C8D2
text
#120814
muted
#817B82

Preview Lab

Preview with #9728BC

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

Preview Lab → · Contrast checker → · Palette generator →

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