#9B47BA#9B47BA

#9B47BA is a mid, vivid purple. Relative luminance 0.150; OKLCH L 55.4% C 0.185 H 315.8°. Best body text is #FFFFFF at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#9B47BA
RGBrgb(155, 71, 186)
HSLhsl(284, 45%, 50%)
HSVhsv(284, 62%, 73%)
CMYKcmyk(16.7%, 61.8%, 0%, 27.1%)
CIE-LABlab(45.66, 52.99, -45.95)
CIE-LCHlch(45.66, 70.14, 319.07°)
OKLaboklab(55.43% 0.1325 -0.1287)
OKLCHoklch(55.43% 0.185 315.8)
XYZxyz(24.6324, 15.0211, 48.0467)
Luminance0.1502 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B47BA #66BA47
analogous
#6147BA #9B47BA #BA47A0
triadic
#9B47BA #BA9B47 #47BA9B
tetradic
#9B47BA #BA6147 #66BA47 #47A0BA
square
#9B47BA #BA6147 #66BA47 #47A0BA
split-complementary
#9B47BA #A0BA47 #47BA61
monochromatic
#512562 #76358E #9B47BA #B374CB #CBA0DB

Accessibility & contrast

On white

5.24
#9B47BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.00
#9B47BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9B47BA
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B47BA#FFFFFF#000000##FFFFFF
##9B47BA1.005.244.005.24
#FFFFFF5.241.0021.001.00
#0000004.0021.001.0021.00
##FFFFFF5.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2267BE
Deuteranopia (green-blind)
#476FB7
Tritanopia (blue-blind)
#995B7A
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #9b47ba;
/* rgb */ color: rgb(155, 71, 186);
/* oklch */ color: oklch(55.4% 0.185 315.8);
Tailwind
colors: {
  custom: {
    50: '#bb7fcf',
    500: '#9b47ba',
    950: '#000000',
  },
}
SCSS
$custom: #9b47ba;
$custom-light: #bb7fcf;
$custom-dark: #000000;
JSON
{
  "hex": "#9b47ba",
  "rgb": {
    "r": 155,
    "g": 71,
    "b": 186
  },
  "hsl": {
    "h": 283.826,
    "s": 45.455,
    "l": 50.392
  },
  "oklch": {
    "l": 0.55434,
    "c": 0.18474,
    "h": 315.8
  },
  "luminance": 0.1502
}

Semantic roles & 50–950 ramp

primary
#9B47BA
secondary
#A3C895
accent
#D55376
background
#FBF8FC
surface
#F7EFF9
border
#D0CAD2
text
#120A14
muted
#817C82

Preview Lab

Preview with #9B47BA

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

Preview Lab → · Contrast checker → · Palette generator →

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