#9847D5#9847D5

#9847D5 is a mid, highly saturated violet. Relative luminance 0.160; OKLCH L 56.8% C 0.211 H 307.1°. Best body text is #FFFFFF at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#9847D5
RGBrgb(152, 71, 213)
HSLhsl(274, 63%, 56%)
HSVhsv(274, 67%, 84%)
CMYKcmyk(28.6%, 66.7%, 0%, 16.5%)
CIE-LABlab(46.96, 58.17, -59.50)
CIE-LCHlch(46.96, 83.21, 314.35°)
OKLaboklab(56.82% 0.1273 -0.1686)
OKLCHoklch(56.82% 0.211 307.1)
XYZxyz(27.2098, 15.9863, 64.5901)
Luminance0.1599 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9847D5 #84D547
analogous
#5147D5 #9847D5 #D547CB
triadic
#9847D5 #D59847 #47D598
tetradic
#9847D5 #D55147 #84D547 #47CBD5
square
#9847D5 #D55147 #84D547 #47CBD5
split-complementary
#9847D5 #CBD547 #47D551
monochromatic
#581E84 #7929B5 #9847D5 #B479E0 #D0ABEC

Accessibility & contrast

On white

5.00
#9847D5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.20
#9847D5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9847D5
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9847D5#FFFFFF#000000##FFFFFF
##9847D51.005.004.205.00
#FFFFFF5.001.0021.001.00
#0000004.2021.001.0021.00
##FFFFFF5.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DD9
Deuteranopia (green-blind)
#2470D2
Tritanopia (blue-blind)
#8E6688
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #9847d5;
/* rgb */ color: rgb(152, 71, 213);
/* oklch */ color: oklch(56.8% 0.211 307.1);
Tailwind
colors: {
  custom: {
    50: '#bb80e3',
    500: '#9847d5',
    950: '#000000',
  },
}
SCSS
$custom: #9847d5;
$custom-light: #bb80e3;
$custom-dark: #000000;
JSON
{
  "hex": "#9847d5",
  "rgb": {
    "r": 152,
    "g": 71,
    "b": 213
  },
  "hsl": {
    "h": 274.225,
    "s": 62.832,
    "l": 55.686
  },
  "oklch": {
    "l": 0.56823,
    "c": 0.21126,
    "h": 307.1
  },
  "luminance": 0.15986
}

Semantic roles & 50–950 ramp

primary
#9847D5
secondary
#B8D99E
accent
#E64288
background
#FBF8FE
surface
#F7EFFC
border
#D0CAD5
text
#120B15
muted
#817C84

Preview Lab

Preview with #9847D5

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

Preview Lab → · Contrast checker → · Palette generator →

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