#9857F2#9857F2

#9857F2 is a mid, highly saturated violet. Relative luminance 0.199; OKLCH L 60.9% C 0.222 H 298.9°. Best body text is #000000 at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#9857F2
RGBrgb(152, 87, 242)
HSLhsl(265, 86%, 65%)
HSVhsv(265, 64%, 95%)
CMYKcmyk(37.2%, 64%, 0%, 5.1%)
CIE-LABlab(51.73, 57.28, -68.19)
CIE-LCHlch(51.73, 89.06, 310.03°)
OKLaboklab(60.87% 0.1072 -0.1942)
OKLCHoklch(60.87% 0.222 298.9)
XYZxyz(32.3801, 19.9022, 86.1227)
Luminance0.1990 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9857F2 #B1F257
analogous
#5764F2 #9857F2 #E557F2
triadic
#9857F2 #F29857 #57F298
tetradic
#9857F2 #F25764 #B1F257 #57F2E5
square
#9857F2 #F25764 #B1F257 #57F2E5
split-complementary
#9857F2 #F2E557 #64F257
monochromatic
#590FC0 #751EEE #9857F2 #BB90F6 #DEC9FB

Accessibility & contrast

On white

4.22
#9857F2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.98
#9857F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9857F2
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9857F2#FFFFFF#000000##000000
##9857F21.004.224.984.98
#FFFFFF4.221.0021.0021.00
#0000004.9821.001.001.00
##0000004.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#007BF7
Deuteranopia (green-blind)
#007AEF
Tritanopia (blue-blind)
#837A9D
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #9857f2;
/* rgb */ color: rgb(152, 87, 242);
/* oklch */ color: oklch(60.9% 0.222 298.9);
Tailwind
colors: {
  custom: {
    50: '#bc8af7',
    500: '#9857f2',
    950: '#000000',
  },
}
SCSS
$custom: #9857f2;
$custom-light: #bc8af7;
$custom-dark: #000000;
JSON
{
  "hex": "#9857f2",
  "rgb": {
    "r": 152,
    "g": 87,
    "b": 242
  },
  "hsl": {
    "h": 265.161,
    "s": 85.635,
    "l": 64.51
  },
  "oklch": {
    "l": 0.60873,
    "c": 0.22182,
    "h": 298.9
  },
  "luminance": 0.19903
}

Semantic roles & 50–950 ramp

primary
#9857F2
secondary
#D7EDB8
accent
#E20385
background
#FCF8FF
surface
#F8F0FF
border
#D1CBD7
text
#130C17
muted
#827D85

Preview Lab

Preview with #9857F2

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

Preview Lab → · Contrast checker → · Palette generator →

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