#9F28AC#9F28AC

#9F28AC is a mid, highly saturated purple. Relative luminance 0.119; OKLCH L 51.9% C 0.212 H 323.6°. Best body text is #FFFFFF at 6.23:1 contrast (WCAG AA passes).

Color values

HEX#9F28AC
RGBrgb(159, 40, 172)
HSLhsl(294, 62%, 42%)
HSVhsv(294, 77%, 67%)
CMYKcmyk(7.6%, 76.7%, 0%, 32.5%)
CIE-LABlab(41.01, 63.60, -45.10)
CIE-LCHlch(41.01, 77.97, 324.66°)
OKLaboklab(51.94% 0.1707 -0.1259)
OKLCHoklch(51.94% 0.212 323.6)
XYZxyz(22.5026, 11.8685, 40.1273)
Luminance0.1187 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F28AC #35AC28
analogous
#5D28AC #9F28AC #AC2877
triadic
#9F28AC #AC9F28 #28AC9F
tetradic
#9F28AC #AC5D28 #35AC28 #2877AC
square
#9F28AC #AC5D28 #35AC28 #2877AC
split-complementary
#9F28AC #77AC28 #28AC5D
monochromatic
#431149 #711C7A #9F28AC #C43FD2 #D371DE

Accessibility & contrast

On white

6.23
#9F28AC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#9F28AC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F28AC
6.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F28AC#FFFFFF#000000##FFFFFF
##9F28AC1.006.233.376.23
#FFFFFF6.231.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058B0
Deuteranopia (green-blind)
#4065A9
Tritanopia (blue-blind)
#A24169
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #9f28ac;
/* rgb */ color: rgb(159, 40, 172);
/* oklch */ color: oklch(51.9% 0.212 323.6);
Tailwind
colors: {
  custom: {
    50: '#bf70c5',
    500: '#9f28ac',
    950: '#000000',
  },
}
SCSS
$custom: #9f28ac;
$custom-light: #bf70c5;
$custom-dark: #000000;
JSON
{
  "hex": "#9f28ac",
  "rgb": {
    "r": 159,
    "g": 40,
    "b": 172
  },
  "hsl": {
    "h": 294.091,
    "s": 62.264,
    "l": 41.569
  },
  "oklch": {
    "l": 0.51942,
    "c": 0.21214,
    "h": 323.6
  },
  "luminance": 0.11867
}

Semantic roles & 50–950 ramp

primary
#9F28AC
secondary
#74C56B
accent
#E54253
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130813
muted
#827B82

Preview Lab

Preview with #9F28AC

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

Preview Lab → · Contrast checker → · Palette generator →

#9F28AC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva