#9847BE#9847BE

#9847BE is a mid, vivid purple. Relative luminance 0.149; OKLCH L 55.3% C 0.188 H 313.3°. Best body text is #FFFFFF at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#9847BE
RGBrgb(152, 71, 190)
HSLhsl(281, 48%, 51%)
HSVhsv(281, 63%, 75%)
CMYKcmyk(20%, 62.6%, 0%, 25.5%)
CIE-LABlab(45.50, 53.11, -48.57)
CIE-LCHlch(45.50, 71.97, 317.56°)
OKLaboklab(55.31% 0.1287 -0.1365)
OKLCHoklch(55.31% 0.188 313.3)
XYZxyz(24.4948, 14.9003, 50.2909)
Luminance0.1490 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9847BE #6DBE47
analogous
#5C47BE #9847BE #BE47A8
triadic
#9847BE #BE9847 #47BE98
tetradic
#9847BE #BE5C47 #6DBE47 #47A8BE
square
#9847BE #BE5C47 #6DBE47 #47A8BE
split-complementary
#9847BE #A8BE47 #47BE5C
monochromatic
#512466 #753494 #9847BE #B174CE #CBA1DE

Accessibility & contrast

On white

5.28
#9847BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#9847BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9847BE
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9847BE#FFFFFF#000000##FFFFFF
##9847BE1.005.283.985.28
#FFFFFF5.281.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1767C2
Deuteranopia (green-blind)
#416EBB
Tritanopia (blue-blind)
#945D7C
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #9847be;
/* rgb */ color: rgb(152, 71, 190);
/* oklch */ color: oklch(55.3% 0.188 313.3);
Tailwind
colors: {
  custom: {
    50: '#ba7fd2',
    500: '#9847be',
    950: '#000000',
  },
}
SCSS
$custom: #9847be;
$custom-light: #ba7fd2;
$custom-dark: #000000;
JSON
{
  "hex": "#9847be",
  "rgb": {
    "r": 152,
    "g": 71,
    "b": 190
  },
  "hsl": {
    "h": 280.84,
    "s": 47.791,
    "l": 51.176
  },
  "oklch": {
    "l": 0.55305,
    "c": 0.18761,
    "h": 313.3
  },
  "luminance": 0.149
}

Semantic roles & 50–950 ramp

primary
#9847BE
secondary
#A7CB96
accent
#D7507C
background
#FBF8FD
surface
#F7EFFA
border
#D0CAD3
text
#120A14
muted
#817C83

Preview Lab

Preview with #9847BE

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

Preview Lab → · Contrast checker → · Palette generator →

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