#9857D9#9857D9

#9857D9 is a mid, vivid violet. Relative luminance 0.185; OKLCH L 59.2% C 0.194 H 304.1°. Best body text is #000000 at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#9857D9
RGBrgb(152, 87, 217)
HSLhsl(270, 63%, 60%)
HSVhsv(270, 60%, 85%)
CMYKcmyk(30%, 59.9%, 0%, 14.9%)
CIE-LABlab(50.10, 51.23, -56.72)
CIE-LCHlch(50.10, 76.43, 312.09°)
OKLaboklab(59.18% 0.1088 -0.1605)
OKLCHoklch(59.18% 0.194 304.1)
XYZxyz(28.8787, 18.5016, 67.6820)
Luminance0.1850 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9857D9 #98D957
analogous
#5757D9 #9857D9 #D957D9
triadic
#9857D9 #D99857 #57D998
tetradic
#9857D9 #D95757 #98D957 #57D9D9
square
#9857D9 #D95757 #98D957 #57D9D9
split-complementary
#9857D9 #D9D957 #57D957
monochromatic
#5B2194 #792DC6 #9857D9 #B789E4 #D5BBF0

Accessibility & contrast

On white

4.47
#9857D9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.70
#9857D9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9857D9
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9857D9#FFFFFF#000000##000000
##9857D91.004.474.704.70
#FFFFFF4.471.0021.0021.00
#0000004.7021.001.001.00
##0000004.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#1276DD
Deuteranopia (green-blind)
#3877D6
Tritanopia (blue-blind)
#8C7190
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #9857d9;
/* rgb */ color: rgb(152, 87, 217);
/* oklch */ color: oklch(59.2% 0.194 304.1);
Tailwind
colors: {
  custom: {
    50: '#ba89e5',
    500: '#9857d9',
    950: '#000000',
  },
}
SCSS
$custom: #9857d9;
$custom-light: #ba89e5;
$custom-dark: #000000;
JSON
{
  "hex": "#9857d9",
  "rgb": {
    "r": 152,
    "g": 87,
    "b": 217
  },
  "hsl": {
    "h": 270,
    "s": 63.107,
    "l": 59.608
  },
  "oklch": {
    "l": 0.59176,
    "c": 0.19386,
    "h": 304.1
  },
  "luminance": 0.18502
}

Semantic roles & 50–950 ramp

primary
#9857D9
secondary
#C6DFAD
accent
#E64294
background
#FBF8FE
surface
#F7F0FC
border
#D0CBD5
text
#120C16
muted
#817D84

Preview Lab

Preview with #9857D9

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

Preview Lab → · Contrast checker → · Palette generator →

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