#9D22A6#9D22A6

#9D22A6 is a mid, highly saturated purple. Relative luminance 0.111; OKLCH L 50.8% C 0.212 H 325.0°. Best body text is #FFFFFF at 6.54:1 contrast (WCAG AA passes).

Color values

HEX#9D22A6
RGBrgb(157, 34, 166)
HSLhsl(296, 66%, 39%)
HSVhsv(296, 80%, 65%)
CMYKcmyk(5.4%, 79.5%, 0%, 34.9%)
CIE-LABlab(39.69, 63.93, -43.64)
CIE-LCHlch(39.69, 77.41, 325.68°)
OKLaboklab(50.83% 0.1738 -0.1217)
OKLCHoklch(50.83% 0.212 325)
XYZxyz(21.3591, 11.0668, 37.0801)
Luminance0.1106 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D22A6 #2BA622
analogous
#5B22A6 #9D22A6 #A6226D
triadic
#9D22A6 #A69D22 #22A69D
tetradic
#9D22A6 #A65B22 #2BA622 #226DA6
square
#9D22A6 #A65B22 #2BA622 #226DA6
split-complementary
#9D22A6 #6DA622 #22A65B
monochromatic
#3D0D40 #6D1873 #9D22A6 #CA30D5 #D763DF

Accessibility & contrast

On white

6.54
#9D22A6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#9D22A6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D22A6
6.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D22A6#FFFFFF#000000##FFFFFF
##9D22A61.006.543.216.54
#FFFFFF6.541.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054A9
Deuteranopia (green-blind)
#4062A3
Tritanopia (blue-blind)
#A03C64
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #9d22a6;
/* rgb */ color: rgb(157, 34, 166);
/* oklch */ color: oklch(50.8% 0.212 325.0);
Tailwind
colors: {
  custom: {
    50: '#be6dc1',
    500: '#9d22a6',
    950: '#000000',
  },
}
SCSS
$custom: #9d22a6;
$custom-light: #be6dc1;
$custom-dark: #000000;
JSON
{
  "hex": "#9d22a6",
  "rgb": {
    "r": 157,
    "g": 34,
    "b": 166
  },
  "hsl": {
    "h": 295.909,
    "s": 66,
    "l": 39.216
  },
  "oklch": {
    "l": 0.50828,
    "c": 0.21215,
    "h": 325
  },
  "luminance": 0.11065
}

Semantic roles & 50–950 ramp

primary
#9D22A6
secondary
#66C45F
accent
#E93F4A
background
#FCF7FB
surface
#F8EDF7
border
#D1C8D0
text
#130812
muted
#827B81

Preview Lab

Preview with #9D22A6

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

Preview Lab → · Contrast checker → · Palette generator →

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