#9F27A5#9F27A5

#9F27A5 is a mid, highly saturated purple. Relative luminance 0.115; OKLCH L 51.4% C 0.208 H 325.9°. Best body text is #FFFFFF at 6.35:1 contrast (WCAG AA passes).

Color values

HEX#9F27A5
RGBrgb(159, 39, 165)
HSLhsl(297, 62%, 40%)
HSVhsv(297, 76%, 65%)
CMYKcmyk(3.6%, 76.4%, 0%, 35.3%)
CIE-LABlab(40.48, 62.70, -41.78)
CIE-LCHlch(40.48, 75.34, 326.33°)
OKLaboklab(51.43% 0.172 -0.1162)
OKLCHoklch(51.43% 0.208 325.9)
XYZxyz(21.8147, 11.5401, 36.6685)
Luminance0.1154 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F27A5 #2DA527
analogous
#6027A5 #9F27A5 #A5276C
triadic
#9F27A5 #A59F27 #27A59F
tetradic
#9F27A5 #A56027 #2DA527 #276CA5
square
#9F27A5 #A56027 #2DA527 #276CA5
split-complementary
#9F27A5 #6CA527 #27A560
monochromatic
#401042 #6F1B74 #9F27A5 #C939D0 #D76ADC

Accessibility & contrast

On white

6.35
#9F27A5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#9F27A5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F27A5
6.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F27A5#FFFFFF#000000##FFFFFF
##9F27A51.006.353.316.35
#FFFFFF6.351.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056A8
Deuteranopia (green-blind)
#4564A2
Tritanopia (blue-blind)
#A33D65
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #9f27a5;
/* rgb */ color: rgb(159, 39, 165);
/* oklch */ color: oklch(51.4% 0.208 325.9);
Tailwind
colors: {
  custom: {
    50: '#bf6fc0',
    500: '#9f27a5',
    950: '#000000',
  },
}
SCSS
$custom: #9f27a5;
$custom-light: #bf6fc0;
$custom-dark: #000000;
JSON
{
  "hex": "#9f27a5",
  "rgb": {
    "r": 159,
    "g": 39,
    "b": 165
  },
  "hsl": {
    "h": 297.143,
    "s": 61.765,
    "l": 40
  },
  "oklch": {
    "l": 0.51429,
    "c": 0.20758,
    "h": 325.9
  },
  "luminance": 0.11539
}

Semantic roles & 50–950 ramp

primary
#9F27A5
secondary
#6AC266
accent
#E5434B
background
#FCF7FB
surface
#F8EDF7
border
#D1C8D0
text
#130812
muted
#827B81

Preview Lab

Preview with #9F27A5

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

Preview Lab → · Contrast checker → · Palette generator →

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