#9851CC#9851CC

#9851CC is a mid, vivid violet. Relative luminance 0.169; OKLCH L 57.5% C 0.188 H 308.2°. Best body text is #FFFFFF at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#9851CC
RGBrgb(152, 81, 204)
HSLhsl(275, 55%, 56%)
HSVhsv(275, 60%, 80%)
CMYKcmyk(25.5%, 60.3%, 0%, 20%)
CIE-LABlab(48.16, 51.27, -52.40)
CIE-LCHlch(48.16, 73.32, 314.37°)
OKLaboklab(57.51% 0.1163 -0.1478)
OKLCHoklch(57.51% 0.188 308.2)
XYZxyz(26.7882, 16.9203, 58.9698)
Luminance0.1692 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9851CC #85CC51
analogous
#5A51CC #9851CC #CC51C3
triadic
#9851CC #CC9851 #51CC98
tetradic
#9851CC #CC5A51 #85CC51 #51C3CC
square
#9851CC #CC5A51 #85CC51 #51C3CC
split-complementary
#9851CC #C3CC51 #51CC5A
monochromatic
#58257E #7933AD #9851CC #B480DA #D0B0E8

Accessibility & contrast

On white

4.79
#9851CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.38
#9851CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9851CC
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9851CC#FFFFFF#000000##FFFFFF
##9851CC1.004.794.384.79
#FFFFFF4.791.0021.001.00
#0000004.3821.001.0021.00
##FFFFFF4.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B70D0
Deuteranopia (green-blind)
#3E73C9
Tritanopia (blue-blind)
#906987
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #9851cc;
/* rgb */ color: rgb(152, 81, 204);
/* oklch */ color: oklch(57.5% 0.188 308.2);
Tailwind
colors: {
  custom: {
    50: '#ba85dc',
    500: '#9851cc',
    950: '#000000',
  },
}
SCSS
$custom: #9851cc;
$custom-light: #ba85dc;
$custom-dark: #000000;
JSON
{
  "hex": "#9851cc",
  "rgb": {
    "r": 152,
    "g": 81,
    "b": 204
  },
  "hsl": {
    "h": 274.634,
    "s": 54.667,
    "l": 55.882
  },
  "oklch": {
    "l": 0.57509,
    "c": 0.18805,
    "h": 308.2
  },
  "luminance": 0.1692
}

Semantic roles & 50–950 ramp

primary
#9851CC
secondary
#B8D6A3
accent
#DE4A88
background
#FBF8FD
surface
#F7EFFB
border
#D0CAD4
text
#120B15
muted
#817C83

Preview Lab

Preview with #9851CC

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

Preview Lab → · Contrast checker → · Palette generator →

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