#9F20A7#9F20A7

#9F20A7 is a mid, highly saturated purple. Relative luminance 0.112; OKLCH L 51.1% C 0.215 H 325.4°. Best body text is #FFFFFF at 6.48:1 contrast (WCAG AA passes).

Color values

HEX#9F20A7
RGBrgb(159, 32, 167)
HSLhsl(296, 68%, 39%)
HSVhsv(296, 81%, 65%)
CMYKcmyk(4.8%, 80.8%, 0%, 34.5%)
CIE-LABlab(39.91, 65.03, -43.88)
CIE-LCHlch(39.91, 78.45, 325.99°)
OKLaboklab(51.07% 0.1774 -0.1223)
OKLCHoklch(51.07% 0.215 325.4)
XYZxyz(21.7891, 11.1955, 37.5650)
Luminance0.1119 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F20A7 #28A720
analogous
#5B20A7 #9F20A7 #A7206C
triadic
#9F20A7 #A79F20 #20A79F
tetradic
#9F20A7 #A75B20 #28A720 #206CA7
square
#9F20A7 #A75B20 #28A720 #206CA7
split-complementary
#9F20A7 #6CA720 #20A75B
monochromatic
#3D0C40 #6E1674 #9F20A7 #CD2DD7 #D961E1

Accessibility & contrast

On white

6.48
#9F20A7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#9F20A7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F20A7
6.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F20A7#FFFFFF#000000##FFFFFF
##9F20A71.006.483.246.48
#FFFFFF6.481.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054AA
Deuteranopia (green-blind)
#4063A4
Tritanopia (blue-blind)
#A33B65
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #9f20a7;
/* rgb */ color: rgb(159, 32, 167);
/* oklch */ color: oklch(51.1% 0.215 325.4);
Tailwind
colors: {
  custom: {
    50: '#bf6dc2',
    500: '#9f20a7',
    950: '#000000',
  },
}
SCSS
$custom: #9f20a7;
$custom-light: #bf6dc2;
$custom-dark: #000000;
JSON
{
  "hex": "#9f20a7",
  "rgb": {
    "r": 159,
    "g": 32,
    "b": 167
  },
  "hsl": {
    "h": 296.444,
    "s": 67.839,
    "l": 39.02
  },
  "oklch": {
    "l": 0.51065,
    "c": 0.21547,
    "h": 325.4
  },
  "luminance": 0.11194
}

Semantic roles & 50–950 ramp

primary
#9F20A7
secondary
#64C55D
accent
#EB3D47
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130812
muted
#827B81

Preview Lab

Preview with #9F20A7

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

Preview Lab → · Contrast checker → · Palette generator →

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