#9F28B1#9F28B1

#9F28B1 is a mid, highly saturated purple. Relative luminance 0.121; OKLCH L 52.3% C 0.216 H 322.0°. Best body text is #FFFFFF at 6.15:1 contrast (WCAG AA passes).

Color values

HEX#9F28B1
RGBrgb(159, 40, 177)
HSLhsl(292, 63%, 43%)
HSVhsv(292, 77%, 69%)
CMYKcmyk(10.2%, 77.4%, 0%, 30.6%)
CIE-LABlab(41.32, 64.48, -47.57)
CIE-LCHlch(41.32, 80.13, 323.58°)
OKLaboklab(52.26% 0.1703 -0.1332)
OKLCHoklch(52.26% 0.216 322)
XYZxyz(22.9918, 12.0642, 42.7040)
Luminance0.1206 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F28B1 #3AB128
analogous
#5B28B1 #9F28B1 #B1287E
triadic
#9F28B1 #B19F28 #28B19F
tetradic
#9F28B1 #B15B28 #3AB128 #287EB1
square
#9F28B1 #B15B28 #3AB128 #287EB1
split-complementary
#9F28B1 #7EB128 #28B15B
monochromatic
#45114D #721D7F #9F28B1 #C142D4 #D174E0

Accessibility & contrast

On white

6.15
#9F28B1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#9F28B1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F28B1
6.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F28B1#FFFFFF#000000##FFFFFF
##9F28B11.006.153.416.15
#FFFFFF6.151.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059B5
Deuteranopia (green-blind)
#3C66AE
Tritanopia (blue-blind)
#A1446C
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #9f28b1;
/* rgb */ color: rgb(159, 40, 177);
/* oklch */ color: oklch(52.3% 0.216 322.0);
Tailwind
colors: {
  custom: {
    50: '#bf70c9',
    500: '#9f28b1',
    950: '#000000',
  },
}
SCSS
$custom: #9f28b1;
$custom-light: #bf70c9;
$custom-dark: #000000;
JSON
{
  "hex": "#9f28b1",
  "rgb": {
    "r": 159,
    "g": 40,
    "b": 177
  },
  "hsl": {
    "h": 292.117,
    "s": 63.134,
    "l": 42.549
  },
  "oklch": {
    "l": 0.52263,
    "c": 0.21617,
    "h": 322
  },
  "luminance": 0.12063
}

Semantic roles & 50–950 ramp

primary
#9F28B1
secondary
#7AC76E
accent
#E64257
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130813
muted
#827B82

Preview Lab

Preview with #9F28B1

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

Preview Lab → · Contrast checker → · Palette generator →

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