#9728B3#9728B3

#9728B3 is a mid, highly saturated purple. Relative luminance 0.114; OKLCH L 51.2% C 0.215 H 318.4°. Best body text is #FFFFFF at 6.42:1 contrast (WCAG AA passes).

Color values

HEX#9728B3
RGBrgb(151, 40, 179)
HSLhsl(288, 63%, 43%)
HSVhsv(288, 78%, 70%)
CMYKcmyk(15.6%, 77.7%, 0%, 29.8%)
CIE-LABlab(40.17, 63.29, -50.67)
CIE-LCHlch(40.17, 81.07, 321.32°)
OKLaboklab(51.24% 0.1606 -0.1425)
OKLCHoklch(51.24% 0.215 318.4)
XYZxyz(21.6569, 11.3526, 43.6896)
Luminance0.1135 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9728B3 #44B328
analogous
#5228B3 #9728B3 #B32889
triadic
#9728B3 #B39728 #28B397
tetradic
#9728B3 #B35228 #44B328 #2889B3
square
#9728B3 #B35228 #44B328 #2889B3
split-complementary
#9728B3 #89B328 #28B352
monochromatic
#43124F #6D1D81 #9728B3 #B843D5 #CB75E0

Accessibility & contrast

On white

6.42
#9728B3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#9728B3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9728B3
6.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9728B3#FFFFFF#000000##FFFFFF
##9728B31.006.423.276.42
#FFFFFF6.421.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058B7
Deuteranopia (green-blind)
#3062B0
Tritanopia (blue-blind)
#96466D
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #9728b3;
/* rgb */ color: rgb(151, 40, 179);
/* oklch */ color: oklch(51.2% 0.215 318.4);
Tailwind
colors: {
  custom: {
    50: '#ba6fca',
    500: '#9728b3',
    950: '#000000',
  },
}
SCSS
$custom: #9728b3;
$custom-light: #ba6fca;
$custom-dark: #000000;
JSON
{
  "hex": "#9728b3",
  "rgb": {
    "r": 151,
    "g": 40,
    "b": 179
  },
  "hsl": {
    "h": 287.914,
    "s": 63.47,
    "l": 42.941
  },
  "oklch": {
    "l": 0.51239,
    "c": 0.21471,
    "h": 318.4
  },
  "luminance": 0.11352
}

Semantic roles & 50–950 ramp

primary
#9728B3
secondary
#81C86F
accent
#E64163
background
#FBF7FC
surface
#F7EDF8
border
#D0C8D1
text
#120813
muted
#817B82

Preview Lab

Preview with #9728B3

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

Preview Lab → · Contrast checker → · Palette generator →

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