#9870EC#9870EC

#9870EC is a light, vivid violet. Relative luminance 0.243; OKLCH L 64.2% C 0.180 H 295.8°. Best body text is #000000 at 5.86:1 contrast (WCAG AA passes).

Color values

HEX#9870EC
RGBrgb(152, 112, 236)
HSLhsl(259, 77%, 68%)
HSVhsv(259, 53%, 93%)
CMYKcmyk(35.6%, 52.5%, 0%, 7.5%)
CIE-LABlab(56.41, 42.42, -57.31)
CIE-LCHlch(56.41, 71.30, 306.51°)
OKLaboklab(64.18% 0.0784 -0.1622)
OKLCHoklch(64.18% 0.18 295.8)
XYZxyz(33.8795, 24.3193, 82.2497)
Luminance0.2432 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9870EC #C4EC70
analogous
#7086EC #9870EC #D670EC
triadic
#9870EC #EC9870 #70EC98
tetradic
#9870EC #EC7086 #C4EC70 #70ECD6
square
#9870EC #EC7086 #C4EC70 #70ECD6
split-complementary
#9870EC #ECD670 #86EC70
monochromatic
#521AC7 #713AE5 #9870EC #BFA6F3 #E6DCFA

Accessibility & contrast

On white

3.58
#9870EC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.86
#9870EC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9870EC
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9870EC#FFFFFF#000000##000000
##9870EC1.003.585.865.86
#FFFFFF3.581.0021.0021.00
#0000005.8621.001.001.00
##0000005.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#3D88F0
Deuteranopia (green-blind)
#4786E9
Tritanopia (blue-blind)
#8489A3
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #9870ec;
/* rgb */ color: rgb(152, 112, 236);
/* oklch */ color: oklch(64.2% 0.180 295.8);
Tailwind
colors: {
  custom: {
    50: '#ba9af3',
    500: '#9870ec',
    950: '#000000',
  },
}
SCSS
$custom: #9870ec;
$custom-light: #ba9af3;
$custom-dark: #000000;
JSON
{
  "hex": "#9870ec",
  "rgb": {
    "r": 152,
    "g": 112,
    "b": 236
  },
  "hsl": {
    "h": 259.355,
    "s": 76.543,
    "l": 68.235
  },
  "oklch": {
    "l": 0.64177,
    "c": 0.18017,
    "h": 295.8
  },
  "luminance": 0.2432
}

Semantic roles & 50–950 ramp

primary
#9870EC
secondary
#E3EFC9
accent
#D90D97
background
#FBF9FE
surface
#F7F2FD
border
#D0CCD5
text
#120E17
muted
#817E85

Preview Lab

Preview with #9870EC

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

Preview Lab → · Contrast checker → · Palette generator →

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