#9728B4#9728B4

#9728B4 is a mid, highly saturated purple. Relative luminance 0.114; OKLCH L 51.3% C 0.216 H 318.1°. Best body text is #FFFFFF at 6.41:1 contrast (WCAG AA passes).

Color values

HEX#9728B4
RGBrgb(151, 40, 180)
HSLhsl(288, 64%, 43%)
HSVhsv(288, 78%, 71%)
CMYKcmyk(16.1%, 77.8%, 0%, 29.4%)
CIE-LABlab(40.23, 63.48, -51.16)
CIE-LCHlch(40.23, 81.52, 321.13°)
OKLaboklab(51.31% 0.1605 -0.1439)
OKLCHoklch(51.31% 0.216 318.1)
XYZxyz(21.7584, 11.3932, 44.2242)
Luminance0.1139 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9728B4 #45B428
analogous
#5128B4 #9728B4 #B4288B
triadic
#9728B4 #B49728 #28B497
tetradic
#9728B4 #B45128 #45B428 #288BB4
square
#9728B4 #B45128 #45B428 #288BB4
split-complementary
#9728B4 #8BB428 #28B451
monochromatic
#431250 #6D1D82 #9728B4 #B744D5 #CA76E1

Accessibility & contrast

On white

6.41
#9728B4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#9728B4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9728B4
6.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9728B4#FFFFFF#000000##FFFFFF
##9728B41.006.413.286.41
#FFFFFF6.411.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058B8
Deuteranopia (green-blind)
#2F62B1
Tritanopia (blue-blind)
#96476E
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #9728b4;
/* rgb */ color: rgb(151, 40, 180);
/* oklch */ color: oklch(51.3% 0.216 318.1);
Tailwind
colors: {
  custom: {
    50: '#ba6fcb',
    500: '#9728b4',
    950: '#000000',
  },
}
SCSS
$custom: #9728b4;
$custom-light: #ba6fcb;
$custom-dark: #000000;
JSON
{
  "hex": "#9728b4",
  "rgb": {
    "r": 151,
    "g": 40,
    "b": 180
  },
  "hsl": {
    "h": 287.571,
    "s": 63.636,
    "l": 43.137
  },
  "oklch": {
    "l": 0.51308,
    "c": 0.21555,
    "h": 318.1
  },
  "luminance": 0.11392
}

Semantic roles & 50–950 ramp

primary
#9728B4
secondary
#82C870
accent
#E74163
background
#FBF7FC
surface
#F7EDF9
border
#D0C8D2
text
#120813
muted
#817B82

Preview Lab

Preview with #9728B4

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

Preview Lab → · Contrast checker → · Palette generator →

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