#9857DC#9857DC

#9857DC is a mid, vivid violet. Relative luminance 0.187; OKLCH L 59.4% C 0.197 H 303.4°. Best body text is #000000 at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#9857DC
RGBrgb(152, 87, 220)
HSLhsl(269, 66%, 60%)
HSVhsv(269, 60%, 86%)
CMYKcmyk(30.9%, 60.5%, 0%, 13.7%)
CIE-LABlab(50.29, 51.94, -58.13)
CIE-LCHlch(50.29, 77.95, 311.78°)
OKLaboklab(59.37% 0.1087 -0.1646)
OKLCHoklch(59.37% 0.197 303.4)
XYZxyz(29.2724, 18.6591, 69.7557)
Luminance0.1866 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9857DC #9BDC57
analogous
#5759DC #9857DC #DA57DC
triadic
#9857DC #DC9857 #57DC98
tetradic
#9857DC #DC5759 #9BDC57 #57DCDA
square
#9857DC #DC5759 #9BDC57 #57DCDA
split-complementary
#9857DC #DCDA57 #59DC57
monochromatic
#5B2099 #792ACB #9857DC #B78AE7 #D6BCF1

Accessibility & contrast

On white

4.44
#9857DC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.73
#9857DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9857DC
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9857DC#FFFFFF#000000##000000
##9857DC1.004.444.734.73
#FFFFFF4.441.0021.0021.00
#0000004.7321.001.001.00
##0000004.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#0576E0
Deuteranopia (green-blind)
#3477D9
Tritanopia (blue-blind)
#8B7291
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #9857dc;
/* rgb */ color: rgb(152, 87, 220);
/* oklch */ color: oklch(59.4% 0.197 303.4);
Tailwind
colors: {
  custom: {
    50: '#ba89e8',
    500: '#9857dc',
    950: '#000000',
  },
}
SCSS
$custom: #9857dc;
$custom-light: #ba89e8;
$custom-dark: #000000;
JSON
{
  "hex": "#9857dc",
  "rgb": {
    "r": 152,
    "g": 87,
    "b": 220
  },
  "hsl": {
    "h": 269.323,
    "s": 65.517,
    "l": 60.196
  },
  "oklch": {
    "l": 0.59372,
    "c": 0.19723,
    "h": 303.4
  },
  "luminance": 0.18659
}

Semantic roles & 50–950 ramp

primary
#9857DC
secondary
#C8E1AE
accent
#CD1875
background
#FBF8FE
surface
#F7F0FD
border
#D0CBD5
text
#120C16
muted
#817D84

Preview Lab

Preview with #9857DC

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

Preview Lab → · Contrast checker → · Palette generator →

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