#9847D2#9847D2

#9847D2 is a mid, highly saturated violet. Relative luminance 0.158; OKLCH L 56.6% C 0.208 H 307.8°. Best body text is #FFFFFF at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#9847D2
RGBrgb(152, 71, 210)
HSLhsl(275, 61%, 55%)
HSVhsv(275, 66%, 82%)
CMYKcmyk(27.6%, 66.2%, 0%, 17.6%)
CIE-LABlab(46.76, 57.50, -58.10)
CIE-LCHlch(46.76, 81.74, 314.70°)
OKLaboklab(56.62% 0.1276 -0.1645)
OKLCHoklch(56.62% 0.208 307.8)
XYZxyz(26.8326, 15.8354, 62.6033)
Luminance0.1583 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9847D2 #81D247
analogous
#5247D2 #9847D2 #D247C7
triadic
#9847D2 #D29847 #47D298
tetradic
#9847D2 #D25247 #81D247 #47C7D2
square
#9847D2 #D25247 #81D247 #47C7D2
split-complementary
#9847D2 #C7D247 #47D252
monochromatic
#571F7F #792BB1 #9847D2 #B478DE #CFA9EA

Accessibility & contrast

On white

5.04
#9847D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#9847D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9847D2
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9847D2#FFFFFF#000000##FFFFFF
##9847D21.005.044.175.04
#FFFFFF5.041.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CD6
Deuteranopia (green-blind)
#2970CF
Tritanopia (blue-blind)
#8F6587
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #9847d2;
/* rgb */ color: rgb(152, 71, 210);
/* oklch */ color: oklch(56.6% 0.208 307.8);
Tailwind
colors: {
  custom: {
    50: '#bb80e1',
    500: '#9847d2',
    950: '#000000',
  },
}
SCSS
$custom: #9847d2;
$custom-light: #bb80e1;
$custom-dark: #000000;
JSON
{
  "hex": "#9847d2",
  "rgb": {
    "r": 152,
    "g": 71,
    "b": 210
  },
  "hsl": {
    "h": 274.964,
    "s": 60.699,
    "l": 55.098
  },
  "oklch": {
    "l": 0.56617,
    "c": 0.20818,
    "h": 307.8
  },
  "luminance": 0.15835
}

Semantic roles & 50–950 ramp

primary
#9847D2
secondary
#B6D89D
accent
#E44487
background
#FBF8FD
surface
#F7EFFB
border
#D0CAD4
text
#120A15
muted
#817C83

Preview Lab

Preview with #9847D2

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

Preview Lab → · Contrast checker → · Palette generator →

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