#9F27A6#9F27A6

#9F27A6 is a mid, highly saturated purple. Relative luminance 0.116; OKLCH L 51.5% C 0.208 H 325.6°. Best body text is #FFFFFF at 6.33:1 contrast (WCAG AA passes).

Color values

HEX#9F27A6
RGBrgb(159, 39, 166)
HSLhsl(297, 62%, 40%)
HSVhsv(297, 77%, 65%)
CMYKcmyk(4.2%, 76.5%, 0%, 34.9%)
CIE-LABlab(40.54, 62.87, -42.28)
CIE-LCHlch(40.54, 75.77, 326.08°)
OKLaboklab(51.49% 0.1719 -0.1177)
OKLCHoklch(51.49% 0.208 325.6)
XYZxyz(21.9061, 11.5766, 37.1497)
Luminance0.1158 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F27A6 #2EA627
analogous
#6027A6 #9F27A6 #A6276D
triadic
#9F27A6 #A69F27 #27A69F
tetradic
#9F27A6 #A66027 #2EA627 #276DA6
square
#9F27A6 #A66027 #2EA627 #276DA6
split-complementary
#9F27A6 #6DA627 #27A660
monochromatic
#401043 #701B74 #9F27A6 #C83AD1 #D66BDC

Accessibility & contrast

On white

6.33
#9F27A6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.32
#9F27A6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F27A6
6.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F27A6#FFFFFF#000000##FFFFFF
##9F27A61.006.333.326.33
#FFFFFF6.331.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056A9
Deuteranopia (green-blind)
#4465A3
Tritanopia (blue-blind)
#A33E66
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #9f27a6;
/* rgb */ color: rgb(159, 39, 166);
/* oklch */ color: oklch(51.5% 0.208 325.6);
Tailwind
colors: {
  custom: {
    50: '#bf6fc1',
    500: '#9f27a6',
    950: '#000000',
  },
}
SCSS
$custom: #9f27a6;
$custom-light: #bf6fc1;
$custom-dark: #000000;
JSON
{
  "hex": "#9f27a6",
  "rgb": {
    "r": 159,
    "g": 39,
    "b": 166
  },
  "hsl": {
    "h": 296.693,
    "s": 61.951,
    "l": 40.196
  },
  "oklch": {
    "l": 0.51491,
    "c": 0.20836,
    "h": 325.6
  },
  "luminance": 0.11575
}

Semantic roles & 50–950 ramp

primary
#9F27A6
secondary
#6BC366
accent
#E5434C
background
#FCF7FB
surface
#F8EDF7
border
#D1C8D0
text
#130812
muted
#827B81

Preview Lab

Preview with #9F27A6

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

Preview Lab → · Contrast checker → · Palette generator →

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