#9D22CA#9D22CA

#9D22CA is a mid, highly saturated purple. Relative luminance 0.126; OKLCH L 53.3% C 0.241 H 314.3°. Best body text is #FFFFFF at 5.97:1 contrast (WCAG AA passes).

Color values

HEX#9D22CA
RGBrgb(157, 34, 202)
HSLhsl(284, 71%, 46%)
HSVhsv(284, 83%, 79%)
CMYKcmyk(22.3%, 83.2%, 0%, 20.8%)
CIE-LABlab(42.12, 70.42, -60.95)
CIE-LCHlch(42.12, 93.14, 319.12°)
OKLaboklab(53.3% 0.1682 -0.1724)
OKLCHoklch(53.3% 0.241 314.3)
XYZxyz(25.1355, 12.5773, 56.9693)
Luminance0.1258 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D22CA #4FCA22
analogous
#4922CA #9D22CA #CA22A3
triadic
#9D22CA #CA9D22 #22CA9D
tetradic
#9D22CA #CA4922 #4FCA22 #22A3CA
square
#9D22CA #CA4922 #4FCA22 #22A3CA
split-complementary
#9D22CA #A3CA22 #22CA49
monochromatic
#4C1061 #741996 #9D22CA #B849E0 #CC7DE9

Accessibility & contrast

On white

5.97
#9D22CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#9D22CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D22CA
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D22CA#FFFFFF#000000##FFFFFF
##9D22CA1.005.973.525.97
#FFFFFF5.971.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DCE
Deuteranopia (green-blind)
#0A66C7
Tritanopia (blue-blind)
#994E79
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #9d22ca;
/* rgb */ color: rgb(157, 34, 202);
/* oklch */ color: oklch(53.3% 0.241 314.3);
Tailwind
colors: {
  custom: {
    50: '#bf6fdb',
    500: '#9d22ca',
    950: '#000000',
  },
}
SCSS
$custom: #9d22ca;
$custom-light: #bf6fdb;
$custom-dark: #000000;
JSON
{
  "hex": "#9d22ca",
  "rgb": {
    "r": 157,
    "g": 34,
    "b": 202
  },
  "hsl": {
    "h": 283.929,
    "s": 71.186,
    "l": 46.275
  },
  "oklch": {
    "l": 0.53302,
    "c": 0.24089,
    "h": 314.3
  },
  "luminance": 0.12576
}

Semantic roles & 50–950 ramp

primary
#9D22CA
secondary
#8FD177
accent
#EE3A6A
background
#FCF7FD
surface
#F8EDFB
border
#D1C8D4
text
#130815
muted
#827B83

Preview Lab

Preview with #9D22CA

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

Preview Lab → · Contrast checker → · Palette generator →

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