#9856D8#9856D8

#9856D8 is a mid, vivid violet. Relative luminance 0.183; OKLCH L 59.0% C 0.194 H 304.5°. Best body text is #000000 at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#9856D8
RGBrgb(152, 86, 216)
HSLhsl(270, 63%, 59%)
HSVhsv(270, 60%, 85%)
CMYKcmyk(29.6%, 60.2%, 0%, 15.3%)
CIE-LABlab(49.84, 51.51, -56.56)
CIE-LCHlch(49.84, 76.50, 312.32°)
OKLaboklab(58.97% 0.11 -0.16)
OKLCHoklch(58.97% 0.194 304.5)
XYZxyz(28.6686, 18.2890, 66.9722)
Luminance0.1829 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9856D8 #96D856
analogous
#5756D8 #9856D8 #D856D7
triadic
#9856D8 #D89856 #56D898
tetradic
#9856D8 #D85756 #96D856 #56D7D8
square
#9856D8 #D85756 #96D856 #56D7D8
split-complementary
#9856D8 #D7D856 #56D857
monochromatic
#5B2292 #7A2DC4 #9856D8 #B688E3 #D5B9EF

Accessibility & contrast

On white

4.51
#9856D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.66
#9856D8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9856D8
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9856D8#FFFFFF#000000##000000
##9856D81.004.514.664.66
#FFFFFF4.511.0021.0021.00
#0000004.6621.001.001.00
##0000004.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#1075DC
Deuteranopia (green-blind)
#3877D5
Tritanopia (blue-blind)
#8D708F
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #9856d8;
/* rgb */ color: rgb(152, 86, 216);
/* oklch */ color: oklch(59.0% 0.194 304.5);
Tailwind
colors: {
  custom: {
    50: '#ba89e5',
    500: '#9856d8',
    950: '#000000',
  },
}
SCSS
$custom: #9856d8;
$custom-light: #ba89e5;
$custom-dark: #000000;
JSON
{
  "hex": "#9856d8",
  "rgb": {
    "r": 152,
    "g": 86,
    "b": 216
  },
  "hsl": {
    "h": 270.462,
    "s": 62.5,
    "l": 59.216
  },
  "oklch": {
    "l": 0.58971,
    "c": 0.19415,
    "h": 304.5
  },
  "luminance": 0.18289
}

Semantic roles & 50–950 ramp

primary
#9856D8
secondary
#C5DEAB
accent
#E64293
background
#FBF8FE
surface
#F7F0FC
border
#D0CBD5
text
#120C16
muted
#817D84

Preview Lab

Preview with #9856D8

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

Preview Lab → · Contrast checker → · Palette generator →

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