#9856CC#9856CC

#9856CC is a mid, vivid violet. Relative luminance 0.177; OKLCH L 58.2% C 0.181 H 307.5°. Best body text is #FFFFFF at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#9856CC
RGBrgb(152, 86, 204)
HSLhsl(274, 54%, 57%)
HSVhsv(274, 58%, 80%)
CMYKcmyk(25.5%, 57.8%, 0%, 20%)
CIE-LABlab(49.12, 48.70, -50.87)
CIE-LCHlch(49.12, 70.42, 313.75°)
OKLaboklab(58.21% 0.1101 -0.1433)
OKLCHoklch(58.21% 0.181 307.5)
XYZxyz(27.1735, 17.6909, 59.0982)
Luminance0.1769 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9856CC #8ACC56
analogous
#5D56CC #9856CC #CC56C5
triadic
#9856CC #CC9856 #56CC98
tetradic
#9856CC #CC5D56 #8ACC56 #56C5CC
square
#9856CC #CC5D56 #8ACC56 #56C5CC
split-complementary
#9856CC #C5CC56 #56CC5D
monochromatic
#592781 #7A35B0 #9856CC #B585DA #D1B4E8

Accessibility & contrast

On white

4.63
#9856CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.54
#9856CC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #9856CC
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9856CC#FFFFFF#000000##FFFFFF
##9856CC1.004.634.544.63
#FFFFFF4.631.0021.001.00
#0000004.5421.001.0021.00
##FFFFFF4.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2972D0
Deuteranopia (green-blind)
#4475C9
Tritanopia (blue-blind)
#906C89
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #9856cc;
/* rgb */ color: rgb(152, 86, 204);
/* oklch */ color: oklch(58.2% 0.181 307.5);
Tailwind
colors: {
  custom: {
    50: '#b988dc',
    500: '#9856cc',
    950: '#000000',
  },
}
SCSS
$custom: #9856cc;
$custom-light: #b988dc;
$custom-dark: #000000;
JSON
{
  "hex": "#9856cc",
  "rgb": {
    "r": 152,
    "g": 86,
    "b": 204
  },
  "hsl": {
    "h": 273.559,
    "s": 53.636,
    "l": 56.863
  },
  "oklch": {
    "l": 0.58209,
    "c": 0.18068,
    "h": 307.5
  },
  "luminance": 0.17691
}

Semantic roles & 50–950 ramp

primary
#9856CC
secondary
#BCD7A7
accent
#DD4B8B
background
#FBF8FD
surface
#F7F0FB
border
#D0CBD4
text
#120C15
muted
#817D83

Preview Lab

Preview with #9856CC

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

Preview Lab → · Contrast checker → · Palette generator →

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