#9F28AD#9F28AD

#9F28AD is a mid, highly saturated purple. Relative luminance 0.119; OKLCH L 52.0% C 0.213 H 323.3°. Best body text is #FFFFFF at 6.21:1 contrast (WCAG AA passes).

Color values

HEX#9F28AD
RGBrgb(159, 40, 173)
HSLhsl(294, 62%, 42%)
HSVhsv(294, 77%, 68%)
CMYKcmyk(8.1%, 76.9%, 0%, 32.2%)
CIE-LABlab(41.07, 63.77, -45.60)
CIE-LCHlch(41.07, 78.40, 324.43°)
OKLaboklab(52.01% 0.1706 -0.1274)
OKLCHoklch(52.01% 0.213 323.3)
XYZxyz(22.5990, 11.9070, 40.6350)
Luminance0.1191 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F28AD #36AD28
analogous
#5D28AD #9F28AD #AD2879
triadic
#9F28AD #AD9F28 #28AD9F
tetradic
#9F28AD #AD5D28 #36AD28 #2879AD
square
#9F28AD #AD5D28 #36AD28 #2879AD
split-complementary
#9F28AD #79AD28 #28AD5D
monochromatic
#44114A #711D7B #9F28AD #C33FD3 #D371DE

Accessibility & contrast

On white

6.21
#9F28AD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#9F28AD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F28AD
6.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F28AD#FFFFFF#000000##FFFFFF
##9F28AD1.006.213.386.21
#FFFFFF6.211.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058B1
Deuteranopia (green-blind)
#3F65AA
Tritanopia (blue-blind)
#A2426A
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #9f28ad;
/* rgb */ color: rgb(159, 40, 173);
/* oklch */ color: oklch(52.0% 0.213 323.3);
Tailwind
colors: {
  custom: {
    50: '#bf70c6',
    500: '#9f28ad',
    950: '#000000',
  },
}
SCSS
$custom: #9f28ad;
$custom-light: #bf70c6;
$custom-dark: #000000;
JSON
{
  "hex": "#9f28ad",
  "rgb": {
    "r": 159,
    "g": 40,
    "b": 173
  },
  "hsl": {
    "h": 293.684,
    "s": 62.441,
    "l": 41.765
  },
  "oklch": {
    "l": 0.52006,
    "c": 0.21295,
    "h": 323.3
  },
  "luminance": 0.11906
}

Semantic roles & 50–950 ramp

primary
#9F28AD
secondary
#75C56C
accent
#E64253
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130813
muted
#827B82

Preview Lab

Preview with #9F28AD

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

Preview Lab → · Contrast checker → · Palette generator →

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