#9857E1#9857E1

#9857E1 is a mid, highly saturated violet. Relative luminance 0.189; OKLCH L 59.7% C 0.203 H 302.3°. Best body text is #000000 at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#9857E1
RGBrgb(152, 87, 225)
HSLhsl(268, 70%, 61%)
HSVhsv(268, 61%, 88%)
CMYKcmyk(32.4%, 61.3%, 0%, 11.8%)
CIE-LABlab(50.60, 53.14, -60.45)
CIE-LCHlch(50.60, 80.49, 311.32°)
OKLaboklab(59.7% 0.1085 -0.1714)
OKLCHoklch(59.7% 0.203 302.3)
XYZxyz(29.9445, 18.9280, 73.2955)
Luminance0.1893 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9857E1 #A0E157
analogous
#575BE1 #9857E1 #DD57E1
triadic
#9857E1 #E19857 #57E198
tetradic
#9857E1 #E1575B #A0E157 #57E1DD
square
#9857E1 #E1575B #A0E157 #57E1DD
split-complementary
#9857E1 #E1DD57 #5BE157
monochromatic
#5B1DA1 #7826D5 #9857E1 #B88BEA #D8BFF4

Accessibility & contrast

On white

4.39
#9857E1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.79
#9857E1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9857E1
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9857E1#FFFFFF#000000##000000
##9857E11.004.394.794.79
#FFFFFF4.391.0021.0021.00
#0000004.7921.001.001.00
##0000004.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#0077E5
Deuteranopia (green-blind)
#2D78DE
Tritanopia (blue-blind)
#8A7494
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #9857e1;
/* rgb */ color: rgb(152, 87, 225);
/* oklch */ color: oklch(59.7% 0.203 302.3);
Tailwind
colors: {
  custom: {
    50: '#bb8aeb',
    500: '#9857e1',
    950: '#000000',
  },
}
SCSS
$custom: #9857e1;
$custom-light: #bb8aeb;
$custom-dark: #000000;
JSON
{
  "hex": "#9857e1",
  "rgb": {
    "r": 152,
    "g": 87,
    "b": 225
  },
  "hsl": {
    "h": 268.261,
    "s": 69.697,
    "l": 61.176
  },
  "oklch": {
    "l": 0.59703,
    "c": 0.20285,
    "h": 302.3
  },
  "luminance": 0.18928
}

Semantic roles & 50–950 ramp

primary
#9857E1
secondary
#CBE4B0
accent
#D21478
background
#FBF8FE
surface
#F7F0FD
border
#D0CBD5
text
#120C16
muted
#817D84

Preview Lab

Preview with #9857E1

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

Preview Lab → · Contrast checker → · Palette generator →

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