#9847C5#9847C5

#9847C5 is a mid, vivid violet. Relative luminance 0.152; OKLCH L 55.8% C 0.195 H 311.3°. Best body text is #FFFFFF at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#9847C5
RGBrgb(152, 71, 197)
HSLhsl(279, 52%, 53%)
HSVhsv(279, 64%, 77%)
CMYKcmyk(22.8%, 64%, 0%, 22.7%)
CIE-LABlab(45.93, 54.62, -51.95)
CIE-LCHlch(45.93, 75.38, 316.44°)
OKLaboklab(55.75% 0.1285 -0.1464)
OKLCHoklch(55.75% 0.195 311.3)
XYZxyz(25.2783, 15.2137, 54.4174)
Luminance0.1521 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9847C5 #74C547
analogous
#5947C5 #9847C5 #C547B3
triadic
#9847C5 #C59847 #47C598
tetradic
#9847C5 #C55947 #74C547 #47B3C5
square
#9847C5 #C55947 #74C547 #47B3C5
split-complementary
#9847C5 #B3C547 #47C559
monochromatic
#54236F #77329D #9847C5 #B276D4 #CCA4E2

Accessibility & contrast

On white

5.19
#9847C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#9847C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9847C5
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9847C5#FFFFFF#000000##FFFFFF
##9847C51.005.194.045.19
#FFFFFF5.191.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069C9
Deuteranopia (green-blind)
#3A6EC2
Tritanopia (blue-blind)
#926080
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #9847c5;
/* rgb */ color: rgb(152, 71, 197);
/* oklch */ color: oklch(55.8% 0.195 311.3);
Tailwind
colors: {
  custom: {
    50: '#ba7fd7',
    500: '#9847c5',
    950: '#000000',
  },
}
SCSS
$custom: #9847c5;
$custom-light: #ba7fd7;
$custom-dark: #000000;
JSON
{
  "hex": "#9847c5",
  "rgb": {
    "r": 152,
    "g": 71,
    "b": 197
  },
  "hsl": {
    "h": 278.571,
    "s": 52.066,
    "l": 52.549
  },
  "oklch": {
    "l": 0.55752,
    "c": 0.19479,
    "h": 311.3
  },
  "luminance": 0.15213
}

Semantic roles & 50–950 ramp

primary
#9847C5
secondary
#ACCF99
accent
#DC4C7F
background
#FBF8FD
surface
#F7EFFA
border
#D0CAD3
text
#120A14
muted
#817C83

Preview Lab

Preview with #9847C5

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

Preview Lab → · Contrast checker → · Palette generator →

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