#9847BF#9847BF

#9847BF is a mid, vivid purple. Relative luminance 0.149; OKLCH L 55.4% C 0.189 H 313.0°. Best body text is #FFFFFF at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#9847BF
RGBrgb(152, 71, 191)
HSLhsl(281, 48%, 51%)
HSVhsv(281, 63%, 75%)
CMYKcmyk(20.4%, 62.8%, 0%, 25.1%)
CIE-LABlab(45.56, 53.33, -49.05)
CIE-LCHlch(45.56, 72.46, 317.39°)
OKLaboklab(55.37% 0.1287 -0.1379)
OKLCHoklch(55.37% 0.189 313)
XYZxyz(24.6045, 14.9441, 50.8685)
Luminance0.1494 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9847BF #6EBF47
analogous
#5C47BF #9847BF #BF47AA
triadic
#9847BF #BF9847 #47BF98
tetradic
#9847BF #BF5C47 #6EBF47 #47AABF
square
#9847BF #BF5C47 #6EBF47 #47AABF
split-complementary
#9847BF #AABF47 #47BF5C
monochromatic
#522468 #753495 #9847BF #B174CF #CBA2DF

Accessibility & contrast

On white

5.27
#9847BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#9847BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9847BF
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9847BF#FFFFFF#000000##FFFFFF
##9847BF1.005.273.995.27
#FFFFFF5.271.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1568C3
Deuteranopia (green-blind)
#406EBC
Tritanopia (blue-blind)
#945E7D
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #9847bf;
/* rgb */ color: rgb(152, 71, 191);
/* oklch */ color: oklch(55.4% 0.189 313.0);
Tailwind
colors: {
  custom: {
    50: '#ba7fd3',
    500: '#9847bf',
    950: '#000000',
  },
}
SCSS
$custom: #9847bf;
$custom-light: #ba7fd3;
$custom-dark: #000000;
JSON
{
  "hex": "#9847bf",
  "rgb": {
    "r": 152,
    "g": 71,
    "b": 191
  },
  "hsl": {
    "h": 280.5,
    "s": 48.387,
    "l": 51.373
  },
  "oklch": {
    "l": 0.55368,
    "c": 0.18863,
    "h": 313
  },
  "luminance": 0.14943
}

Semantic roles & 50–950 ramp

primary
#9847BF
secondary
#A8CB96
accent
#D8507C
background
#FBF8FD
surface
#F7EFFA
border
#D0CAD3
text
#120A14
muted
#817C83

Preview Lab

Preview with #9847BF

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

Preview Lab → · Contrast checker → · Palette generator →

#9847BF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva