#9857CC#9857CC

#9857CC is a mid, vivid violet. Relative luminance 0.179; OKLCH L 58.4% C 0.179 H 307.4°. Best body text is #FFFFFF at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#9857CC
RGBrgb(152, 87, 204)
HSLhsl(273, 53%, 57%)
HSVhsv(273, 57%, 80%)
CMYKcmyk(25.5%, 57.4%, 0%, 20%)
CIE-LABlab(49.32, 48.18, -50.55)
CIE-LCHlch(49.32, 69.83, 313.62°)
OKLaboklab(58.35% 0.1088 -0.1424)
OKLCHoklch(58.35% 0.179 307.4)
XYZxyz(27.2539, 17.8517, 59.1250)
Luminance0.1785 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9857CC #8BCC57
analogous
#5D57CC #9857CC #CC57C6
triadic
#9857CC #CC9857 #57CC98
tetradic
#9857CC #CC5D57 #8BCC57 #57C6CC
square
#9857CC #CC5D57 #8BCC57 #57C6CC
split-complementary
#9857CC #C6CC57 #57CC5D
monochromatic
#592781 #7A36B0 #9857CC #B586DA #D2B5E9

Accessibility & contrast

On white

4.59
#9857CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.57
#9857CC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #9857CC
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9857CC#FFFFFF#000000##FFFFFF
##9857CC1.004.594.574.59
#FFFFFF4.591.0021.001.00
#0000004.5721.001.0021.00
##FFFFFF4.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B73D0
Deuteranopia (green-blind)
#4576C9
Tritanopia (blue-blind)
#906D89
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #9857cc;
/* rgb */ color: rgb(152, 87, 204);
/* oklch */ color: oklch(58.4% 0.179 307.4);
Tailwind
colors: {
  custom: {
    50: '#b989dc',
    500: '#9857cc',
    950: '#000000',
  },
}
SCSS
$custom: #9857cc;
$custom-light: #b989dc;
$custom-dark: #000000;
JSON
{
  "hex": "#9857cc",
  "rgb": {
    "r": 152,
    "g": 87,
    "b": 204
  },
  "hsl": {
    "h": 273.333,
    "s": 53.425,
    "l": 57.059
  },
  "oklch": {
    "l": 0.58353,
    "c": 0.17919,
    "h": 307.4
  },
  "luminance": 0.17851
}

Semantic roles & 50–950 ramp

primary
#9857CC
secondary
#BDD7A8
accent
#DD4B8C
background
#FBF8FD
surface
#F6F0FB
border
#D0CBD4
text
#120C15
muted
#817D83

Preview Lab

Preview with #9857CC

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

Preview Lab → · Contrast checker → · Palette generator →

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