#9B27C2#9B27C2

#9B27C2 is a mid, highly saturated purple. Relative luminance 0.123; OKLCH L 52.8% C 0.230 H 315.5°. Best body text is #FFFFFF at 6.06:1 contrast (WCAG AA passes).

Color values

HEX#9B27C2
RGBrgb(155, 39, 194)
HSLhsl(285, 67%, 46%)
HSVhsv(285, 80%, 76%)
CMYKcmyk(20.1%, 79.9%, 0%, 23.9%)
CIE-LABlab(41.71, 67.17, -56.97)
CIE-LCHlch(41.71, 88.08, 319.70°)
OKLaboklab(52.78% 0.1639 -0.1608)
OKLCHoklch(52.78% 0.23 315.5)
XYZxyz(23.9791, 12.3156, 52.1425)
Luminance0.1231 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B27C2 #4EC227
analogous
#4D27C2 #9B27C2 #C2279B
triadic
#9B27C2 #C29B27 #27C29B
tetradic
#9B27C2 #C24D27 #4EC227 #279BC2
square
#9B27C2 #C24D27 #4EC227 #279BC2
split-complementary
#9B27C2 #9BC227 #27C24D
monochromatic
#4A135C #721D8F #9B27C2 #B74BDB #CB7EE5

Accessibility & contrast

On white

6.06
#9B27C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#9B27C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9B27C2
6.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B27C2#FFFFFF#000000##FFFFFF
##9B27C21.006.063.466.06
#FFFFFF6.061.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CC6
Deuteranopia (green-blind)
#2165BF
Tritanopia (blue-blind)
#984C76
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #9b27c2;
/* rgb */ color: rgb(155, 39, 194);
/* oklch */ color: oklch(52.8% 0.230 315.5);
Tailwind
colors: {
  custom: {
    50: '#bd70d5',
    500: '#9b27c2',
    950: '#000000',
  },
}
SCSS
$custom: #9b27c2;
$custom-light: #bd70d5;
$custom-dark: #000000;
JSON
{
  "hex": "#9b27c2",
  "rgb": {
    "r": 155,
    "g": 39,
    "b": 194
  },
  "hsl": {
    "h": 284.903,
    "s": 66.524,
    "l": 45.686
  },
  "oklch": {
    "l": 0.52777,
    "c": 0.22962,
    "h": 315.5
  },
  "luminance": 0.12315
}

Semantic roles & 50–950 ramp

primary
#9B27C2
secondary
#8DCE77
accent
#E93E69
background
#FCF7FD
surface
#F8EDFA
border
#D1C8D3
text
#130814
muted
#827B83

Preview Lab

Preview with #9B27C2

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

Preview Lab → · Contrast checker → · Palette generator →

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