#9B27BD#9B27BD

#9B27BD is a mid, highly saturated purple. Relative luminance 0.121; OKLCH L 52.4% C 0.225 H 317.0°. Best body text is #FFFFFF at 6.14:1 contrast (WCAG AA passes).

Color values

HEX#9B27BD
RGBrgb(155, 39, 189)
HSLhsl(286, 66%, 45%)
HSVhsv(286, 79%, 74%)
CMYKcmyk(18%, 79.4%, 0%, 25.9%)
CIE-LABlab(41.37, 66.23, -54.60)
CIE-LCHlch(41.37, 85.83, 320.50°)
OKLaboklab(52.42% 0.1648 -0.1539)
OKLCHoklch(52.42% 0.225 317)
XYZxyz(23.4270, 12.0947, 49.2347)
Luminance0.1209 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B27BD #49BD27
analogous
#5027BD #9B27BD #BD2794
triadic
#9B27BD #BD9B27 #27BD9B
tetradic
#9B27BD #BD5027 #49BD27 #2794BD
square
#9B27BD #BD5027 #49BD27 #2794BD
split-complementary
#9B27BD #94BD27 #27BD50
monochromatic
#481258 #711D8A #9B27BD #B848D9 #CC7BE4

Accessibility & contrast

On white

6.14
#9B27BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#9B27BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9B27BD
6.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B27BD#FFFFFF#000000##FFFFFF
##9B27BD1.006.143.426.14
#FFFFFF6.141.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC1
Deuteranopia (green-blind)
#2965BA
Tritanopia (blue-blind)
#994A73
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #9b27bd;
/* rgb */ color: rgb(155, 39, 189);
/* oklch */ color: oklch(52.4% 0.225 317.0);
Tailwind
colors: {
  custom: {
    50: '#bd70d2',
    500: '#9b27bd',
    950: '#000000',
  },
}
SCSS
$custom: #9b27bd;
$custom-light: #bd70d2;
$custom-dark: #000000;
JSON
{
  "hex": "#9b27bd",
  "rgb": {
    "r": 155,
    "g": 39,
    "b": 189
  },
  "hsl": {
    "h": 286.4,
    "s": 65.789,
    "l": 44.706
  },
  "oklch": {
    "l": 0.52423,
    "c": 0.22545,
    "h": 317
  },
  "luminance": 0.12094
}

Semantic roles & 50–950 ramp

primary
#9B27BD
secondary
#88CC74
accent
#E93F66
background
#FCF7FD
surface
#F8EDFA
border
#D1C8D3
text
#130814
muted
#827B83

Preview Lab

Preview with #9B27BD

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

Preview Lab → · Contrast checker → · Palette generator →

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