#9F21C3#9F21C3

#9F21C3 is a mid, highly saturated purple. Relative luminance 0.124; OKLCH L 53.0% C 0.237 H 316.9°. Best body text is #FFFFFF at 6.03:1 contrast (WCAG AA passes).

Color values

HEX#9F21C3
RGBrgb(159, 33, 195)
HSLhsl(287, 71%, 45%)
HSVhsv(287, 83%, 76%)
CMYKcmyk(18.5%, 83.1%, 0%, 23.5%)
CIE-LABlab(41.84, 69.70, -57.31)
CIE-LCHlch(41.84, 90.24, 320.57°)
OKLaboklab(53.02% 0.1728 -0.1617)
OKLCHoklch(53.02% 0.237 316.9)
XYZxyz(24.6908, 12.3999, 52.7120)
Luminance0.1240 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F21C3 #45C321
analogous
#4E21C3 #9F21C3 #C32196
triadic
#9F21C3 #C39F21 #21C39F
tetradic
#9F21C3 #C34E21 #45C321 #2196C3
square
#9F21C3 #C34E21 #45C321 #2196C3
split-complementary
#9F21C3 #96C321 #21C34E
monochromatic
#4A0F5A #74188F #9F21C3 #BC42DF #CF77E8

Accessibility & contrast

On white

6.03
#9F21C3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#9F21C3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F21C3
6.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F21C3#FFFFFF#000000##FFFFFF
##9F21C31.006.033.486.03
#FFFFFF6.031.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC7
Deuteranopia (green-blind)
#2266C0
Tritanopia (blue-blind)
#9D4975
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #9f21c3;
/* rgb */ color: rgb(159, 33, 195);
/* oklch */ color: oklch(53.0% 0.237 316.9);
Tailwind
colors: {
  custom: {
    50: '#c06ed6',
    500: '#9f21c3',
    950: '#000000',
  },
}
SCSS
$custom: #9f21c3;
$custom-light: #c06ed6;
$custom-dark: #000000;
JSON
{
  "hex": "#9f21c3",
  "rgb": {
    "r": 159,
    "g": 33,
    "b": 195
  },
  "hsl": {
    "h": 286.667,
    "s": 71.053,
    "l": 44.706
  },
  "oklch": {
    "l": 0.53015,
    "c": 0.23661,
    "h": 316.9
  },
  "luminance": 0.12399
}

Semantic roles & 50–950 ramp

primary
#9F21C3
secondary
#86CF71
accent
#EE3A62
background
#FCF7FD
surface
#F8EDFA
border
#D1C8D3
text
#130814
muted
#827B83

Preview Lab

Preview with #9F21C3

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

Preview Lab → · Contrast checker → · Palette generator →

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