#9822A8#9822A8

#9822A8 is a mid, highly saturated purple. Relative luminance 0.106; OKLCH L 50.2% C 0.212 H 322.5°. Best body text is #FFFFFF at 6.71:1 contrast (WCAG AA passes).

Color values

HEX#9822A8
RGBrgb(152, 34, 168)
HSLhsl(293, 66%, 40%)
HSVhsv(293, 80%, 66%)
CMYKcmyk(9.5%, 79.8%, 0%, 34.1%)
CIE-LABlab(38.98, 63.30, -46.03)
CIE-LCHlch(38.98, 78.26, 323.98°)
OKLaboklab(50.2% 0.1679 -0.1288)
OKLCHoklch(50.2% 0.212 322.5)
XYZxyz(20.5881, 10.6478, 38.0090)
Luminance0.1065 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9822A8 #32A822
analogous
#5522A8 #9822A8 #A82275
triadic
#9822A8 #A89822 #22A898
tetradic
#9822A8 #A85522 #32A822 #2275A8
square
#9822A8 #A85522 #32A822 #2275A8
split-complementary
#9822A8 #75A822 #22A855
monochromatic
#3C0D42 #6A1875 #9822A8 #C232D5 #D165E0

Accessibility & contrast

On white

6.71
#9822A8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#9822A8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9822A8
6.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9822A8#FFFFFF#000000##FFFFFF
##9822A81.006.713.136.71
#FFFFFF6.711.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053AC
Deuteranopia (green-blind)
#3860A5
Tritanopia (blue-blind)
#9A3E66
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #9822a8;
/* rgb */ color: rgb(152, 34, 168);
/* oklch */ color: oklch(50.2% 0.212 322.5);
Tailwind
colors: {
  custom: {
    50: '#ba6cc2',
    500: '#9822a8',
    950: '#000000',
  },
}
SCSS
$custom: #9822a8;
$custom-light: #ba6cc2;
$custom-dark: #000000;
JSON
{
  "hex": "#9822a8",
  "rgb": {
    "r": 152,
    "g": 34,
    "b": 168
  },
  "hsl": {
    "h": 292.836,
    "s": 66.337,
    "l": 39.608
  },
  "oklch": {
    "l": 0.50203,
    "c": 0.21166,
    "h": 322.5
  },
  "luminance": 0.10647
}

Semantic roles & 50–950 ramp

primary
#9822A8
secondary
#6DC561
accent
#E93F53
background
#FBF7FC
surface
#F7EDF8
border
#D0C8D1
text
#120812
muted
#817B81

Preview Lab

Preview with #9822A8

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

Preview Lab → · Contrast checker → · Palette generator →

#9822A8 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva