#9856DC#9856DC

#9856DC is a mid, vivid violet. Relative luminance 0.185; OKLCH L 59.2% C 0.199 H 303.6°. Best body text is #000000 at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#9856DC
RGBrgb(152, 86, 220)
HSLhsl(270, 66%, 60%)
HSVhsv(270, 61%, 86%)
CMYKcmyk(30.9%, 60.9%, 0%, 13.7%)
CIE-LABlab(50.09, 52.46, -58.43)
CIE-LCHlch(50.09, 78.52, 311.91°)
OKLaboklab(59.23% 0.1098 -0.1655)
OKLCHoklch(59.23% 0.199 303.6)
XYZxyz(29.1920, 18.4983, 69.7289)
Luminance0.1850 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9856DC #9ADC56
analogous
#5657DC #9856DC #DB56DC
triadic
#9856DC #DC9856 #56DC98
tetradic
#9856DC #DC5657 #9ADC56 #56DCDB
square
#9856DC #DC5657 #9ADC56 #56DCDB
split-complementary
#9856DC #DCDB56 #57DC56
monochromatic
#5B2098 #792ACB #9856DC #B789E6 #D6BBF1

Accessibility & contrast

On white

4.47
#9856DC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.70
#9856DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9856DC
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9856DC#FFFFFF#000000##000000
##9856DC1.004.474.704.70
#FFFFFF4.471.0021.0021.00
#0000004.7021.001.001.00
##0000004.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#0076E0
Deuteranopia (green-blind)
#3277D9
Tritanopia (blue-blind)
#8B7291
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #9856dc;
/* rgb */ color: rgb(152, 86, 220);
/* oklch */ color: oklch(59.2% 0.199 303.6);
Tailwind
colors: {
  custom: {
    50: '#ba89e8',
    500: '#9856dc',
    950: '#000000',
  },
}
SCSS
$custom: #9856dc;
$custom-light: #ba89e8;
$custom-dark: #000000;
JSON
{
  "hex": "#9856dc",
  "rgb": {
    "r": 152,
    "g": 86,
    "b": 220
  },
  "hsl": {
    "h": 269.552,
    "s": 65.686,
    "l": 60
  },
  "oklch": {
    "l": 0.59233,
    "c": 0.19863,
    "h": 303.6
  },
  "luminance": 0.18498
}

Semantic roles & 50–950 ramp

primary
#9856DC
secondary
#C7E1AD
accent
#E93F95
background
#FBF8FE
surface
#F7F0FD
border
#D0CBD5
text
#120C16
muted
#817D84

Preview Lab

Preview with #9856DC

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

Preview Lab → · Contrast checker → · Palette generator →

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