#9F28AB#9F28AB

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

Color values

HEX#9F28AB
RGBrgb(159, 40, 171)
HSLhsl(295, 62%, 41%)
HSVhsv(295, 77%, 67%)
CMYKcmyk(7%, 76.6%, 0%, 32.9%)
CIE-LABlab(40.95, 63.42, -44.61)
CIE-LCHlch(40.95, 77.54, 324.88°)
OKLaboklab(51.88% 0.1708 -0.1245)
OKLCHoklch(51.88% 0.211 323.9)
XYZxyz(22.4069, 11.8302, 39.6234)
Luminance0.1183 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F28AB #34AB28
analogous
#5E28AB #9F28AB #AB2876
triadic
#9F28AB #AB9F28 #28AB9F
tetradic
#9F28AB #AB5E28 #34AB28 #2876AB
square
#9F28AB #AB5E28 #34AB28 #2876AB
split-complementary
#9F28AB #76AB28 #28AB5E
monochromatic
#431148 #711C79 #9F28AB #C43ED2 #D370DE

Accessibility & contrast

On white

6.24
#9F28AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #9F28AB
6.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F28AB#FFFFFF#000000##FFFFFF
##9F28AB1.006.243.376.24
#FFFFFF6.241.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058AF
Deuteranopia (green-blind)
#4165A8
Tritanopia (blue-blind)
#A24169
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #9f28ab;
/* rgb */ color: rgb(159, 40, 171);
/* oklch */ color: oklch(51.9% 0.211 323.9);
Tailwind
colors: {
  custom: {
    50: '#bf70c5',
    500: '#9f28ab',
    950: '#000000',
  },
}
SCSS
$custom: #9f28ab;
$custom-light: #bf70c5;
$custom-dark: #000000;
JSON
{
  "hex": "#9f28ab",
  "rgb": {
    "r": 159,
    "g": 40,
    "b": 171
  },
  "hsl": {
    "h": 294.504,
    "s": 62.085,
    "l": 41.373
  },
  "oklch": {
    "l": 0.51879,
    "c": 0.21134,
    "h": 323.9
  },
  "luminance": 0.11829
}

Semantic roles & 50–950 ramp

primary
#9F28AB
secondary
#73C46A
accent
#E54352
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130813
muted
#827B82

Preview Lab

Preview with #9F28AB

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

Preview Lab → · Contrast checker → · Palette generator →

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