#9F21AA#9F21AA

#9F21AA is a mid, highly saturated purple. Relative luminance 0.114; OKLCH L 51.3% C 0.217 H 324.4°. Best body text is #FFFFFF at 6.42:1 contrast (WCAG AA passes).

Color values

HEX#9F21AA
RGBrgb(159, 33, 170)
HSLhsl(295, 67%, 40%)
HSVhsv(295, 81%, 67%)
CMYKcmyk(6.5%, 80.6%, 0%, 33.3%)
CIE-LABlab(40.18, 65.27, -45.23)
CIE-LCHlch(40.18, 79.41, 325.28°)
OKLaboklab(51.32% 0.1764 -0.1263)
OKLCHoklch(51.32% 0.217 324.4)
XYZxyz(22.0970, 11.3624, 39.0517)
Luminance0.1136 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F21AA #2CAA21
analogous
#5A21AA #9F21AA #AA2171
triadic
#9F21AA #AA9F21 #21AA9F
tetradic
#9F21AA #AA5A21 #2CAA21 #2171AA
square
#9F21AA #AA5A21 #2CAA21 #2171AA
split-complementary
#9F21AA #71AA21 #21AA5A
monochromatic
#3F0D43 #6F1777 #9F21AA #CA31D7 #D764E1

Accessibility & contrast

On white

6.42
#9F21AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#9F21AA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F21AA
6.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F21AA#FFFFFF#000000##FFFFFF
##9F21AA1.006.423.276.42
#FFFFFF6.421.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055AE
Deuteranopia (green-blind)
#3E64A7
Tritanopia (blue-blind)
#A23D67
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #9f21aa;
/* rgb */ color: rgb(159, 33, 170);
/* oklch */ color: oklch(51.3% 0.217 324.4);
Tailwind
colors: {
  custom: {
    50: '#bf6dc4',
    500: '#9f21aa',
    950: '#000000',
  },
}
SCSS
$custom: #9f21aa;
$custom-light: #bf6dc4;
$custom-dark: #000000;
JSON
{
  "hex": "#9f21aa",
  "rgb": {
    "r": 159,
    "g": 33,
    "b": 170
  },
  "hsl": {
    "h": 295.182,
    "s": 67.488,
    "l": 39.804
  },
  "oklch": {
    "l": 0.5132,
    "c": 0.21694,
    "h": 324.4
  },
  "luminance": 0.11361
}

Semantic roles & 50–950 ramp

primary
#9F21AA
secondary
#69C661
accent
#EA3D4B
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130813
muted
#827B82

Preview Lab

Preview with #9F21AA

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

Preview Lab → · Contrast checker → · Palette generator →

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