#9F28AA#9F28AA

#9F28AA is a mid, highly saturated purple. Relative luminance 0.118; OKLCH L 51.8% C 0.211 H 324.2°. Best body text is #FFFFFF at 6.25:1 contrast (WCAG AA passes).

Color values

HEX#9F28AA
RGBrgb(159, 40, 170)
HSLhsl(295, 62%, 41%)
HSVhsv(295, 76%, 67%)
CMYKcmyk(6.5%, 76.5%, 0%, 33.3%)
CIE-LABlab(40.88, 63.25, -44.11)
CIE-LCHlch(40.88, 77.11, 325.11°)
OKLaboklab(51.82% 0.1709 -0.123)
OKLCHoklch(51.82% 0.211 324.2)
XYZxyz(22.3120, 11.7922, 39.1233)
Luminance0.1179 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F28AA #33AA28
analogous
#5E28AA #9F28AA #AA2874
triadic
#9F28AA #AA9F28 #28AA9F
tetradic
#9F28AA #AA5E28 #33AA28 #2874AA
square
#9F28AA #AA5E28 #33AA28 #2874AA
split-complementary
#9F28AA #74AA28 #28AA5E
monochromatic
#421147 #711C78 #9F28AA #C53ED2 #D46FDD

Accessibility & contrast

On white

6.25
#9F28AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#9F28AA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F28AA
6.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F28AA#FFFFFF#000000##FFFFFF
##9F28AA1.006.253.366.25
#FFFFFF6.251.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057AD
Deuteranopia (green-blind)
#4265A7
Tritanopia (blue-blind)
#A24068
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #9f28aa;
/* rgb */ color: rgb(159, 40, 170);
/* oklch */ color: oklch(51.8% 0.211 324.2);
Tailwind
colors: {
  custom: {
    50: '#bf70c4',
    500: '#9f28aa',
    950: '#000000',
  },
}
SCSS
$custom: #9f28aa;
$custom-light: #bf70c4;
$custom-dark: #000000;
JSON
{
  "hex": "#9f28aa",
  "rgb": {
    "r": 159,
    "g": 40,
    "b": 170
  },
  "hsl": {
    "h": 294.923,
    "s": 61.905,
    "l": 41.176
  },
  "oklch": {
    "l": 0.51816,
    "c": 0.21054,
    "h": 324.2
  },
  "luminance": 0.11791
}

Semantic roles & 50–950 ramp

primary
#9F28AA
secondary
#71C46A
accent
#E54351
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130813
muted
#827B82

Preview Lab

Preview with #9F28AA

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

Preview Lab → · Contrast checker → · Palette generator →

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