#9F21CA#9F21CA

#9F21CA is a mid, highly saturated purple. Relative luminance 0.127; OKLCH L 53.5% C 0.242 H 315.0°. Best body text is #FFFFFF at 5.92:1 contrast (WCAG AA passes).

Color values

HEX#9F21CA
RGBrgb(159, 33, 202)
HSLhsl(285, 72%, 46%)
HSVhsv(285, 84%, 79%)
CMYKcmyk(21.3%, 83.7%, 0%, 20.8%)
CIE-LABlab(42.34, 71.00, -60.57)
CIE-LCHlch(42.34, 93.33, 319.53°)
OKLaboklab(53.52% 0.1713 -0.1713)
OKLCHoklch(53.52% 0.242 315)
XYZxyz(25.5008, 12.7239, 56.9783)
Luminance0.1272 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F21CA #4CCA21
analogous
#4B21CA #9F21CA #CA21A0
triadic
#9F21CA #CA9F21 #21CA9F
tetradic
#9F21CA #CA4B21 #4CCA21 #21A0CA
square
#9F21CA #CA4B21 #4CCA21 #21A0CA
split-complementary
#9F21CA #A0CA21 #21CA4B
monochromatic
#4C1061 #761895 #9F21CA #BA47E1 #CE7CEA

Accessibility & contrast

On white

5.92
#9F21CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#9F21CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F21CA
5.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F21CA#FFFFFF#000000##FFFFFF
##9F21CA1.005.923.545.92
#FFFFFF5.921.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DCE
Deuteranopia (green-blind)
#1167C7
Tritanopia (blue-blind)
#9B4D79
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #9f21ca;
/* rgb */ color: rgb(159, 33, 202);
/* oklch */ color: oklch(53.5% 0.242 315.0);
Tailwind
colors: {
  custom: {
    50: '#c16fdb',
    500: '#9f21ca',
    950: '#000000',
  },
}
SCSS
$custom: #9f21ca;
$custom-light: #c16fdb;
$custom-dark: #000000;
JSON
{
  "hex": "#9f21ca",
  "rgb": {
    "r": 159,
    "g": 33,
    "b": 202
  },
  "hsl": {
    "h": 284.734,
    "s": 71.915,
    "l": 46.078
  },
  "oklch": {
    "l": 0.53521,
    "c": 0.24223,
    "h": 315
  },
  "luminance": 0.12723
}

Semantic roles & 50–950 ramp

primary
#9F21CA
secondary
#8DD275
accent
#EF3967
background
#FCF7FD
surface
#F8EDFB
border
#D1C8D4
text
#130815
muted
#827B83

Preview Lab

Preview with #9F21CA

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

Preview Lab → · Contrast checker → · Palette generator →

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