#9F27A2#9F27A2

#9F27A2 is a mid, highly saturated purple. Relative luminance 0.114; OKLCH L 51.2% C 0.205 H 327.0°. Best body text is #FFFFFF at 6.39:1 contrast (WCAG AA passes).

Color values

HEX#9F27A2
RGBrgb(159, 39, 162)
HSLhsl(299, 61%, 39%)
HSVhsv(299, 76%, 64%)
CMYKcmyk(1.9%, 75.9%, 0%, 36.5%)
CIE-LABlab(40.30, 62.20, -40.26)
CIE-LCHlch(40.30, 74.09, 327.09°)
OKLaboklab(51.25% 0.1721 -0.1118)
OKLCHoklch(51.25% 0.205 327)
XYZxyz(21.5448, 11.4321, 35.2473)
Luminance0.1143 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F27A2 #2AA227
analogous
#6227A2 #9F27A2 #A22767
triadic
#9F27A2 #A29F27 #27A29F
tetradic
#9F27A2 #A26227 #2AA227 #2767A2
square
#9F27A2 #A26227 #2AA227 #2767A2
split-complementary
#9F27A2 #67A227 #27A262
monochromatic
#3E0F3F #6F1B71 #9F27A2 #CB37CF #D869DB

Accessibility & contrast

On white

6.39
#9F27A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#9F27A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F27A2
6.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F27A2#FFFFFF#000000##FFFFFF
##9F27A21.006.393.296.39
#FFFFFF6.391.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055A5
Deuteranopia (green-blind)
#47649F
Tritanopia (blue-blind)
#A43C63
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #9f27a2;
/* rgb */ color: rgb(159, 39, 162);
/* oklch */ color: oklch(51.2% 0.205 327.0);
Tailwind
colors: {
  custom: {
    50: '#bf6fbe',
    500: '#9f27a2',
    950: '#000000',
  },
}
SCSS
$custom: #9f27a2;
$custom-light: #bf6fbe;
$custom-dark: #000000;
JSON
{
  "hex": "#9f27a2",
  "rgb": {
    "r": 159,
    "g": 39,
    "b": 162
  },
  "hsl": {
    "h": 298.537,
    "s": 61.194,
    "l": 39.412
  },
  "oklch": {
    "l": 0.51247,
    "c": 0.20523,
    "h": 327
  },
  "luminance": 0.11431
}

Semantic roles & 50–950 ramp

primary
#9F27A2
secondary
#66C164
accent
#E44347
background
#FCF7FB
surface
#F8EDF7
border
#D1C8D0
text
#130812
muted
#827B81

Preview Lab

Preview with #9F27A2

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

Preview Lab → · Contrast checker → · Palette generator →

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