#9856CF#9856CF

#9856CF is a mid, vivid violet. Relative luminance 0.178; OKLCH L 58.4% C 0.184 H 306.7°. Best body text is #FFFFFF at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#9856CF
RGBrgb(152, 86, 207)
HSLhsl(273, 56%, 57%)
HSVhsv(273, 58%, 81%)
CMYKcmyk(26.6%, 58.5%, 0%, 18.8%)
CIE-LABlab(49.30, 49.40, -52.30)
CIE-LCHlch(49.30, 71.94, 313.36°)
OKLaboklab(58.4% 0.1101 -0.1475)
OKLCHoklch(58.4% 0.184 306.7)
XYZxyz(27.5368, 17.8363, 61.0115)
Luminance0.1784 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9856CF #8DCF56
analogous
#5B56CF #9856CF #CF56CA
triadic
#9856CF #CF9856 #56CF98
tetradic
#9856CF #CF5B56 #8DCF56 #56CACF
square
#9856CF #CF5B56 #8DCF56 #56CACF
split-complementary
#9856CF #CACF56 #56CF5B
monochromatic
#5A2685 #7A33B5 #9856CF #B586DD #D2B5EA

Accessibility & contrast

On white

4.60
#9856CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.57
#9856CF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #9856CF
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9856CF#FFFFFF#000000##FFFFFF
##9856CF1.004.604.574.60
#FFFFFF4.601.0021.001.00
#0000004.5721.001.0021.00
##FFFFFF4.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2473D3
Deuteranopia (green-blind)
#4176CC
Tritanopia (blue-blind)
#8F6D8A
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #9856cf;
/* rgb */ color: rgb(152, 86, 207);
/* oklch */ color: oklch(58.4% 0.184 306.7);
Tailwind
colors: {
  custom: {
    50: '#ba88de',
    500: '#9856cf',
    950: '#000000',
  },
}
SCSS
$custom: #9856cf;
$custom-light: #ba88de;
$custom-dark: #000000;
JSON
{
  "hex": "#9856cf",
  "rgb": {
    "r": 152,
    "g": 86,
    "b": 207
  },
  "hsl": {
    "h": 272.727,
    "s": 55.76,
    "l": 57.451
  },
  "oklch": {
    "l": 0.58396,
    "c": 0.18405,
    "h": 306.7
  },
  "luminance": 0.17836
}

Semantic roles & 50–950 ramp

primary
#9856CF
secondary
#BED9A8
accent
#DF498D
background
#FBF8FD
surface
#F7F0FB
border
#D0CBD4
text
#120C15
muted
#817D83

Preview Lab

Preview with #9856CF

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

Preview Lab → · Contrast checker → · Palette generator →

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