#9857EC#9857EC

#9857EC is a mid, highly saturated violet. Relative luminance 0.195; OKLCH L 60.5% C 0.215 H 300.1°. Best body text is #000000 at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#9857EC
RGBrgb(152, 87, 236)
HSLhsl(266, 80%, 63%)
HSVhsv(266, 63%, 93%)
CMYKcmyk(35.6%, 63.1%, 0%, 7.5%)
CIE-LABlab(51.32, 55.81, -65.49)
CIE-LCHlch(51.32, 86.04, 310.44°)
OKLaboklab(60.45% 0.1078 -0.1862)
OKLCHoklch(60.45% 0.215 300.1)
XYZxyz(31.4937, 19.5477, 81.4545)
Luminance0.1955 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9857EC #ABEC57
analogous
#5760EC #9857EC #E257EC
triadic
#9857EC #EC9857 #57EC98
tetradic
#9857EC #EC5760 #ABEC57 #57ECE2
square
#9857EC #EC5760 #ABEC57 #57ECE2
split-complementary
#9857EC #ECE257 #60EC57
monochromatic
#5A14B4 #7620E6 #9857EC #BA8EF2 #DBC5F8

Accessibility & contrast

On white

4.28
#9857EC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.91
#9857EC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9857EC
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9857EC#FFFFFF#000000##000000
##9857EC1.004.284.914.91
#FFFFFF4.281.0021.0021.00
#0000004.9121.001.001.00
##0000004.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#007AF1
Deuteranopia (green-blind)
#1279E9
Tritanopia (blue-blind)
#86789A
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #9857ec;
/* rgb */ color: rgb(152, 87, 236);
/* oklch */ color: oklch(60.5% 0.215 300.1);
Tailwind
colors: {
  custom: {
    50: '#bc8af3',
    500: '#9857ec',
    950: '#000000',
  },
}
SCSS
$custom: #9857ec;
$custom-light: #bc8af3;
$custom-dark: #000000;
JSON
{
  "hex": "#9857ec",
  "rgb": {
    "r": 152,
    "g": 87,
    "b": 236
  },
  "hsl": {
    "h": 266.174,
    "s": 79.679,
    "l": 63.333
  },
  "oklch": {
    "l": 0.60453,
    "c": 0.21515,
    "h": 300.1
  },
  "luminance": 0.19548
}

Semantic roles & 50–950 ramp

primary
#9857EC
secondary
#D3EAB5
accent
#DC0A80
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#120C17
muted
#817D85

Preview Lab

Preview with #9857EC

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

Preview Lab → · Contrast checker → · Palette generator →

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