#9F28CA#9F28CA

#9F28CA is a mid, highly saturated purple. Relative luminance 0.132; OKLCH L 54.0% C 0.237 H 314.7°. Best body text is #FFFFFF at 5.78:1 contrast (WCAG AA passes).

Color values

HEX#9F28CA
RGBrgb(159, 40, 202)
HSLhsl(284, 67%, 47%)
HSVhsv(284, 80%, 79%)
CMYKcmyk(21.3%, 80.2%, 0%, 20.8%)
CIE-LABlab(42.99, 69.10, -59.52)
CIE-LCHlch(42.99, 91.20, 319.26°)
OKLaboklab(53.97% 0.1666 -0.1682)
OKLCHoklch(53.97% 0.237 314.7)
XYZxyz(25.7158, 13.1537, 57.0500)
Luminance0.1315 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F28CA #53CA28
analogous
#4E28CA #9F28CA #CA28A4
triadic
#9F28CA #CA9F28 #28CA9F
tetradic
#9F28CA #CA4E28 #53CA28 #28A4CA
square
#9F28CA #CA4E28 #53CA28 #28A4CA
split-complementary
#9F28CA #A4CA28 #28CA4E
monochromatic
#4F1464 #771E97 #9F28CA #B852DD #CD85E7

Accessibility & contrast

On white

5.78
#9F28CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#9F28CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F28CA
5.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F28CA#FFFFFF#000000##FFFFFF
##9F28CA1.005.783.635.78
#FFFFFF5.781.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FCE
Deuteranopia (green-blind)
#1B68C7
Tritanopia (blue-blind)
#9B507A
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #9f28ca;
/* rgb */ color: rgb(159, 40, 202);
/* oklch */ color: oklch(54.0% 0.237 314.7);
Tailwind
colors: {
  custom: {
    50: '#c071db',
    500: '#9f28ca',
    950: '#000000',
  },
}
SCSS
$custom: #9f28ca;
$custom-light: #c071db;
$custom-dark: #000000;
JSON
{
  "hex": "#9f28ca",
  "rgb": {
    "r": 159,
    "g": 40,
    "b": 202
  },
  "hsl": {
    "h": 284.074,
    "s": 66.942,
    "l": 47.451
  },
  "oklch": {
    "l": 0.53975,
    "c": 0.23674,
    "h": 314.7
  },
  "luminance": 0.13153
}

Semantic roles & 50–950 ramp

primary
#9F28CA
secondary
#94D07E
accent
#EA3E6C
background
#FCF7FD
surface
#F8EDFB
border
#D1C8D4
text
#130915
muted
#827B83

Preview Lab

Preview with #9F28CA

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

Preview Lab → · Contrast checker → · Palette generator →

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