#9C21CA#9C21CA

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

Color values

HEX#9C21CA
RGBrgb(156, 33, 202)
HSLhsl(284, 72%, 46%)
HSVhsv(284, 84%, 79%)
CMYKcmyk(22.8%, 83.7%, 0%, 20.8%)
CIE-LABlab(41.88, 70.52, -61.35)
CIE-LCHlch(41.88, 93.47, 318.97°)
OKLaboklab(53.1% 0.1676 -0.1736)
OKLCHoklch(53.1% 0.241 314)
XYZxyz(24.9130, 12.4208, 56.9508)
Luminance0.1242 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C21CA #4FCA21
analogous
#4821CA #9C21CA #CA21A3
triadic
#9C21CA #CA9C21 #21CA9C
tetradic
#9C21CA #CA4821 #4FCA21 #21A3CA
square
#9C21CA #CA4821 #4FCA21 #21A3CA
split-complementary
#9C21CA #A3CA21 #21CA48
monochromatic
#4B1061 #731895 #9C21CA #B747E1 #CC7CEA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9C21CA#FFFFFF#000000##FFFFFF
##9C21CA1.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)
#005DCE
Deuteranopia (green-blind)
#0265C7
Tritanopia (blue-blind)
#974E79
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #9c21ca;
/* rgb */ color: rgb(156, 33, 202);
/* oklch */ color: oklch(53.1% 0.241 314.0);
Tailwind
colors: {
  custom: {
    50: '#bf6edb',
    500: '#9c21ca',
    950: '#000000',
  },
}
SCSS
$custom: #9c21ca;
$custom-light: #bf6edb;
$custom-dark: #000000;
JSON
{
  "hex": "#9c21ca",
  "rgb": {
    "r": 156,
    "g": 33,
    "b": 202
  },
  "hsl": {
    "h": 283.669,
    "s": 71.915,
    "l": 46.078
  },
  "oklch": {
    "l": 0.53103,
    "c": 0.24132,
    "h": 314
  },
  "luminance": 0.1242
}

Semantic roles & 50–950 ramp

primary
#9C21CA
secondary
#8ED275
accent
#EF396B
background
#FCF7FD
surface
#F8EDFB
border
#D1C8D4
text
#130815
muted
#827B83

Preview Lab

Preview with #9C21CA

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

Preview Lab → · Contrast checker → · Palette generator →

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