#9851DC#9851DC

#9851DC is a mid, highly saturated violet. Relative luminance 0.177; OKLCH L 58.6% C 0.205 H 304.2°. Best body text is #FFFFFF at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#9851DC
RGBrgb(152, 81, 220)
HSLhsl(271, 67%, 59%)
HSVhsv(271, 63%, 86%)
CMYKcmyk(30.9%, 63.2%, 0%, 13.7%)
CIE-LABlab(49.16, 54.98, -59.93)
CIE-LCHlch(49.16, 81.33, 312.53°)
OKLaboklab(58.56% 0.1156 -0.1699)
OKLCHoklch(58.56% 0.206 304.2)
XYZxyz(28.8067, 17.7277, 69.6005)
Luminance0.1773 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9851DC #95DC51
analogous
#5351DC #9851DC #DC51DB
triadic
#9851DC #DC9851 #51DC98
tetradic
#9851DC #DC5351 #95DC51 #51DBDC
square
#9851DC #DC5351 #95DC51 #51DBDC
split-complementary
#9851DC #DBDC51 #51DC53
monochromatic
#5B1E95 #7A28C8 #9851DC #B684E6 #D4B7F0

Accessibility & contrast

On white

4.62
#9851DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.55
#9851DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #9851DC
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9851DC#FFFFFF#000000##FFFFFF
##9851DC1.004.624.554.62
#FFFFFF4.621.0021.001.00
#0000004.5521.001.0021.00
##FFFFFF4.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073E0
Deuteranopia (green-blind)
#2A75D9
Tritanopia (blue-blind)
#8B6F8F
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #9851dc;
/* rgb */ color: rgb(152, 81, 220);
/* oklch */ color: oklch(58.6% 0.205 304.2);
Tailwind
colors: {
  custom: {
    50: '#bb86e8',
    500: '#9851dc',
    950: '#000000',
  },
}
SCSS
$custom: #9851dc;
$custom-light: #bb86e8;
$custom-dark: #000000;
JSON
{
  "hex": "#9851dc",
  "rgb": {
    "r": 152,
    "g": 81,
    "b": 220
  },
  "hsl": {
    "h": 270.647,
    "s": 66.507,
    "l": 59.02
  },
  "oklch": {
    "l": 0.58559,
    "c": 0.2055,
    "h": 304.2
  },
  "luminance": 0.17728
}

Semantic roles & 50–950 ramp

primary
#9851DC
secondary
#C4E0A9
accent
#E93E92
background
#FBF8FE
surface
#F7F0FD
border
#D0CBD5
text
#120B16
muted
#817C84

Preview Lab

Preview with #9851DC

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

Preview Lab → · Contrast checker → · Palette generator →

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