#9847DC#9847DC

#9847DC is a mid, highly saturated violet. Relative luminance 0.163; OKLCH L 57.3% C 0.218 H 305.4°. Best body text is #FFFFFF at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#9847DC
RGBrgb(152, 71, 220)
HSLhsl(273, 68%, 57%)
HSVhsv(273, 68%, 86%)
CMYKcmyk(30.9%, 67.7%, 0%, 13.7%)
CIE-LABlab(47.43, 59.75, -62.73)
CIE-LCHlch(47.43, 86.64, 313.61°)
OKLaboklab(57.31% 0.1266 -0.1781)
OKLCHoklch(57.31% 0.218 305.4)
XYZxyz(28.1175, 16.3494, 69.3707)
Luminance0.1635 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9847DC #8BDC47
analogous
#4D47DC #9847DC #DC47D6
triadic
#9847DC #DC9847 #47DC98
tetradic
#9847DC #DC4D47 #8BDC47 #47D6DC
square
#9847DC #DC4D47 #8BDC47 #47D6DC
split-complementary
#9847DC #D6DC47 #47DC4D
monochromatic
#591B8E #7A25C1 #9847DC #B57AE6 #D2AEF0

Accessibility & contrast

On white

4.92
#9847DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.27
#9847DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9847DC
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9847DC#FFFFFF#000000##FFFFFF
##9847DC1.004.924.274.92
#FFFFFF4.921.0021.001.00
#0000004.2721.001.0021.00
##FFFFFF4.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EE0
Deuteranopia (green-blind)
#1371D9
Tritanopia (blue-blind)
#8C688C
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #9847dc;
/* rgb */ color: rgb(152, 71, 220);
/* oklch */ color: oklch(57.3% 0.218 305.4);
Tailwind
colors: {
  custom: {
    50: '#bb80e8',
    500: '#9847dc',
    950: '#000000',
  },
}
SCSS
$custom: #9847dc;
$custom-light: #bb80e8;
$custom-dark: #000000;
JSON
{
  "hex": "#9847dc",
  "rgb": {
    "r": 152,
    "g": 71,
    "b": 220
  },
  "hsl": {
    "h": 272.617,
    "s": 68.037,
    "l": 57.059
  },
  "oklch": {
    "l": 0.57311,
    "c": 0.21847,
    "h": 305.4
  },
  "luminance": 0.16349
}

Semantic roles & 50–950 ramp

primary
#9847DC
secondary
#BDDEA1
accent
#EB3D8C
background
#FCF8FE
surface
#F8EFFD
border
#D1CAD5
text
#120B16
muted
#817C84

Preview Lab

Preview with #9847DC

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

Preview Lab → · Contrast checker → · Palette generator →

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