#9847BC#9847BC

#9847BC is a mid, vivid purple. Relative luminance 0.148; OKLCH L 55.2% C 0.186 H 313.9°. Best body text is #FFFFFF at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#9847BC
RGBrgb(152, 71, 188)
HSLhsl(282, 47%, 51%)
HSVhsv(282, 62%, 74%)
CMYKcmyk(19.1%, 62.2%, 0%, 26.3%)
CIE-LABlab(45.38, 52.69, -47.59)
CIE-LCHlch(45.38, 71.00, 317.91°)
OKLaboklab(55.18% 0.1287 -0.1336)
OKLCHoklch(55.18% 0.186 313.9)
XYZxyz(24.2777, 14.8134, 49.1476)
Luminance0.1481 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9847BC #6BBC47
analogous
#5D47BC #9847BC #BC47A6
triadic
#9847BC #BC9847 #47BC98
tetradic
#9847BC #BC5D47 #6BBC47 #47A6BC
square
#9847BC #BC5D47 #6BBC47 #47A6BC
split-complementary
#9847BC #A6BC47 #47BC5D
monochromatic
#512464 #753591 #9847BC #B174CC #CAA1DD

Accessibility & contrast

On white

5.30
#9847BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.96
#9847BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9847BC
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9847BC#FFFFFF#000000##FFFFFF
##9847BC1.005.303.965.30
#FFFFFF5.301.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B67C0
Deuteranopia (green-blind)
#426DB9
Tritanopia (blue-blind)
#955D7B
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #9847bc;
/* rgb */ color: rgb(152, 71, 188);
/* oklch */ color: oklch(55.2% 0.186 313.9);
Tailwind
colors: {
  custom: {
    50: '#b97fd1',
    500: '#9847bc',
    950: '#000000',
  },
}
SCSS
$custom: #9847bc;
$custom-light: #b97fd1;
$custom-dark: #000000;
JSON
{
  "hex": "#9847bc",
  "rgb": {
    "r": 152,
    "g": 71,
    "b": 188
  },
  "hsl": {
    "h": 281.538,
    "s": 46.614,
    "l": 50.784
  },
  "oklch": {
    "l": 0.5518,
    "c": 0.18557,
    "h": 313.9
  },
  "luminance": 0.14813
}

Semantic roles & 50–950 ramp

primary
#9847BC
secondary
#A5C995
accent
#D6527A
background
#FBF8FC
surface
#F7EFF9
border
#D0CAD2
text
#120A14
muted
#817C82

Preview Lab

Preview with #9847BC

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

Preview Lab → · Contrast checker → · Palette generator →

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