#9B21CA#9B21CA

#9B21CA is a mid, highly saturated purple. Relative luminance 0.123; OKLCH L 53.0% C 0.241 H 313.6°. Best body text is #FFFFFF at 6.06:1 contrast (WCAG AA passes).

Color values

HEX#9B21CA
RGBrgb(155, 33, 202)
HSLhsl(283, 72%, 46%)
HSVhsv(283, 84%, 79%)
CMYKcmyk(23.3%, 83.7%, 0%, 20.8%)
CIE-LABlab(41.72, 70.36, -61.61)
CIE-LCHlch(41.72, 93.52, 318.79°)
OKLaboklab(52.96% 0.1663 -0.1744)
OKLCHoklch(52.96% 0.241 313.6)
XYZxyz(24.7202, 12.3214, 56.9417)
Luminance0.1232 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B21CA #50CA21
analogous
#4721CA #9B21CA #CA21A4
triadic
#9B21CA #CA9B21 #21CA9B
tetradic
#9B21CA #CA4721 #50CA21 #21A4CA
square
#9B21CA #CA4721 #50CA21 #21A4CA
split-complementary
#9B21CA #A4CA21 #21CA47
monochromatic
#4A1061 #731895 #9B21CA #B647E1 #CB7CEA

Accessibility & contrast

On white

6.06
#9B21CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#9B21CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9B21CA
6.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B21CA#FFFFFF#000000##FFFFFF
##9B21CA1.006.063.466.06
#FFFFFF6.061.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CCE
Deuteranopia (green-blind)
#0065C7
Tritanopia (blue-blind)
#964E79
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #9b21ca;
/* rgb */ color: rgb(155, 33, 202);
/* oklch */ color: oklch(53.0% 0.241 313.6);
Tailwind
colors: {
  custom: {
    50: '#be6edb',
    500: '#9b21ca',
    950: '#000000',
  },
}
SCSS
$custom: #9b21ca;
$custom-light: #be6edb;
$custom-dark: #000000;
JSON
{
  "hex": "#9b21ca",
  "rgb": {
    "r": 155,
    "g": 33,
    "b": 202
  },
  "hsl": {
    "h": 283.314,
    "s": 71.915,
    "l": 46.078
  },
  "oklch": {
    "l": 0.52964,
    "c": 0.24102,
    "h": 313.6
  },
  "luminance": 0.12321
}

Semantic roles & 50–950 ramp

primary
#9B21CA
secondary
#8FD275
accent
#EF396C
background
#FCF7FD
surface
#F8EDFB
border
#D1C8D4
text
#130815
muted
#827B83

Preview Lab

Preview with #9B21CA

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

Preview Lab → · Contrast checker → · Palette generator →

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