#9847BB#9847BB

#9847BB is a mid, vivid purple. Relative luminance 0.148; OKLCH L 55.1% C 0.185 H 314.2°. Best body text is #FFFFFF at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#9847BB
RGBrgb(152, 71, 187)
HSLhsl(282, 46%, 51%)
HSVhsv(282, 62%, 73%)
CMYKcmyk(18.7%, 62%, 0%, 26.7%)
CIE-LABlab(45.32, 52.47, -47.11)
CIE-LCHlch(45.32, 70.51, 318.08°)
OKLaboklab(55.12% 0.1288 -0.1322)
OKLCHoklch(55.12% 0.185 314.2)
XYZxyz(24.1703, 14.7705, 48.5818)
Luminance0.1477 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9847BB #6ABB47
analogous
#5E47BB #9847BB #BB47A4
triadic
#9847BB #BB9847 #47BB98
tetradic
#9847BB #BB5E47 #6ABB47 #47A4BB
square
#9847BB #BB5E47 #6ABB47 #47A4BB
split-complementary
#9847BB #A4BB47 #47BB5E
monochromatic
#502563 #743590 #9847BB #B174CC #CAA0DC

Accessibility & contrast

On white

5.31
#9847BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.95
#9847BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9847BB
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9847BB#FFFFFF#000000##FFFFFF
##9847BB1.005.313.955.31
#FFFFFF5.311.0021.001.00
#0000003.9521.001.0021.00
##FFFFFF5.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D67BF
Deuteranopia (green-blind)
#436DB8
Tritanopia (blue-blind)
#955C7A
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #9847bb;
/* rgb */ color: rgb(152, 71, 187);
/* oklch */ color: oklch(55.1% 0.185 314.2);
Tailwind
colors: {
  custom: {
    50: '#b97fd0',
    500: '#9847bb',
    950: '#000000',
  },
}
SCSS
$custom: #9847bb;
$custom-light: #b97fd0;
$custom-dark: #000000;
JSON
{
  "hex": "#9847bb",
  "rgb": {
    "r": 152,
    "g": 71,
    "b": 187
  },
  "hsl": {
    "h": 281.897,
    "s": 46.032,
    "l": 50.588
  },
  "oklch": {
    "l": 0.55117,
    "c": 0.18455,
    "h": 314.2
  },
  "luminance": 0.1477
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #9847BB

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

Preview Lab → · Contrast checker → · Palette generator →

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