#9728B6#9728B6

#9728B6 is a mid, highly saturated purple. Relative luminance 0.115; OKLCH L 51.4% C 0.217 H 317.5°. Best body text is #FFFFFF at 6.37:1 contrast (WCAG AA passes).

Color values

HEX#9728B6
RGBrgb(151, 40, 182)
HSLhsl(287, 64%, 44%)
HSVhsv(287, 78%, 71%)
CMYKcmyk(17%, 78%, 0%, 28.6%)
CIE-LABlab(40.37, 63.85, -52.12)
CIE-LCHlch(40.37, 82.42, 320.78°)
OKLaboklab(51.45% 0.1602 -0.1467)
OKLCHoklch(51.45% 0.217 317.5)
XYZxyz(21.9636, 11.4753, 45.3049)
Luminance0.1147 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9728B6 #47B628
analogous
#5028B6 #9728B6 #B6288E
triadic
#9728B6 #B69728 #28B697
tetradic
#9728B6 #B65028 #47B628 #288EB6
square
#9728B6 #B65028 #47B628 #288EB6
split-complementary
#9728B6 #8EB628 #28B650
monochromatic
#441252 #6D1D84 #9728B6 #B645D6 #CA77E1

Accessibility & contrast

On white

6.37
#9728B6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#9728B6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9728B6
6.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9728B6#FFFFFF#000000##FFFFFF
##9728B61.006.373.296.37
#FFFFFF6.371.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058BA
Deuteranopia (green-blind)
#2C62B3
Tritanopia (blue-blind)
#96486F
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #9728b6;
/* rgb */ color: rgb(151, 40, 182);
/* oklch */ color: oklch(51.4% 0.217 317.5);
Tailwind
colors: {
  custom: {
    50: '#ba6fcd',
    500: '#9728b6',
    950: '#000000',
  },
}
SCSS
$custom: #9728b6;
$custom-light: #ba6fcd;
$custom-dark: #000000;
JSON
{
  "hex": "#9728b6",
  "rgb": {
    "r": 151,
    "g": 40,
    "b": 182
  },
  "hsl": {
    "h": 286.901,
    "s": 63.964,
    "l": 43.529
  },
  "oklch": {
    "l": 0.51446,
    "c": 0.21724,
    "h": 317.5
  },
  "luminance": 0.11474
}

Semantic roles & 50–950 ramp

primary
#9728B6
secondary
#84C971
accent
#E74165
background
#FBF7FC
surface
#F7EDF9
border
#D0C8D2
text
#120813
muted
#817B82

Preview Lab

Preview with #9728B6

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

Preview Lab → · Contrast checker → · Palette generator →

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