#9D22BD#9D22BD

#9D22BD is a mid, highly saturated purple. Relative luminance 0.120; OKLCH L 52.4% C 0.230 H 317.9°. Best body text is #FFFFFF at 6.18:1 contrast (WCAG AA passes).

Color values

HEX#9D22BD
RGBrgb(157, 34, 189)
HSLhsl(288, 70%, 44%)
HSVhsv(288, 82%, 74%)
CMYKcmyk(16.9%, 82%, 0%, 25.9%)
CIE-LABlab(41.20, 68.00, -54.86)
CIE-LCHlch(41.20, 87.37, 321.10°)
OKLaboklab(52.37% 0.1708 -0.1545)
OKLCHoklch(52.37% 0.23 317.9)
XYZxyz(23.6606, 11.9874, 49.2017)
Luminance0.1199 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D22BD #42BD22
analogous
#4F22BD #9D22BD #BD228F
triadic
#9D22BD #BD9D22 #22BD9D
tetradic
#9D22BD #BD4F22 #42BD22 #228FBD
square
#9D22BD #BD4F22 #42BD22 #228FBD
split-complementary
#9D22BD #8FBD22 #22BD4F
monochromatic
#470F55 #721989 #9D22BD #BC40DD #CE73E6

Accessibility & contrast

On white

6.18
#9D22BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#9D22BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D22BD
6.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D22BD#FFFFFF#000000##FFFFFF
##9D22BD1.006.183.406.18
#FFFFFF6.181.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC1
Deuteranopia (green-blind)
#2865BA
Tritanopia (blue-blind)
#9C4772
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #9d22bd;
/* rgb */ color: rgb(157, 34, 189);
/* oklch */ color: oklch(52.4% 0.230 317.9);
Tailwind
colors: {
  custom: {
    50: '#bf6ed2',
    500: '#9d22bd',
    950: '#000000',
  },
}
SCSS
$custom: #9d22bd;
$custom-light: #bf6ed2;
$custom-dark: #000000;
JSON
{
  "hex": "#9d22bd",
  "rgb": {
    "r": 157,
    "g": 34,
    "b": 189
  },
  "hsl": {
    "h": 287.613,
    "s": 69.507,
    "l": 43.725
  },
  "oklch": {
    "l": 0.52366,
    "c": 0.23035,
    "h": 317.9
  },
  "luminance": 0.11986
}

Semantic roles & 50–950 ramp

primary
#9D22BD
secondary
#82CD6E
accent
#EC3B60
background
#FCF7FD
surface
#F8EDFA
border
#D1C8D3
text
#130814
muted
#827B83

Preview Lab

Preview with #9D22BD

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

Preview Lab → · Contrast checker → · Palette generator →

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