#9857DB#9857DB

#9857DB is a mid, vivid violet. Relative luminance 0.186; OKLCH L 59.3% C 0.196 H 303.7°. Best body text is #000000 at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#9857DB
RGBrgb(152, 87, 219)
HSLhsl(270, 65%, 60%)
HSVhsv(270, 60%, 86%)
CMYKcmyk(30.6%, 60.3%, 0%, 14.1%)
CIE-LABlab(50.22, 51.70, -57.66)
CIE-LCHlch(50.22, 77.45, 311.88°)
OKLaboklab(59.31% 0.1087 -0.1632)
OKLCHoklch(59.31% 0.196 303.7)
XYZxyz(29.1404, 18.6063, 69.0603)
Luminance0.1861 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9857DB #9ADB57
analogous
#5758DB #9857DB #DA57DB
triadic
#9857DB #DB9857 #57DB98
tetradic
#9857DB #DB5758 #9ADB57 #57DBDA
square
#9857DB #DB5758 #9ADB57 #57DBDA
split-complementary
#9857DB #DBDA57 #58DB57
monochromatic
#5B2097 #792BCA #9857DB #B789E6 #D6BCF1

Accessibility & contrast

On white

4.45
#9857DB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.72
#9857DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9857DB
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9857DB#FFFFFF#000000##000000
##9857DB1.004.454.724.72
#FFFFFF4.451.0021.0021.00
#0000004.7221.001.001.00
##0000004.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#0A76DF
Deuteranopia (green-blind)
#3577D8
Tritanopia (blue-blind)
#8C7291
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #9857db;
/* rgb */ color: rgb(152, 87, 219);
/* oklch */ color: oklch(59.3% 0.196 303.7);
Tailwind
colors: {
  custom: {
    50: '#ba89e7',
    500: '#9857db',
    950: '#000000',
  },
}
SCSS
$custom: #9857db;
$custom-light: #ba89e7;
$custom-dark: #000000;
JSON
{
  "hex": "#9857db",
  "rgb": {
    "r": 152,
    "g": 87,
    "b": 219
  },
  "hsl": {
    "h": 269.545,
    "s": 64.706,
    "l": 60
  },
  "oklch": {
    "l": 0.59306,
    "c": 0.19611,
    "h": 303.7
  },
  "luminance": 0.18606
}

Semantic roles & 50–950 ramp

primary
#9857DB
secondary
#C7E0AD
accent
#E84095
background
#FBF8FE
surface
#F7F0FC
border
#D0CBD5
text
#120C16
muted
#817D84

Preview Lab

Preview with #9857DB

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

Preview Lab → · Contrast checker → · Palette generator →

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