#9F22A8#9F22A8

#9F22A8 is a mid, highly saturated purple. Relative luminance 0.113; OKLCH L 51.3% C 0.215 H 325.0°. Best body text is #FFFFFF at 6.43:1 contrast (WCAG AA passes).

Color values

HEX#9F22A8
RGBrgb(159, 34, 168)
HSLhsl(296, 66%, 40%)
HSVhsv(296, 80%, 66%)
CMYKcmyk(5.4%, 79.8%, 0%, 34.1%)
CIE-LABlab(40.15, 64.66, -44.08)
CIE-LCHlch(40.15, 78.26, 325.72°)
OKLaboklab(51.26% 0.1758 -0.1229)
OKLCHoklch(51.26% 0.215 325)
XYZxyz(21.9375, 11.3436, 38.0723)
Luminance0.1134 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F22A8 #2BA822
analogous
#5C22A8 #9F22A8 #A8226E
triadic
#9F22A8 #A89F22 #22A89F
tetradic
#9F22A8 #A85C22 #2BA822 #226EA8
square
#9F22A8 #A85C22 #2BA822 #226EA8
split-complementary
#9F22A8 #6EA822 #22A85C
monochromatic
#3F0D42 #6F1875 #9F22A8 #CA32D5 #D765E0

Accessibility & contrast

On white

6.43
#9F22A8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#9F22A8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F22A8
6.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F22A8#FFFFFF#000000##FFFFFF
##9F22A81.006.433.276.43
#FFFFFF6.431.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055AB
Deuteranopia (green-blind)
#4064A5
Tritanopia (blue-blind)
#A33C66
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #9f22a8;
/* rgb */ color: rgb(159, 34, 168);
/* oklch */ color: oklch(51.3% 0.215 325.0);
Tailwind
colors: {
  custom: {
    50: '#bf6dc2',
    500: '#9f22a8',
    950: '#000000',
  },
}
SCSS
$custom: #9f22a8;
$custom-light: #bf6dc2;
$custom-dark: #000000;
JSON
{
  "hex": "#9f22a8",
  "rgb": {
    "r": 159,
    "g": 34,
    "b": 168
  },
  "hsl": {
    "h": 295.97,
    "s": 66.337,
    "l": 39.608
  },
  "oklch": {
    "l": 0.51258,
    "c": 0.21454,
    "h": 325
  },
  "luminance": 0.11342
}

Semantic roles & 50–950 ramp

primary
#9F22A8
secondary
#67C561
accent
#E93F4A
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130812
muted
#827B81

Preview Lab

Preview with #9F22A8

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

Preview Lab → · Contrast checker → · Palette generator →

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