#9847CC#9847CC

#9847CC is a mid, highly saturated violet. Relative luminance 0.155; OKLCH L 56.2% C 0.202 H 309.4°. Best body text is #FFFFFF at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#9847CC
RGBrgb(152, 71, 204)
HSLhsl(277, 57%, 54%)
HSVhsv(277, 65%, 80%)
CMYKcmyk(25.5%, 65.2%, 0%, 20%)
CIE-LABlab(46.37, 56.16, -55.28)
CIE-LCHlch(46.37, 78.80, 315.45°)
OKLaboklab(56.21% 0.1281 -0.1562)
OKLCHoklch(56.21% 0.202 309.4)
XYZxyz(26.0991, 15.5420, 58.7401)
Luminance0.1554 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9847CC #7BCC47
analogous
#5647CC #9847CC #CC47BE
triadic
#9847CC #CC9847 #47CC98
tetradic
#9847CC #CC5647 #7BCC47 #47BECC
square
#9847CC #CC5647 #7BCC47 #47BECC
split-complementary
#9847CC #BECC47 #47CC56
monochromatic
#562177 #782EA7 #9847CC #B377D9 #CEA7E7

Accessibility & contrast

On white

5.11
#9847CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.11
#9847CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9847CC
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9847CC#FFFFFF#000000##FFFFFF
##9847CC1.005.114.115.11
#FFFFFF5.111.0021.001.00
#0000004.1121.001.0021.00
##FFFFFF5.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AD0
Deuteranopia (green-blind)
#326FC9
Tritanopia (blue-blind)
#916283
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #9847cc;
/* rgb */ color: rgb(152, 71, 204);
/* oklch */ color: oklch(56.2% 0.202 309.4);
Tailwind
colors: {
  custom: {
    50: '#ba7fdc',
    500: '#9847cc',
    950: '#000000',
  },
}
SCSS
$custom: #9847cc;
$custom-light: #ba7fdc;
$custom-dark: #000000;
JSON
{
  "hex": "#9847cc",
  "rgb": {
    "r": 152,
    "g": 71,
    "b": 204
  },
  "hsl": {
    "h": 276.541,
    "s": 56.596,
    "l": 53.922
  },
  "oklch": {
    "l": 0.56212,
    "c": 0.20199,
    "h": 309.4
  },
  "luminance": 0.15542
}

Semantic roles & 50–950 ramp

primary
#9847CC
secondary
#B1D49B
accent
#E04883
background
#FBF8FD
surface
#F7EFFB
border
#D0CAD4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9847CC

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

Preview Lab → · Contrast checker → · Palette generator →

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