#9F28A5#9F28A5

#9F28A5 is a mid, highly saturated purple. Relative luminance 0.116; OKLCH L 51.5% C 0.207 H 325.9°. Best body text is #FFFFFF at 6.32:1 contrast (WCAG AA passes).

Color values

HEX#9F28A5
RGBrgb(159, 40, 165)
HSLhsl(297, 61%, 40%)
HSVhsv(297, 76%, 65%)
CMYKcmyk(3.6%, 75.8%, 0%, 35.3%)
CIE-LABlab(40.58, 62.39, -41.60)
CIE-LCHlch(40.58, 74.99, 326.30°)
OKLaboklab(51.51% 0.1711 -0.1157)
OKLCHoklch(51.51% 0.207 325.9)
XYZxyz(21.8480, 11.6066, 36.6796)
Luminance0.1161 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F28A5 #2EA528
analogous
#6028A5 #9F28A5 #A5286C
triadic
#9F28A5 #A59F28 #28A59F
tetradic
#9F28A5 #A56028 #2EA528 #286CA5
square
#9F28A5 #A56028 #2EA528 #286CA5
split-complementary
#9F28A5 #6CA528 #28A560
monochromatic
#401042 #701C74 #9F28A5 #C83BCF #D66CDB

Accessibility & contrast

On white

6.32
#9F28A5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.32
#9F28A5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F28A5
6.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F28A5#FFFFFF#000000##FFFFFF
##9F28A51.006.323.326.32
#FFFFFF6.321.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056A8
Deuteranopia (green-blind)
#4565A2
Tritanopia (blue-blind)
#A33E65
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #9f28a5;
/* rgb */ color: rgb(159, 40, 165);
/* oklch */ color: oklch(51.5% 0.207 325.9);
Tailwind
colors: {
  custom: {
    50: '#bf70c0',
    500: '#9f28a5',
    950: '#000000',
  },
}
SCSS
$custom: #9f28a5;
$custom-light: #bf70c0;
$custom-dark: #000000;
JSON
{
  "hex": "#9f28a5",
  "rgb": {
    "r": 159,
    "g": 40,
    "b": 165
  },
  "hsl": {
    "h": 297.12,
    "s": 60.976,
    "l": 40.196
  },
  "oklch": {
    "l": 0.51506,
    "c": 0.20658,
    "h": 325.9
  },
  "luminance": 0.11605
}

Semantic roles & 50–950 ramp

primary
#9F28A5
secondary
#6BC267
accent
#E4444B
background
#FCF7FB
surface
#F8EDF7
border
#D1C8D0
text
#130812
muted
#827B81

Preview Lab

Preview with #9F28A5

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

Preview Lab → · Contrast checker → · Palette generator →

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