#9F22A5#9F22A5

#9F22A5 is a mid, highly saturated purple. Relative luminance 0.112; OKLCH L 51.1% C 0.212 H 326.0°. Best body text is #FFFFFF at 6.47:1 contrast (WCAG AA passes).

Color values

HEX#9F22A5
RGBrgb(159, 34, 165)
HSLhsl(297, 66%, 39%)
HSVhsv(297, 79%, 65%)
CMYKcmyk(3.6%, 79.4%, 0%, 35.3%)
CIE-LABlab(39.97, 64.16, -42.58)
CIE-LCHlch(39.97, 77.00, 326.43°)
OKLaboklab(51.07% 0.1761 -0.1185)
OKLCHoklch(51.07% 0.212 326)
XYZxyz(21.6612, 11.2331, 36.6173)
Luminance0.1123 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F22A5 #28A522
analogous
#5E22A5 #9F22A5 #A5226A
triadic
#9F22A5 #A59F22 #22A59F
tetradic
#9F22A5 #A55E22 #28A522 #226AA5
square
#9F22A5 #A55E22 #28A522 #226AA5
split-complementary
#9F22A5 #6AA522 #22A55E
monochromatic
#3D0D40 #6E1872 #9F22A5 #CD30D4 #D963DF

Accessibility & contrast

On white

6.47
#9F22A5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#9F22A5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F22A5
6.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F22A5#FFFFFF#000000##FFFFFF
##9F22A51.006.473.256.47
#FFFFFF6.471.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054A8
Deuteranopia (green-blind)
#4363A2
Tritanopia (blue-blind)
#A33B64
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #9f22a5;
/* rgb */ color: rgb(159, 34, 165);
/* oklch */ color: oklch(51.1% 0.212 326.0);
Tailwind
colors: {
  custom: {
    50: '#bf6dc0',
    500: '#9f22a5',
    950: '#000000',
  },
}
SCSS
$custom: #9f22a5;
$custom-light: #bf6dc0;
$custom-dark: #000000;
JSON
{
  "hex": "#9f22a5",
  "rgb": {
    "r": 159,
    "g": 34,
    "b": 165
  },
  "hsl": {
    "h": 297.252,
    "s": 65.829,
    "l": 39.02
  },
  "oklch": {
    "l": 0.5107,
    "c": 0.21224,
    "h": 326
  },
  "luminance": 0.11232
}

Semantic roles & 50–950 ramp

primary
#9F22A5
secondary
#64C45F
accent
#E93F47
background
#FCF7FB
surface
#F8EDF7
border
#D1C8D0
text
#130812
muted
#827B81

Preview Lab

Preview with #9F22A5

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

Preview Lab → · Contrast checker → · Palette generator →

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