#9847D9#9847D9

#9847D9 is a mid, highly saturated violet. Relative luminance 0.162; OKLCH L 57.1% C 0.215 H 306.1°. Best body text is #FFFFFF at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#9847D9
RGBrgb(152, 71, 217)
HSLhsl(273, 66%, 56%)
HSVhsv(273, 67%, 85%)
CMYKcmyk(30%, 67.3%, 0%, 14.9%)
CIE-LABlab(47.23, 59.07, -61.35)
CIE-LCHlch(47.23, 85.17, 313.91°)
OKLaboklab(57.1% 0.1269 -0.174)
OKLCHoklch(57.1% 0.215 306.1)
XYZxyz(27.7238, 16.1919, 67.2970)
Luminance0.1619 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9847D9 #88D947
analogous
#4F47D9 #9847D9 #D947D1
triadic
#9847D9 #D99847 #47D998
tetradic
#9847D9 #D94F47 #88D947 #47D1D9
square
#9847D9 #D94F47 #88D947 #47D1D9
split-complementary
#9847D9 #D1D947 #47D94F
monochromatic
#591C89 #7A27BC #9847D9 #B47AE3 #D1ACEE

Accessibility & contrast

On white

4.95
#9847D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.24
#9847D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9847D9
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9847D9#FFFFFF#000000##FFFFFF
##9847D91.004.954.244.95
#FFFFFF4.951.0021.001.00
#0000004.2421.001.0021.00
##FFFFFF4.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DDD
Deuteranopia (green-blind)
#1C70D6
Tritanopia (blue-blind)
#8D678A
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #9847d9;
/* rgb */ color: rgb(152, 71, 217);
/* oklch */ color: oklch(57.1% 0.215 306.1);
Tailwind
colors: {
  custom: {
    50: '#bb80e6',
    500: '#9847d9',
    950: '#000000',
  },
}
SCSS
$custom: #9847d9;
$custom-light: #bb80e6;
$custom-dark: #000000;
JSON
{
  "hex": "#9847d9",
  "rgb": {
    "r": 152,
    "g": 71,
    "b": 217
  },
  "hsl": {
    "h": 273.288,
    "s": 65.766,
    "l": 56.471
  },
  "oklch": {
    "l": 0.571,
    "c": 0.21539,
    "h": 306.1
  },
  "luminance": 0.16192
}

Semantic roles & 50–950 ramp

primary
#9847D9
secondary
#BBDCA0
accent
#E93F8B
background
#FCF8FE
surface
#F8EFFC
border
#D1CAD5
text
#120B16
muted
#817C84

Preview Lab

Preview with #9847D9

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

Preview Lab → · Contrast checker → · Palette generator →

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