#9A21CA#9A21CA

#9A21CA is a mid, highly saturated purple. Relative luminance 0.122; OKLCH L 52.8% C 0.241 H 313.3°. Best body text is #FFFFFF at 6.10:1 contrast (WCAG AA passes).

Color values

HEX#9A21CA
RGBrgb(154, 33, 202)
HSLhsl(283, 72%, 46%)
HSVhsv(283, 84%, 79%)
CMYKcmyk(23.8%, 83.7%, 0%, 20.8%)
CIE-LABlab(41.57, 70.20, -61.87)
CIE-LCHlch(41.57, 93.57, 318.61°)
OKLaboklab(52.83% 0.1651 -0.1752)
OKLCHoklch(52.83% 0.241 313.3)
XYZxyz(24.5290, 12.2228, 56.9328)
Luminance0.1222 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A21CA #51CA21
analogous
#4621CA #9A21CA #CA21A5
triadic
#9A21CA #CA9A21 #21CA9A
tetradic
#9A21CA #CA4621 #51CA21 #21A5CA
square
#9A21CA #CA4621 #51CA21 #21A5CA
split-complementary
#9A21CA #A5CA21 #21CA46
monochromatic
#4A1061 #721895 #9A21CA #B547E1 #CA7CEA

Accessibility & contrast

On white

6.10
#9A21CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.44
#9A21CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9A21CA
6.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A21CA#FFFFFF#000000##FFFFFF
##9A21CA1.006.103.446.10
#FFFFFF6.101.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.101.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #9a21ca;
/* rgb */ color: rgb(154, 33, 202);
/* oklch */ color: oklch(52.8% 0.241 313.3);
Tailwind
colors: {
  custom: {
    50: '#bd6edb',
    500: '#9a21ca',
    950: '#000000',
  },
}
SCSS
$custom: #9a21ca;
$custom-light: #bd6edb;
$custom-dark: #000000;
JSON
{
  "hex": "#9a21ca",
  "rgb": {
    "r": 154,
    "g": 33,
    "b": 202
  },
  "hsl": {
    "h": 282.959,
    "s": 71.915,
    "l": 46.078
  },
  "oklch": {
    "l": 0.52826,
    "c": 0.24072,
    "h": 313.3
  },
  "luminance": 0.12222
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #9A21CA

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

Preview Lab → · Contrast checker → · Palette generator →

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