#9847D7#9847D7

#9847D7 is a mid, highly saturated violet. Relative luminance 0.161; OKLCH L 57.0% C 0.213 H 306.6°. Best body text is #FFFFFF at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#9847D7
RGBrgb(152, 71, 215)
HSLhsl(274, 64%, 56%)
HSVhsv(274, 67%, 84%)
CMYKcmyk(29.3%, 67%, 0%, 15.7%)
CIE-LABlab(47.09, 58.62, -60.43)
CIE-LCHlch(47.09, 84.19, 314.13°)
OKLaboklab(56.96% 0.1271 -0.1713)
OKLCHoklch(56.96% 0.213 306.6)
XYZxyz(27.4652, 16.0885, 65.9353)
Luminance0.1609 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9847D7 #86D747
analogous
#5047D7 #9847D7 #D747CE
triadic
#9847D7 #D79847 #47D798
tetradic
#9847D7 #D75047 #86D747 #47CED7
square
#9847D7 #D75047 #86D747 #47CED7
split-complementary
#9847D7 #CED747 #47D750
monochromatic
#581D86 #7928B9 #9847D7 #B479E2 #D0ACED

Accessibility & contrast

On white

4.98
#9847D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.22
#9847D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9847D7
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9847D7#FFFFFF#000000##FFFFFF
##9847D71.004.984.224.98
#FFFFFF4.981.0021.001.00
#0000004.2221.001.0021.00
##FFFFFF4.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DDB
Deuteranopia (green-blind)
#2070D4
Tritanopia (blue-blind)
#8D6789
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #9847d7;
/* rgb */ color: rgb(152, 71, 215);
/* oklch */ color: oklch(57.0% 0.213 306.6);
Tailwind
colors: {
  custom: {
    50: '#bb80e4',
    500: '#9847d7',
    950: '#000000',
  },
}
SCSS
$custom: #9847d7;
$custom-light: #bb80e4;
$custom-dark: #000000;
JSON
{
  "hex": "#9847d7",
  "rgb": {
    "r": 152,
    "g": 71,
    "b": 215
  },
  "hsl": {
    "h": 273.75,
    "s": 64.286,
    "l": 56.078
  },
  "oklch": {
    "l": 0.56961,
    "c": 0.21333,
    "h": 306.6
  },
  "luminance": 0.16088
}

Semantic roles & 50–950 ramp

primary
#9847D7
secondary
#B9DB9F
accent
#E74189
background
#FBF8FE
surface
#F7EFFC
border
#D0CAD5
text
#120B16
muted
#817C84

Preview Lab

Preview with #9847D7

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

Preview Lab → · Contrast checker → · Palette generator →

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