#9857D8#9857D8

#9857D8 is a mid, vivid violet. Relative luminance 0.184; OKLCH L 59.1% C 0.193 H 304.4°. Best body text is #000000 at 4.69:1 contrast (WCAG AA passes).

Color values

HEX#9857D8
RGBrgb(152, 87, 216)
HSLhsl(270, 62%, 59%)
HSVhsv(270, 60%, 85%)
CMYKcmyk(29.6%, 59.7%, 0%, 15.3%)
CIE-LABlab(50.04, 50.99, -56.25)
CIE-LCHlch(50.04, 75.92, 312.19°)
OKLaboklab(59.11% 0.1088 -0.1591)
OKLCHoklch(59.11% 0.193 304.4)
XYZxyz(28.7490, 18.4498, 66.9990)
Luminance0.1845 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9857D8 #97D857
analogous
#5857D8 #9857D8 #D857D7
triadic
#9857D8 #D89857 #57D898
tetradic
#9857D8 #D85857 #97D857 #57D7D8
square
#9857D8 #D85857 #97D857 #57D7D8
split-complementary
#9857D8 #D7D857 #57D858
monochromatic
#5B2293 #792EC4 #9857D8 #B689E4 #D5BAEF

Accessibility & contrast

On white

4.48
#9857D8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.69
#9857D8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9857D8
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9857D8#FFFFFF#000000##000000
##9857D81.004.484.694.69
#FFFFFF4.481.0021.0021.00
#0000004.6921.001.001.00
##0000004.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#1575DC
Deuteranopia (green-blind)
#3977D5
Tritanopia (blue-blind)
#8C718F
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #9857d8;
/* rgb */ color: rgb(152, 87, 216);
/* oklch */ color: oklch(59.1% 0.193 304.4);
Tailwind
colors: {
  custom: {
    50: '#ba89e5',
    500: '#9857d8',
    950: '#000000',
  },
}
SCSS
$custom: #9857d8;
$custom-light: #ba89e5;
$custom-dark: #000000;
JSON
{
  "hex": "#9857d8",
  "rgb": {
    "r": 152,
    "g": 87,
    "b": 216
  },
  "hsl": {
    "h": 270.233,
    "s": 62.319,
    "l": 59.412
  },
  "oklch": {
    "l": 0.59111,
    "c": 0.19273,
    "h": 304.4
  },
  "luminance": 0.1845
}

Semantic roles & 50–950 ramp

primary
#9857D8
secondary
#C5DFAC
accent
#E54293
background
#FBF8FE
surface
#F7F0FC
border
#D0CBD5
text
#120C16
muted
#817D84

Preview Lab

Preview with #9857D8

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

Preview Lab → · Contrast checker → · Palette generator →

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