#9F27AA#9F27AA

#9F27AA is a mid, highly saturated purple. Relative luminance 0.117; OKLCH L 51.7% C 0.212 H 324.3°. Best body text is #FFFFFF at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#9F27AA
RGBrgb(159, 39, 170)
HSLhsl(295, 63%, 41%)
HSVhsv(295, 77%, 67%)
CMYKcmyk(6.5%, 77.1%, 0%, 33.3%)
CIE-LABlab(40.78, 63.56, -44.28)
CIE-LCHlch(40.78, 77.46, 325.14°)
OKLaboklab(51.74% 0.1717 -0.1235)
OKLCHoklch(51.74% 0.212 324.3)
XYZxyz(22.2787, 11.7257, 39.1123)
Luminance0.1172 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F27AA #32AA27
analogous
#5D27AA #9F27AA #AA2773
triadic
#9F27AA #AA9F27 #27AA9F
tetradic
#9F27AA #AA5D27 #32AA27 #2773AA
square
#9F27AA #AA5D27 #32AA27 #2773AA
split-complementary
#9F27AA #73AA27 #27AA5D
monochromatic
#421046 #701C78 #9F27AA #C63CD2 #D46EDE

Accessibility & contrast

On white

6.28
#9F27AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#9F27AA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F27AA
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F27AA#FFFFFF#000000##FFFFFF
##9F27AA1.006.283.346.28
#FFFFFF6.281.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057AD
Deuteranopia (green-blind)
#4165A7
Tritanopia (blue-blind)
#A24068
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #9f27aa;
/* rgb */ color: rgb(159, 39, 170);
/* oklch */ color: oklch(51.7% 0.212 324.3);
Tailwind
colors: {
  custom: {
    50: '#bf6fc4',
    500: '#9f27aa',
    950: '#000000',
  },
}
SCSS
$custom: #9f27aa;
$custom-light: #bf6fc4;
$custom-dark: #000000;
JSON
{
  "hex": "#9f27aa",
  "rgb": {
    "r": 159,
    "g": 39,
    "b": 170
  },
  "hsl": {
    "h": 294.962,
    "s": 62.679,
    "l": 40.98
  },
  "oklch": {
    "l": 0.5174,
    "c": 0.21153,
    "h": 324.3
  },
  "luminance": 0.11724
}

Semantic roles & 50–950 ramp

primary
#9F27AA
secondary
#70C469
accent
#E64250
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130813
muted
#827B82

Preview Lab

Preview with #9F27AA

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

Preview Lab → · Contrast checker → · Palette generator →

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