#9847AC#9847AC

#9847AC is a mid, vivid purple. Relative luminance 0.142; OKLCH L 54.2% C 0.169 H 319.3°. Best body text is #FFFFFF at 5.48:1 contrast (WCAG AA passes).

Color values

HEX#9847AC
RGBrgb(152, 71, 172)
HSLhsl(288, 42%, 48%)
HSVhsv(288, 59%, 67%)
CMYKcmyk(11.6%, 58.7%, 0%, 32.5%)
CIE-LABlab(44.46, 49.36, -39.66)
CIE-LCHlch(44.46, 63.32, 321.22°)
OKLaboklab(54.22% 0.1284 -0.1105)
OKLCHoklch(54.22% 0.169 319.3)
XYZxyz(22.6476, 14.1614, 40.5622)
Luminance0.1416 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9847AC #5BAC47
analogous
#6647AC #9847AC #AC478D
triadic
#9847AC #AC9847 #47AC98
tetradic
#9847AC #AC6647 #5BAC47 #478DAC
square
#9847AC #AC6647 #5BAC47 #478DAC
split-complementary
#9847AC #8DAC47 #47AC66
monochromatic
#4B2355 #723581 #9847AC #B26DC3 #C999D5

Accessibility & contrast

On white

5.48
#9847AC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.83
#9847AC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9847AC
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9847AC#FFFFFF#000000##FFFFFF
##9847AC1.005.483.835.48
#FFFFFF5.481.0021.001.00
#0000003.8321.001.0021.00
##FFFFFF5.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3064AF
Deuteranopia (green-blind)
#4E6CA9
Tritanopia (blue-blind)
#985773
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #9847ac;
/* rgb */ color: rgb(152, 71, 172);
/* oklch */ color: oklch(54.2% 0.169 319.3);
Tailwind
colors: {
  custom: {
    50: '#b97fc5',
    500: '#9847ac',
    950: '#000000',
  },
}
SCSS
$custom: #9847ac;
$custom-light: #b97fc5;
$custom-dark: #000000;
JSON
{
  "hex": "#9847ac",
  "rgb": {
    "r": 152,
    "g": 71,
    "b": 172
  },
  "hsl": {
    "h": 288.119,
    "s": 41.564,
    "l": 47.647
  },
  "oklch": {
    "l": 0.5422,
    "c": 0.16939,
    "h": 319.3
  },
  "luminance": 0.1416
}

Semantic roles & 50–950 ramp

primary
#9847AC
secondary
#98C18E
accent
#D1566F
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#120A13
muted
#817C82

Preview Lab

Preview with #9847AC

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

Preview Lab → · Contrast checker → · Palette generator →

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