#9847C8#9847C8

#9847C8 is a mid, vivid violet. Relative luminance 0.154; OKLCH L 55.9% C 0.198 H 310.4°. Best body text is #FFFFFF at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#9847C8
RGBrgb(152, 71, 200)
HSLhsl(278, 54%, 53%)
HSVhsv(278, 65%, 78%)
CMYKcmyk(24%, 64.5%, 0%, 21.6%)
CIE-LABlab(46.11, 55.28, -53.38)
CIE-LCHlch(46.11, 76.85, 316.00°)
OKLaboklab(55.95% 0.1284 -0.1506)
OKLCHoklch(55.95% 0.198 310.4)
XYZxyz(25.6255, 15.3526, 56.2458)
Luminance0.1535 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9847C8 #77C847
analogous
#5747C8 #9847C8 #C847B8
triadic
#9847C8 #C89847 #47C898
tetradic
#9847C8 #C85747 #77C847 #47B8C8
square
#9847C8 #C85747 #77C847 #47B8C8
split-complementary
#9847C8 #B8C847 #47C857
monochromatic
#552272 #7730A2 #9847C8 #B276D6 #CDA5E4

Accessibility & contrast

On white

5.16
#9847C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#9847C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9847C8
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9847C8#FFFFFF#000000##FFFFFF
##9847C81.005.164.075.16
#FFFFFF5.161.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ACC
Deuteranopia (green-blind)
#376FC5
Tritanopia (blue-blind)
#926181
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #9847c8;
/* rgb */ color: rgb(152, 71, 200);
/* oklch */ color: oklch(55.9% 0.198 310.4);
Tailwind
colors: {
  custom: {
    50: '#ba7fd9',
    500: '#9847c8',
    950: '#000000',
  },
}
SCSS
$custom: #9847c8;
$custom-light: #ba7fd9;
$custom-dark: #000000;
JSON
{
  "hex": "#9847c8",
  "rgb": {
    "r": 152,
    "g": 71,
    "b": 200
  },
  "hsl": {
    "h": 277.674,
    "s": 53.975,
    "l": 53.137
  },
  "oklch": {
    "l": 0.55947,
    "c": 0.19788,
    "h": 310.4
  },
  "luminance": 0.15352
}

Semantic roles & 50–950 ramp

primary
#9847C8
secondary
#AED19A
accent
#DD4A81
background
#FBF8FD
surface
#F7EFFB
border
#D0CAD4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9847C8

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

Preview Lab → · Contrast checker → · Palette generator →

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