#9F28B0#9F28B0

#9F28B0 is a mid, highly saturated purple. Relative luminance 0.120; OKLCH L 52.2% C 0.215 H 322.3°. Best body text is #FFFFFF at 6.17:1 contrast (WCAG AA passes).

Color values

HEX#9F28B0
RGBrgb(159, 40, 176)
HSLhsl(293, 63%, 42%)
HSVhsv(293, 77%, 69%)
CMYKcmyk(9.7%, 77.3%, 0%, 31%)
CIE-LABlab(41.25, 64.30, -47.08)
CIE-LCHlch(41.25, 79.70, 323.79°)
OKLaboklab(52.2% 0.1704 -0.1317)
OKLCHoklch(52.2% 0.215 322.3)
XYZxyz(22.8925, 12.0244, 42.1810)
Luminance0.1202 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F28B0 #39B028
analogous
#5B28B0 #9F28B0 #B0287D
triadic
#9F28B0 #B09F28 #28B09F
tetradic
#9F28B0 #B05B28 #39B028 #287DB0
square
#9F28B0 #B05B28 #39B028 #287DB0
split-complementary
#9F28B0 #7DB028 #28B05B
monochromatic
#45114C #721D7E #9F28B0 #C241D4 #D273DF

Accessibility & contrast

On white

6.17
#9F28B0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#9F28B0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F28B0
6.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F28B0#FFFFFF#000000##FFFFFF
##9F28B01.006.173.406.17
#FFFFFF6.171.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059B4
Deuteranopia (green-blind)
#3D66AD
Tritanopia (blue-blind)
#A1436B
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #9f28b0;
/* rgb */ color: rgb(159, 40, 176);
/* oklch */ color: oklch(52.2% 0.215 322.3);
Tailwind
colors: {
  custom: {
    50: '#bf70c8',
    500: '#9f28b0',
    950: '#000000',
  },
}
SCSS
$custom: #9f28b0;
$custom-light: #bf70c8;
$custom-dark: #000000;
JSON
{
  "hex": "#9f28b0",
  "rgb": {
    "r": 159,
    "g": 40,
    "b": 176
  },
  "hsl": {
    "h": 292.5,
    "s": 62.963,
    "l": 42.353
  },
  "oklch": {
    "l": 0.52198,
    "c": 0.21537,
    "h": 322.3
  },
  "luminance": 0.12023
}

Semantic roles & 50–950 ramp

primary
#9F28B0
secondary
#78C66D
accent
#E64256
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130813
muted
#827B82

Preview Lab

Preview with #9F28B0

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

Preview Lab → · Contrast checker → · Palette generator →

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