#9856CD#9856CD

#9856CD is a mid, vivid violet. Relative luminance 0.177; OKLCH L 58.3% C 0.182 H 307.3°. Best body text is #FFFFFF at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#9856CD
RGBrgb(152, 86, 205)
HSLhsl(273, 54%, 57%)
HSVhsv(273, 58%, 80%)
CMYKcmyk(25.9%, 58%, 0%, 19.6%)
CIE-LABlab(49.18, 48.93, -51.35)
CIE-LCHlch(49.18, 70.93, 313.62°)
OKLaboklab(58.27% 0.1101 -0.1447)
OKLCHoklch(58.27% 0.182 307.3)
XYZxyz(27.2939, 17.7391, 59.7319)
Luminance0.1774 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9856CD #8BCD56
analogous
#5C56CD #9856CD #CD56C7
triadic
#9856CD #CD9856 #56CD98
tetradic
#9856CD #CD5C56 #8BCD56 #56C7CD
square
#9856CD #CD5C56 #8BCD56 #56C7CD
split-complementary
#9856CD #C7CD56 #56CD5C
monochromatic
#592682 #7A34B1 #9856CD #B585DB #D2B4E9

Accessibility & contrast

On white

4.62
#9856CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.55
#9856CD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #9856CD
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9856CD#FFFFFF#000000##FFFFFF
##9856CD1.004.624.554.62
#FFFFFF4.621.0021.001.00
#0000004.5521.001.0021.00
##FFFFFF4.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2772D1
Deuteranopia (green-blind)
#4375CA
Tritanopia (blue-blind)
#906D89
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #9856cd;
/* rgb */ color: rgb(152, 86, 205);
/* oklch */ color: oklch(58.3% 0.182 307.3);
Tailwind
colors: {
  custom: {
    50: '#ba88dd',
    500: '#9856cd',
    950: '#000000',
  },
}
SCSS
$custom: #9856cd;
$custom-light: #ba88dd;
$custom-dark: #000000;
JSON
{
  "hex": "#9856cd",
  "rgb": {
    "r": 152,
    "g": 86,
    "b": 205
  },
  "hsl": {
    "h": 273.277,
    "s": 54.338,
    "l": 57.059
  },
  "oklch": {
    "l": 0.58271,
    "c": 0.18181,
    "h": 307.3
  },
  "luminance": 0.17739
}

Semantic roles & 50–950 ramp

primary
#9856CD
secondary
#BDD8A7
accent
#DE4A8C
background
#FBF8FD
surface
#F7F0FB
border
#D0CBD4
text
#120C15
muted
#817D83

Preview Lab

Preview with #9856CD

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

Preview Lab → · Contrast checker → · Palette generator →

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