#9F27A8#9F27A8

#9F27A8 is a mid, highly saturated purple. Relative luminance 0.116; OKLCH L 51.6% C 0.210 H 324.9°. Best body text is #FFFFFF at 6.31:1 contrast (WCAG AA passes).

Color values

HEX#9F27A8
RGBrgb(159, 39, 168)
HSLhsl(296, 62%, 41%)
HSVhsv(296, 77%, 66%)
CMYKcmyk(5.4%, 76.8%, 0%, 34.1%)
CIE-LABlab(40.66, 63.21, -43.28)
CIE-LCHlch(40.66, 76.61, 325.60°)
OKLaboklab(51.62% 0.1718 -0.1206)
OKLCHoklch(51.62% 0.21 324.9)
XYZxyz(22.0909, 11.6506, 38.1234)
Luminance0.1165 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F27A8 #30A827
analogous
#5E27A8 #9F27A8 #A82770
triadic
#9F27A8 #A89F27 #27A89F
tetradic
#9F27A8 #A85E27 #30A827 #2770A8
square
#9F27A8 #A85E27 #30A827 #2770A8
split-complementary
#9F27A8 #70A827 #27A85E
monochromatic
#411045 #701B76 #9F27A8 #C73BD1 #D56CDD

Accessibility & contrast

On white

6.31
#9F27A8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#9F27A8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F27A8
6.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F27A8#FFFFFF#000000##FFFFFF
##9F27A81.006.313.336.31
#FFFFFF6.311.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057AB
Deuteranopia (green-blind)
#4365A5
Tritanopia (blue-blind)
#A23F67
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #9f27a8;
/* rgb */ color: rgb(159, 39, 168);
/* oklch */ color: oklch(51.6% 0.210 324.9);
Tailwind
colors: {
  custom: {
    50: '#bf6fc2',
    500: '#9f27a8',
    950: '#000000',
  },
}
SCSS
$custom: #9f27a8;
$custom-light: #bf6fc2;
$custom-dark: #000000;
JSON
{
  "hex": "#9f27a8",
  "rgb": {
    "r": 159,
    "g": 39,
    "b": 168
  },
  "hsl": {
    "h": 295.814,
    "s": 62.319,
    "l": 40.588
  },
  "oklch": {
    "l": 0.51615,
    "c": 0.20994,
    "h": 324.9
  },
  "luminance": 0.11649
}

Semantic roles & 50–950 ramp

primary
#9F27A8
secondary
#6EC367
accent
#E5424E
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130812
muted
#827B81

Preview Lab

Preview with #9F27A8

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

Preview Lab → · Contrast checker → · Palette generator →

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