#9F28AF#9F28AF

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

Color values

HEX#9F28AF
RGBrgb(159, 40, 175)
HSLhsl(293, 63%, 42%)
HSVhsv(293, 77%, 69%)
CMYKcmyk(9.1%, 77.1%, 0%, 31.4%)
CIE-LABlab(41.19, 64.13, -46.59)
CIE-LCHlch(41.19, 79.26, 324.00°)
OKLaboklab(52.13% 0.1705 -0.1303)
OKLCHoklch(52.13% 0.215 322.6)
XYZxyz(22.7940, 11.9850, 41.6619)
Luminance0.1198 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F28AF #38AF28
analogous
#5C28AF #9F28AF #AF287C
triadic
#9F28AF #AF9F28 #28AF9F
tetradic
#9F28AF #AF5C28 #38AF28 #287CAF
square
#9F28AF #AF5C28 #38AF28 #287CAF
split-complementary
#9F28AF #7CAF28 #28AF5C
monochromatic
#44114B #721D7D #9F28AF #C241D4 #D273DF

Accessibility & contrast

On white

6.18
#9F28AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #9F28AF
6.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F28AF#FFFFFF#000000##FFFFFF
##9F28AF1.006.183.406.18
#FFFFFF6.181.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.181.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #9f28af;
/* rgb */ color: rgb(159, 40, 175);
/* oklch */ color: oklch(52.1% 0.215 322.6);
Tailwind
colors: {
  custom: {
    50: '#bf70c7',
    500: '#9f28af',
    950: '#000000',
  },
}
SCSS
$custom: #9f28af;
$custom-light: #bf70c7;
$custom-dark: #000000;
JSON
{
  "hex": "#9f28af",
  "rgb": {
    "r": 159,
    "g": 40,
    "b": 175
  },
  "hsl": {
    "h": 292.889,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.52134,
    "c": 0.21456,
    "h": 322.6
  },
  "luminance": 0.11984
}

Semantic roles & 50–950 ramp

primary
#9F28AF
secondary
#77C66D
accent
#E64255
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130813
muted
#827B82

Preview Lab

Preview with #9F28AF

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

Preview Lab → · Contrast checker → · Palette generator →

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