#9851DF#9851DF

#9851DF is a mid, highly saturated violet. Relative luminance 0.179; OKLCH L 58.8% C 0.209 H 303.6°. Best body text is #FFFFFF at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#9851DF
RGBrgb(152, 81, 223)
HSLhsl(270, 69%, 60%)
HSVhsv(270, 64%, 87%)
CMYKcmyk(31.8%, 63.7%, 0%, 12.5%)
CIE-LABlab(49.36, 55.68, -61.32)
CIE-LCHlch(49.36, 82.83, 312.24°)
OKLaboklab(58.76% 0.1154 -0.174)
OKLCHoklch(58.76% 0.209 303.6)
XYZxyz(29.2076, 17.8880, 71.7117)
Luminance0.1789 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9851DF #98DF51
analogous
#5151DF #9851DF #DF51DF
triadic
#9851DF #DF9851 #51DF98
tetradic
#9851DF #DF5151 #98DF51 #51DFDF
square
#9851DF #DF5151 #98DF51 #51DFDF
split-complementary
#9851DF #DFDF51 #51DF51
monochromatic
#5B1C99 #7926CD #9851DF #B785E9 #D5B8F2

Accessibility & contrast

On white

4.59
#9851DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.58
#9851DF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #9851DF
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9851DF#FFFFFF#000000##FFFFFF
##9851DF1.004.594.584.59
#FFFFFF4.591.0021.001.00
#0000004.5821.001.0021.00
##FFFFFF4.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074E3
Deuteranopia (green-blind)
#2475DC
Tritanopia (blue-blind)
#8A7091
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #9851df;
/* rgb */ color: rgb(152, 81, 223);
/* oklch */ color: oklch(58.8% 0.209 303.6);
Tailwind
colors: {
  custom: {
    50: '#bb86ea',
    500: '#9851df',
    950: '#000000',
  },
}
SCSS
$custom: #9851df;
$custom-light: #bb86ea;
$custom-dark: #000000;
JSON
{
  "hex": "#9851df",
  "rgb": {
    "r": 152,
    "g": 81,
    "b": 223
  },
  "hsl": {
    "h": 270,
    "s": 68.932,
    "l": 59.608
  },
  "oklch": {
    "l": 0.58762,
    "c": 0.20877,
    "h": 303.6
  },
  "luminance": 0.17888
}

Semantic roles & 50–950 ramp

primary
#9851DF
secondary
#C6E1AA
accent
#EC3C94
background
#FBF8FE
surface
#F7F0FD
border
#D0CBD5
text
#120B16
muted
#817C84

Preview Lab

Preview with #9851DF

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

Preview Lab → · Contrast checker → · Palette generator →

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