#9856CE#9856CE

#9856CE is a mid, vivid violet. Relative luminance 0.178; OKLCH L 58.3% C 0.183 H 307.0°. Best body text is #FFFFFF at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#9856CE
RGBrgb(152, 86, 206)
HSLhsl(273, 55%, 57%)
HSVhsv(273, 58%, 81%)
CMYKcmyk(26.2%, 58.3%, 0%, 19.2%)
CIE-LABlab(49.24, 49.16, -51.83)
CIE-LCHlch(49.24, 71.44, 313.49°)
OKLaboklab(58.33% 0.1101 -0.1461)
OKLCHoklch(58.33% 0.183 307)
XYZxyz(27.4150, 17.7875, 60.3696)
Luminance0.1779 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9856CE #8CCE56
analogous
#5C56CE #9856CE #CE56C8
triadic
#9856CE #CE9856 #56CE98
tetradic
#9856CE #CE5C56 #8CCE56 #56C8CE
square
#9856CE #CE5C56 #8CCE56 #56C8CE
split-complementary
#9856CE #C8CE56 #56CE5C
monochromatic
#592683 #7A34B3 #9856CE #B585DC #D2B5EA

Accessibility & contrast

On white

4.61
#9856CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.56
#9856CE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #9856CE
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9856CE#FFFFFF#000000##FFFFFF
##9856CE1.004.614.564.61
#FFFFFF4.611.0021.001.00
#0000004.5621.001.0021.00
##FFFFFF4.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2673D2
Deuteranopia (green-blind)
#4276CB
Tritanopia (blue-blind)
#8F6D8A
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #9856ce;
/* rgb */ color: rgb(152, 86, 206);
/* oklch */ color: oklch(58.3% 0.183 307.0);
Tailwind
colors: {
  custom: {
    50: '#ba88dd',
    500: '#9856ce',
    950: '#000000',
  },
}
SCSS
$custom: #9856ce;
$custom-light: #ba88dd;
$custom-dark: #000000;
JSON
{
  "hex": "#9856ce",
  "rgb": {
    "r": 152,
    "g": 86,
    "b": 206
  },
  "hsl": {
    "h": 273,
    "s": 55.046,
    "l": 57.255
  },
  "oklch": {
    "l": 0.58333,
    "c": 0.18293,
    "h": 307
  },
  "luminance": 0.17787
}

Semantic roles & 50–950 ramp

primary
#9856CE
secondary
#BDD8A8
accent
#DE498C
background
#FBF8FD
surface
#F7F0FB
border
#D0CBD4
text
#120C15
muted
#817D83

Preview Lab

Preview with #9856CE

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

Preview Lab → · Contrast checker → · Palette generator →

#9856CE Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva