#9821CA#9821CA

#9821CA is a mid, highly saturated purple. Relative luminance 0.120; OKLCH L 52.6% C 0.240 H 312.6°. Best body text is #FFFFFF at 6.17:1 contrast (WCAG AA passes).

Color values

HEX#9821CA
RGBrgb(152, 33, 202)
HSLhsl(282, 72%, 46%)
HSVhsv(282, 84%, 79%)
CMYKcmyk(24.8%, 83.7%, 0%, 20.8%)
CIE-LABlab(41.26, 69.88, -62.38)
CIE-LCHlch(41.26, 93.67, 318.24°)
OKLaboklab(52.55% 0.1625 -0.1768)
OKLCHoklch(52.55% 0.24 312.6)
XYZxyz(24.1515, 12.0281, 56.9151)
Luminance0.1203 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9821CA #53CA21
analogous
#4421CA #9821CA #CA21A7
triadic
#9821CA #CA9821 #21CA98
tetradic
#9821CA #CA4421 #53CA21 #21A7CA
square
#9821CA #CA4421 #53CA21 #21A7CA
split-complementary
#9821CA #A7CA21 #21CA44
monochromatic
#491061 #701895 #9821CA #B347E1 #C97CEA

Accessibility & contrast

On white

6.17
#9821CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#9821CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9821CA
6.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9821CA#FFFFFF#000000##FFFFFF
##9821CA1.006.173.416.17
#FFFFFF6.171.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.171.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #9821ca;
/* rgb */ color: rgb(152, 33, 202);
/* oklch */ color: oklch(52.6% 0.240 312.6);
Tailwind
colors: {
  custom: {
    50: '#bc6edb',
    500: '#9821ca',
    950: '#000000',
  },
}
SCSS
$custom: #9821ca;
$custom-light: #bc6edb;
$custom-dark: #000000;
JSON
{
  "hex": "#9821ca",
  "rgb": {
    "r": 152,
    "g": 33,
    "b": 202
  },
  "hsl": {
    "h": 282.249,
    "s": 71.915,
    "l": 46.078
  },
  "oklch": {
    "l": 0.52551,
    "c": 0.24014,
    "h": 312.6
  },
  "luminance": 0.12027
}

Semantic roles & 50–950 ramp

primary
#9821CA
secondary
#91D275
accent
#EF396F
background
#FCF7FD
surface
#F8EDFB
border
#D1C8D4
text
#130815
muted
#827B83

Preview Lab

Preview with #9821CA

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

Preview Lab → · Contrast checker → · Palette generator →

#9821CA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva