#9855CD#9855CD

#9855CD is a mid, vivid violet. Relative luminance 0.176; OKLCH L 58.1% C 0.183 H 307.4°. Best body text is #FFFFFF at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#9855CD
RGBrgb(152, 85, 205)
HSLhsl(274, 55%, 57%)
HSVhsv(274, 59%, 80%)
CMYKcmyk(25.9%, 58.5%, 0%, 19.6%)
CIE-LABlab(48.98, 49.45, -51.66)
CIE-LCHlch(48.98, 71.51, 313.75°)
OKLaboklab(58.13% 0.1113 -0.1456)
OKLCHoklch(58.13% 0.183 307.4)
XYZxyz(27.2146, 17.5805, 59.7055)
Luminance0.1758 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9855CD #8ACD55
analogous
#5C55CD #9855CD #CD55C6
triadic
#9855CD #CD9855 #55CD98
tetradic
#9855CD #CD5C55 #8ACD55 #55C6CD
square
#9855CD #CD5C55 #8ACD55 #55C6CD
split-complementary
#9855CD #C6CD55 #55CD5C
monochromatic
#592682 #7A34B1 #9855CD #B584DB #D1B4E9

Accessibility & contrast

On white

4.65
#9855CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.52
#9855CD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #9855CD
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9855CD#FFFFFF#000000##FFFFFF
##9855CD1.004.654.524.65
#FFFFFF4.651.0021.001.00
#0000004.5221.001.0021.00
##FFFFFF4.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2572D1
Deuteranopia (green-blind)
#4275CA
Tritanopia (blue-blind)
#906C89
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #9855cd;
/* rgb */ color: rgb(152, 85, 205);
/* oklch */ color: oklch(58.1% 0.183 307.4);
Tailwind
colors: {
  custom: {
    50: '#ba88dd',
    500: '#9855cd',
    950: '#000000',
  },
}
SCSS
$custom: #9855cd;
$custom-light: #ba88dd;
$custom-dark: #000000;
JSON
{
  "hex": "#9855cd",
  "rgb": {
    "r": 152,
    "g": 85,
    "b": 205
  },
  "hsl": {
    "h": 273.5,
    "s": 54.545,
    "l": 56.863
  },
  "oklch": {
    "l": 0.58129,
    "c": 0.18329,
    "h": 307.4
  },
  "luminance": 0.1758
}

Semantic roles & 50–950 ramp

primary
#9855CD
secondary
#BCD7A6
accent
#DE4A8B
background
#FBF8FD
surface
#F7F0FB
border
#D0CBD4
text
#120C15
muted
#817D83

Preview Lab

Preview with #9855CD

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

Preview Lab → · Contrast checker → · Palette generator →

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