#9D21CA#9D21CA

#9D21CA is a mid, highly saturated purple. Relative luminance 0.125; OKLCH L 53.2% C 0.242 H 314.3°. Best body text is #FFFFFF at 5.99:1 contrast (WCAG AA passes).

Color values

HEX#9D21CA
RGBrgb(157, 33, 202)
HSLhsl(284, 72%, 46%)
HSVhsv(284, 84%, 79%)
CMYKcmyk(22.3%, 83.7%, 0%, 20.8%)
CIE-LABlab(42.03, 70.68, -61.09)
CIE-LCHlch(42.03, 93.42, 319.16°)
OKLaboklab(53.24% 0.1688 -0.1729)
OKLCHoklch(53.24% 0.242 314.3)
XYZxyz(25.1073, 12.5210, 56.9599)
Luminance0.1252 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D21CA #4ECA21
analogous
#4921CA #9D21CA #CA21A2
triadic
#9D21CA #CA9D21 #21CA9D
tetradic
#9D21CA #CA4921 #4ECA21 #21A2CA
square
#9D21CA #CA4921 #4ECA21 #21A2CA
split-complementary
#9D21CA #A2CA21 #21CA49
monochromatic
#4B1061 #741895 #9D21CA #B847E1 #CC7CEA

Accessibility & contrast

On white

5.99
#9D21CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.50
#9D21CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D21CA
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D21CA#FFFFFF#000000##FFFFFF
##9D21CA1.005.993.505.99
#FFFFFF5.991.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF5.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DCE
Deuteranopia (green-blind)
#0866C7
Tritanopia (blue-blind)
#994D79
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #9d21ca;
/* rgb */ color: rgb(157, 33, 202);
/* oklch */ color: oklch(53.2% 0.242 314.3);
Tailwind
colors: {
  custom: {
    50: '#bf6fdb',
    500: '#9d21ca',
    950: '#000000',
  },
}
SCSS
$custom: #9d21ca;
$custom-light: #bf6fdb;
$custom-dark: #000000;
JSON
{
  "hex": "#9d21ca",
  "rgb": {
    "r": 157,
    "g": 33,
    "b": 202
  },
  "hsl": {
    "h": 284.024,
    "s": 71.915,
    "l": 46.078
  },
  "oklch": {
    "l": 0.53242,
    "c": 0.24162,
    "h": 314.3
  },
  "luminance": 0.1252
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #9D21CA

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

Preview Lab → · Contrast checker → · Palette generator →

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