#9F20CA#9F20CA

#9F20CA is a mid, highly saturated purple. Relative luminance 0.127; OKLCH L 53.5% C 0.243 H 315.0°. Best body text is #FFFFFF at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#9F20CA
RGBrgb(159, 32, 202)
HSLhsl(285, 73%, 46%)
HSVhsv(285, 84%, 79%)
CMYKcmyk(21.3%, 84.2%, 0%, 20.8%)
CIE-LABlab(42.26, 71.25, -60.71)
CIE-LCHlch(42.26, 93.60, 319.56°)
OKLaboklab(53.46% 0.1719 -0.1717)
OKLCHoklch(53.46% 0.243 315)
XYZxyz(25.4735, 12.6692, 56.9692)
Luminance0.1267 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F20CA #4BCA20
analogous
#4A20CA #9F20CA #CA20A0
triadic
#9F20CA #CA9F20 #20CA9F
tetradic
#9F20CA #CA4A20 #4BCA20 #20A0CA
square
#9F20CA #CA4A20 #4BCA20 #20A0CA
split-complementary
#9F20CA #A0CA20 #20CA4A
monochromatic
#4C0F60 #751895 #9F20CA #BA46E2 #CE7AEA

Accessibility & contrast

On white

5.94
#9F20CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#9F20CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F20CA
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F20CA#FFFFFF#000000##FFFFFF
##9F20CA1.005.943.535.94
#FFFFFF5.941.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.941.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #9f20ca;
/* rgb */ color: rgb(159, 32, 202);
/* oklch */ color: oklch(53.5% 0.243 315.0);
Tailwind
colors: {
  custom: {
    50: '#c16edb',
    500: '#9f20ca',
    950: '#000000',
  },
}
SCSS
$custom: #9f20ca;
$custom-light: #c16edb;
$custom-dark: #000000;
JSON
{
  "hex": "#9f20ca",
  "rgb": {
    "r": 159,
    "g": 32,
    "b": 202
  },
  "hsl": {
    "h": 284.824,
    "s": 72.65,
    "l": 45.882
  },
  "oklch": {
    "l": 0.53463,
    "c": 0.24294,
    "h": 315
  },
  "luminance": 0.12668
}

Semantic roles & 50–950 ramp

primary
#9F20CA
secondary
#8CD274
accent
#EF3867
background
#FCF7FD
surface
#F8EDFB
border
#D1C8D4
text
#130815
muted
#827B83

Preview Lab

Preview with #9F20CA

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

Preview Lab → · Contrast checker → · Palette generator →

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