#9F28A6#9F28A6

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

Color values

HEX#9F28A6
RGBrgb(159, 40, 166)
HSLhsl(297, 61%, 40%)
HSVhsv(297, 76%, 65%)
CMYKcmyk(4.2%, 75.9%, 0%, 34.9%)
CIE-LABlab(40.64, 62.56, -42.11)
CIE-LCHlch(40.64, 75.41, 326.06°)
OKLaboklab(51.57% 0.1711 -0.1172)
OKLCHoklch(51.57% 0.207 325.6)
XYZxyz(21.9393, 11.6432, 37.1608)
Luminance0.1164 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F28A6 #2FA628
analogous
#6028A6 #9F28A6 #A6286E
triadic
#9F28A6 #A69F28 #28A69F
tetradic
#9F28A6 #A66028 #2FA628 #286EA6
square
#9F28A6 #A66028 #2FA628 #286EA6
split-complementary
#9F28A6 #6EA628 #28A660
monochromatic
#411043 #701C75 #9F28A6 #C83BD0 #D66DDC

Accessibility & contrast

On white

6.31
#9F28A6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#9F28A6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F28A6
6.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F28A6#FFFFFF#000000##FFFFFF
##9F28A61.006.313.336.31
#FFFFFF6.311.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057A9
Deuteranopia (green-blind)
#4565A3
Tritanopia (blue-blind)
#A33E66
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #9f28a6;
/* rgb */ color: rgb(159, 40, 166);
/* oklch */ color: oklch(51.6% 0.207 325.6);
Tailwind
colors: {
  custom: {
    50: '#bf70c1',
    500: '#9f28a6',
    950: '#000000',
  },
}
SCSS
$custom: #9f28a6;
$custom-light: #bf70c1;
$custom-dark: #000000;
JSON
{
  "hex": "#9f28a6",
  "rgb": {
    "r": 159,
    "g": 40,
    "b": 166
  },
  "hsl": {
    "h": 296.667,
    "s": 61.165,
    "l": 40.392
  },
  "oklch": {
    "l": 0.51568,
    "c": 0.20737,
    "h": 325.6
  },
  "luminance": 0.11642
}

Semantic roles & 50–950 ramp

primary
#9F28A6
secondary
#6DC267
accent
#E4444C
background
#FCF7FB
surface
#F8EDF7
border
#D1C8D0
text
#130812
muted
#827B81

Preview Lab

Preview with #9F28A6

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

Preview Lab → · Contrast checker → · Palette generator →

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