#9857F5#9857F5

#9857F5 is a mid, highly saturated violet. Relative luminance 0.201; OKLCH L 61.1% C 0.225 H 298.4°. Best body text is #000000 at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#9857F5
RGBrgb(152, 87, 245)
HSLhsl(265, 89%, 65%)
HSVhsv(265, 64%, 96%)
CMYKcmyk(38%, 64.5%, 0%, 3.9%)
CIE-LABlab(51.93, 58.02, -69.54)
CIE-LCHlch(51.93, 90.56, 309.84°)
OKLaboklab(61.09% 0.1069 -0.1981)
OKLCHoklch(61.09% 0.225 298.4)
XYZxyz(32.8344, 20.0839, 88.5152)
Luminance0.2008 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9857F5 #B4F557
analogous
#5765F5 #9857F5 #E757F5
triadic
#9857F5 #F59857 #57F598
tetradic
#9857F5 #F55765 #B4F557 #57F5E7
square
#9857F5 #F55765 #B4F557 #57F5E7
split-complementary
#9857F5 #F5E757 #65F557
monochromatic
#580CC6 #751DF2 #9857F5 #BB91F8 #DFCBFC

Accessibility & contrast

On white

4.19
#9857F5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.02
#9857F5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9857F5
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9857F5#FFFFFF#000000##000000
##9857F51.004.195.025.02
#FFFFFF4.191.0021.0021.00
#0000005.0221.001.001.00
##0000005.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#007CFA
Deuteranopia (green-blind)
#007AF2
Tritanopia (blue-blind)
#827B9F
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #9857f5;
/* rgb */ color: rgb(152, 87, 245);
/* oklch */ color: oklch(61.1% 0.225 298.4);
Tailwind
colors: {
  custom: {
    50: '#bc8af9',
    500: '#9857f5',
    950: '#000000',
  },
}
SCSS
$custom: #9857f5;
$custom-light: #bc8af9;
$custom-dark: #000000;
JSON
{
  "hex": "#9857f5",
  "rgb": {
    "r": 152,
    "g": 87,
    "b": 245
  },
  "hsl": {
    "h": 264.684,
    "s": 88.764,
    "l": 65.098
  },
  "oklch": {
    "l": 0.61086,
    "c": 0.22514,
    "h": 298.4
  },
  "luminance": 0.20084
}

Semantic roles & 50–950 ramp

primary
#9857F5
secondary
#D9EFB9
accent
#E50087
background
#FCF8FF
surface
#F8F0FF
border
#D1CBD7
text
#130C17
muted
#827D85

Preview Lab

Preview with #9857F5

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

Preview Lab → · Contrast checker → · Palette generator →

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