#9F28D1#9F28D1

#9F28D1 is a mid, highly saturated purple. Relative luminance 0.135; OKLCH L 54.5% C 0.243 H 312.9°. Best body text is #FFFFFF at 5.68:1 contrast (WCAG AA passes).

Color values

HEX#9F28D1
RGBrgb(159, 40, 209)
HSLhsl(282, 68%, 49%)
HSVhsv(282, 81%, 82%)
CMYKcmyk(23.9%, 80.9%, 0%, 18%)
CIE-LABlab(43.50, 70.45, -62.76)
CIE-LCHlch(43.50, 94.35, 318.31°)
OKLaboklab(54.48% 0.1651 -0.1777)
OKLCHoklch(54.48% 0.243 312.9)
XYZxyz(26.5634, 13.4928, 61.5143)
Luminance0.1349 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F28D1 #5AD128
analogous
#4B28D1 #9F28D1 #D128AE
triadic
#9F28D1 #D19F28 #28D19F
tetradic
#9F28D1 #D14B28 #5AD128 #28AED1
square
#9F28D1 #D14B28 #5AD128 #28AED1
split-complementary
#9F28D1 #AED128 #28D14B
monochromatic
#51146A #781E9E #9F28D1 #B757DF #CD8BE9

Accessibility & contrast

On white

5.68
#9F28D1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.70
#9F28D1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F28D1
5.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F28D1#FFFFFF#000000##FFFFFF
##9F28D11.005.683.705.68
#FFFFFF5.681.0021.001.00
#0000003.7021.001.0021.00
##FFFFFF5.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061D5
Deuteranopia (green-blind)
#0169CE
Tritanopia (blue-blind)
#99537E
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #9f28d1;
/* rgb */ color: rgb(159, 40, 209);
/* oklch */ color: oklch(54.5% 0.243 312.9);
Tailwind
colors: {
  custom: {
    50: '#c172e0',
    500: '#9f28d1',
    950: '#000000',
  },
}
SCSS
$custom: #9f28d1;
$custom-light: #c172e0;
$custom-dark: #000000;
JSON
{
  "hex": "#9f28d1",
  "rgb": {
    "r": 159,
    "g": 40,
    "b": 209
  },
  "hsl": {
    "h": 282.249,
    "s": 67.871,
    "l": 48.824
  },
  "oklch": {
    "l": 0.54485,
    "c": 0.24259,
    "h": 312.9
  },
  "luminance": 0.13492
}

Semantic roles & 50–950 ramp

primary
#9F28D1
secondary
#9AD382
accent
#EB3D70
background
#FCF7FD
surface
#F8EDFB
border
#D1C8D4
text
#130915
muted
#827B83

Preview Lab

Preview with #9F28D1

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

Preview Lab → · Contrast checker → · Palette generator →

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