#9856CB#9856CB

#9856CB is a mid, vivid violet. Relative luminance 0.176; OKLCH L 58.1% C 0.180 H 307.8°. Best body text is #FFFFFF at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#9856CB
RGBrgb(152, 86, 203)
HSLhsl(274, 53%, 57%)
HSVhsv(274, 58%, 80%)
CMYKcmyk(25.1%, 57.6%, 0%, 20.4%)
CIE-LABlab(49.06, 48.47, -50.39)
CIE-LCHlch(49.06, 69.92, 313.89°)
OKLaboklab(58.15% 0.11 -0.1419)
OKLCHoklch(58.15% 0.18 307.8)
XYZxyz(27.0540, 17.6431, 58.4686)
Luminance0.1764 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9856CB #89CB56
analogous
#5E56CB #9856CB #CB56C4
triadic
#9856CB #CB9856 #56CB98
tetradic
#9856CB #CB5E56 #89CB56 #56C4CB
square
#9856CB #CB5E56 #89CB56 #56C4CB
split-complementary
#9856CB #C4CB56 #56CB5E
monochromatic
#59277F #7A36AE #9856CB #B585D9 #D1B4E8

Accessibility & contrast

On white

4.64
#9856CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.53
#9856CB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #9856CB
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9856CB#FFFFFF#000000##FFFFFF
##9856CB1.004.644.534.64
#FFFFFF4.641.0021.001.00
#0000004.5321.001.0021.00
##FFFFFF4.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A72CF
Deuteranopia (green-blind)
#4575C8
Tritanopia (blue-blind)
#906C88
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #9856cb;
/* rgb */ color: rgb(152, 86, 203);
/* oklch */ color: oklch(58.1% 0.180 307.8);
Tailwind
colors: {
  custom: {
    50: '#b988db',
    500: '#9856cb',
    950: '#000000',
  },
}
SCSS
$custom: #9856cb;
$custom-light: #b988db;
$custom-dark: #000000;
JSON
{
  "hex": "#9856cb",
  "rgb": {
    "r": 152,
    "g": 86,
    "b": 203
  },
  "hsl": {
    "h": 273.846,
    "s": 52.941,
    "l": 56.667
  },
  "oklch": {
    "l": 0.58147,
    "c": 0.17956,
    "h": 307.8
  },
  "luminance": 0.17643
}

Semantic roles & 50–950 ramp

primary
#9856CB
secondary
#BBD6A6
accent
#DC4B8B
background
#FBF8FD
surface
#F6F0FB
border
#D0CBD4
text
#120C15
muted
#817D83

Preview Lab

Preview with #9856CB

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

Preview Lab → · Contrast checker → · Palette generator →

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