#9857F1#9857F1

#9857F1 is a mid, highly saturated violet. Relative luminance 0.198; OKLCH L 60.8% C 0.221 H 299.1°. Best body text is #000000 at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#9857F1
RGBrgb(152, 87, 241)
HSLhsl(265, 85%, 64%)
HSVhsv(265, 64%, 95%)
CMYKcmyk(36.9%, 63.9%, 0%, 5.5%)
CIE-LABlab(51.66, 57.04, -67.74)
CIE-LCHlch(51.66, 88.56, 310.10°)
OKLaboklab(60.8% 0.1073 -0.1929)
OKLCHoklch(60.8% 0.221 299.1)
XYZxyz(32.2303, 19.8423, 85.3339)
Luminance0.1984 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9857F1 #B0F157
analogous
#5763F1 #9857F1 #E557F1
triadic
#9857F1 #F19857 #57F198
tetradic
#9857F1 #F15763 #B0F157 #57F1E5
square
#9857F1 #F15763 #B0F157 #57F1E5
split-complementary
#9857F1 #F1E557 #63F157
monochromatic
#5910BE #751FEC #9857F1 #BB8FF6 #DDC8FA

Accessibility & contrast

On white

4.23
#9857F1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.97
#9857F1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9857F1
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9857F1#FFFFFF#000000##000000
##9857F11.004.234.974.97
#FFFFFF4.231.0021.0021.00
#0000004.9721.001.001.00
##0000004.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#007BF6
Deuteranopia (green-blind)
#007AEE
Tritanopia (blue-blind)
#847A9C
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #9857f1;
/* rgb */ color: rgb(152, 87, 241);
/* oklch */ color: oklch(60.8% 0.221 299.1);
Tailwind
colors: {
  custom: {
    50: '#bc8af7',
    500: '#9857f1',
    950: '#000000',
  },
}
SCSS
$custom: #9857f1;
$custom-light: #bc8af7;
$custom-dark: #000000;
JSON
{
  "hex": "#9857f1",
  "rgb": {
    "r": 152,
    "g": 87,
    "b": 241
  },
  "hsl": {
    "h": 265.325,
    "s": 84.615,
    "l": 64.314
  },
  "oklch": {
    "l": 0.60803,
    "c": 0.22071,
    "h": 299.1
  },
  "luminance": 0.19843
}

Semantic roles & 50–950 ramp

primary
#9857F1
secondary
#D6EDB7
accent
#E10484
background
#FCF8FF
surface
#F8F0FF
border
#D1CBD7
text
#130C17
muted
#827D85

Preview Lab

Preview with #9857F1

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

Preview Lab → · Contrast checker → · Palette generator →

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