#9821A4#9821A4

#9821A4 is a mid, highly saturated purple. Relative luminance 0.104; OKLCH L 49.9% C 0.209 H 323.9°. Best body text is #FFFFFF at 6.80:1 contrast (WCAG AA passes).

Color values

HEX#9821A4
RGBrgb(152, 33, 164)
HSLhsl(295, 66%, 39%)
HSVhsv(295, 80%, 64%)
CMYKcmyk(7.3%, 79.9%, 0%, 35.7%)
CIE-LABlab(38.63, 62.88, -44.19)
CIE-LCHlch(38.63, 76.86, 324.90°)
OKLaboklab(49.87% 0.1691 -0.1234)
OKLCHoklch(49.87% 0.209 323.9)
XYZxyz(20.1930, 10.4447, 36.0672)
Luminance0.1044 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9821A4 #2DA421
analogous
#5621A4 #9821A4 #A4216E
triadic
#9821A4 #A49821 #21A498
tetradic
#9821A4 #A45621 #2DA421 #216EA4
square
#9821A4 #A45621 #2DA421 #216EA4
split-complementary
#9821A4 #6EA421 #21A456
monochromatic
#3A0C3E #691771 #9821A4 #C52DD5 #D360DF

Accessibility & contrast

On white

6.80
#9821A4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#9821A4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9821A4
6.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9821A4#FFFFFF#000000##FFFFFF
##9821A41.006.803.096.80
#FFFFFF6.801.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A7
Deuteranopia (green-blind)
#3B60A1
Tritanopia (blue-blind)
#9B3B63
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #9821a4;
/* rgb */ color: rgb(152, 33, 164);
/* oklch */ color: oklch(49.9% 0.209 323.9);
Tailwind
colors: {
  custom: {
    50: '#ba6cc0',
    500: '#9821a4',
    950: '#000000',
  },
}
SCSS
$custom: #9821a4;
$custom-light: #ba6cc0;
$custom-dark: #000000;
JSON
{
  "hex": "#9821a4",
  "rgb": {
    "r": 152,
    "g": 33,
    "b": 164
  },
  "hsl": {
    "h": 294.504,
    "s": 66.497,
    "l": 38.627
  },
  "oklch": {
    "l": 0.49873,
    "c": 0.20938,
    "h": 323.9
  },
  "luminance": 0.10443
}

Semantic roles & 50–950 ramp

primary
#9821A4
secondary
#66C45D
accent
#E93E4E
background
#FBF6FB
surface
#F7ECF7
border
#D0C7D0
text
#120812
muted
#817A81

Preview Lab

Preview with #9821A4

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

Preview Lab → · Contrast checker → · Palette generator →

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