#9F22A6#9F22A6

#9F22A6 is a mid, highly saturated purple. Relative luminance 0.113; OKLCH L 51.1% C 0.213 H 325.7°. Best body text is #FFFFFF at 6.45:1 contrast (WCAG AA passes).

Color values

HEX#9F22A6
RGBrgb(159, 34, 166)
HSLhsl(297, 66%, 39%)
HSVhsv(297, 80%, 65%)
CMYKcmyk(4.2%, 79.5%, 0%, 34.9%)
CIE-LABlab(40.03, 64.33, -43.08)
CIE-LCHlch(40.03, 77.42, 326.19°)
OKLaboklab(51.13% 0.176 -0.12)
OKLCHoklch(51.13% 0.213 325.7)
XYZxyz(21.7526, 11.2697, 37.0985)
Luminance0.1127 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F22A6 #29A622
analogous
#5D22A6 #9F22A6 #A6226B
triadic
#9F22A6 #A69F22 #22A69F
tetradic
#9F22A6 #A65D22 #29A622 #226BA6
square
#9F22A6 #A65D22 #29A622 #226BA6
split-complementary
#9F22A6 #6BA622 #22A65D
monochromatic
#3E0D40 #6E1873 #9F22A6 #CC30D5 #D963DF

Accessibility & contrast

On white

6.45
#9F22A6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #9F22A6
6.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F22A6#FFFFFF#000000##FFFFFF
##9F22A61.006.453.256.45
#FFFFFF6.451.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055A9
Deuteranopia (green-blind)
#4263A3
Tritanopia (blue-blind)
#A33B64
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #9f22a6;
/* rgb */ color: rgb(159, 34, 166);
/* oklch */ color: oklch(51.1% 0.213 325.7);
Tailwind
colors: {
  custom: {
    50: '#bf6dc1',
    500: '#9f22a6',
    950: '#000000',
  },
}
SCSS
$custom: #9f22a6;
$custom-light: #bf6dc1;
$custom-dark: #000000;
JSON
{
  "hex": "#9f22a6",
  "rgb": {
    "r": 159,
    "g": 34,
    "b": 166
  },
  "hsl": {
    "h": 296.818,
    "s": 66,
    "l": 39.216
  },
  "oklch": {
    "l": 0.51133,
    "c": 0.21301,
    "h": 325.7
  },
  "luminance": 0.11268
}

Semantic roles & 50–950 ramp

primary
#9F22A6
secondary
#65C45F
accent
#E93F48
background
#FCF7FB
surface
#F8EDF7
border
#D1C8D0
text
#130812
muted
#827B81

Preview Lab

Preview with #9F22A6

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

Preview Lab → · Contrast checker → · Palette generator →

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