#9847D4#9847D4

#9847D4 is a mid, highly saturated violet. Relative luminance 0.159; OKLCH L 56.8% C 0.210 H 307.3°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#9847D4
RGBrgb(152, 71, 212)
HSLhsl(274, 62%, 55%)
HSVhsv(274, 67%, 83%)
CMYKcmyk(28.3%, 66.5%, 0%, 16.9%)
CIE-LABlab(46.89, 57.94, -59.04)
CIE-LCHlch(46.89, 82.72, 314.46°)
OKLaboklab(56.75% 0.1274 -0.1672)
OKLCHoklch(56.75% 0.21 307.3)
XYZxyz(27.0833, 15.9357, 63.9237)
Luminance0.1593 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9847D4 #83D447
analogous
#5147D4 #9847D4 #D447CA
triadic
#9847D4 #D49847 #47D498
tetradic
#9847D4 #D45147 #83D447 #47CAD4
square
#9847D4 #D45147 #83D447 #47CAD4
split-complementary
#9847D4 #CAD447 #47D451
monochromatic
#581E82 #792AB4 #9847D4 #B479E0 #D0AAEB

Accessibility & contrast

On white

5.02
#9847D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.19
#9847D4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9847D4
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9847D4#FFFFFF#000000##FFFFFF
##9847D41.005.024.195.02
#FFFFFF5.021.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CD8
Deuteranopia (green-blind)
#2670D1
Tritanopia (blue-blind)
#8E6588
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #9847d4;
/* rgb */ color: rgb(152, 71, 212);
/* oklch */ color: oklch(56.8% 0.210 307.3);
Tailwind
colors: {
  custom: {
    50: '#bb80e2',
    500: '#9847d4',
    950: '#000000',
  },
}
SCSS
$custom: #9847d4;
$custom-light: #bb80e2;
$custom-dark: #000000;
JSON
{
  "hex": "#9847d4",
  "rgb": {
    "r": 152,
    "g": 71,
    "b": 212
  },
  "hsl": {
    "h": 274.468,
    "s": 62.115,
    "l": 55.49
  },
  "oklch": {
    "l": 0.56754,
    "c": 0.21024,
    "h": 307.3
  },
  "luminance": 0.15935
}

Semantic roles & 50–950 ramp

primary
#9847D4
secondary
#B7D99E
accent
#E54388
background
#FBF8FD
surface
#F7EFFB
border
#D0CAD4
text
#120B15
muted
#817C83

Preview Lab

Preview with #9847D4

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

Preview Lab → · Contrast checker → · Palette generator →

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