#9847DF#9847DF

#9847DF is a mid, highly saturated violet. Relative luminance 0.165; OKLCH L 57.5% C 0.222 H 304.7°. Best body text is #FFFFFF at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#9847DF
RGBrgb(152, 71, 223)
HSLhsl(272, 70%, 58%)
HSVhsv(272, 68%, 87%)
CMYKcmyk(31.8%, 68.2%, 0%, 12.5%)
CIE-LABlab(47.64, 60.44, -64.11)
CIE-LCHlch(47.64, 88.10, 313.31°)
OKLaboklab(57.52% 0.1262 -0.1821)
OKLCHoklch(57.52% 0.222 304.7)
XYZxyz(28.5184, 16.5097, 71.4820)
Luminance0.1651 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9847DF #8EDF47
analogous
#4C47DF #9847DF #DF47DA
triadic
#9847DF #DF9847 #47DF98
tetradic
#9847DF #DF4C47 #8EDF47 #47DADF
square
#9847DF #DF4C47 #8EDF47 #47DADF
split-complementary
#9847DF #DADF47 #47DF4C
monochromatic
#5A1992 #7A22C6 #9847DF #B57BE8 #D2AFF1

Accessibility & contrast

On white

4.88
#9847DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.30
#9847DF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9847DF
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9847DF#FFFFFF#000000##FFFFFF
##9847DF1.004.884.304.88
#FFFFFF4.881.0021.001.00
#0000004.3021.001.0021.00
##FFFFFF4.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FE4
Deuteranopia (green-blind)
#0471DC
Tritanopia (blue-blind)
#8B6A8E
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #9847df;
/* rgb */ color: rgb(152, 71, 223);
/* oklch */ color: oklch(57.5% 0.222 304.7);
Tailwind
colors: {
  custom: {
    50: '#bb80ea',
    500: '#9847df',
    950: '#000000',
  },
}
SCSS
$custom: #9847df;
$custom-light: #bb80ea;
$custom-dark: #000000;
JSON
{
  "hex": "#9847df",
  "rgb": {
    "r": 152,
    "g": 71,
    "b": 223
  },
  "hsl": {
    "h": 271.974,
    "s": 70.37,
    "l": 57.647
  },
  "oklch": {
    "l": 0.57524,
    "c": 0.22155,
    "h": 304.7
  },
  "luminance": 0.1651
}

Semantic roles & 50–950 ramp

primary
#9847DF
secondary
#BFDFA2
accent
#ED3B8E
background
#FCF8FE
surface
#F8EFFD
border
#D1CAD5
text
#120B16
muted
#817C84

Preview Lab

Preview with #9847DF

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

Preview Lab → · Contrast checker → · Palette generator →

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