#9F22CA#9F22CA

#9F22CA is a mid, highly saturated purple. Relative luminance 0.128; OKLCH L 53.6% C 0.242 H 315.0°. Best body text is #FFFFFF at 5.91:1 contrast (WCAG AA passes).

Color values

HEX#9F22CA
RGBrgb(159, 34, 202)
HSLhsl(285, 71%, 46%)
HSVhsv(285, 83%, 79%)
CMYKcmyk(21.3%, 83.2%, 0%, 20.8%)
CIE-LABlab(42.43, 70.75, -60.44)
CIE-LCHlch(42.43, 93.05, 319.50°)
OKLaboklab(53.58% 0.1707 -0.1709)
OKLCHoklch(53.58% 0.242 315)
XYZxyz(25.5290, 12.7802, 56.9877)
Luminance0.1278 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F22CA #4DCA22
analogous
#4B22CA #9F22CA #CA22A1
triadic
#9F22CA #CA9F22 #22CA9F
tetradic
#9F22CA #CA4B22 #4DCA22 #22A1CA
square
#9F22CA #CA4B22 #4DCA22 #22A1CA
split-complementary
#9F22CA #A1CA22 #22CA4B
monochromatic
#4D1061 #761996 #9F22CA #BA49E0 #CE7DE9

Accessibility & contrast

On white

5.91
#9F22CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#9F22CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F22CA
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F22CA#FFFFFF#000000##FFFFFF
##9F22CA1.005.913.565.91
#FFFFFF5.911.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ECE
Deuteranopia (green-blind)
#1367C7
Tritanopia (blue-blind)
#9B4D79
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #9f22ca;
/* rgb */ color: rgb(159, 34, 202);
/* oklch */ color: oklch(53.6% 0.242 315.0);
Tailwind
colors: {
  custom: {
    50: '#c16fdb',
    500: '#9f22ca',
    950: '#000000',
  },
}
SCSS
$custom: #9f22ca;
$custom-light: #c16fdb;
$custom-dark: #000000;
JSON
{
  "hex": "#9f22ca",
  "rgb": {
    "r": 159,
    "g": 34,
    "b": 202
  },
  "hsl": {
    "h": 284.643,
    "s": 71.186,
    "l": 46.275
  },
  "oklch": {
    "l": 0.53581,
    "c": 0.24151,
    "h": 315
  },
  "luminance": 0.12779
}

Semantic roles & 50–950 ramp

primary
#9F22CA
secondary
#8ED177
accent
#EE3A68
background
#FCF7FD
surface
#F8EDFB
border
#D1C8D4
text
#130815
muted
#827B83

Preview Lab

Preview with #9F22CA

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

Preview Lab → · Contrast checker → · Palette generator →

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