#9870EB#9870EB

#9870EB is a light, vivid violet. Relative luminance 0.243; OKLCH L 64.1% C 0.179 H 296.0°. Best body text is #000000 at 5.85:1 contrast (WCAG AA passes).

Color values

HEX#9870EB
RGBrgb(152, 112, 235)
HSLhsl(260, 75%, 68%)
HSVhsv(260, 52%, 92%)
CMYKcmyk(35.3%, 52.3%, 0%, 7.8%)
CIE-LABlab(56.35, 42.16, -56.84)
CIE-LCHlch(56.35, 70.77, 306.57°)
OKLaboklab(64.12% 0.0783 -0.1609)
OKLCHoklch(64.12% 0.179 296)
XYZxyz(33.7347, 24.2613, 81.4867)
Luminance0.2426 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9870EB #C3EB70
analogous
#7085EB #9870EB #D570EB
triadic
#9870EB #EB9870 #70EB98
tetradic
#9870EB #EB7085 #C3EB70 #70EBD5
square
#9870EB #EB7085 #C3EB70 #70EBD5
split-complementary
#9870EB #EBD570 #85EB70
monochromatic
#531CC5 #713AE3 #9870EB #BFA6F3 #E5DBFA

Accessibility & contrast

On white

3.59
#9870EB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.85
#9870EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9870EB
5.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9870EB#FFFFFF#000000##000000
##9870EB1.003.595.855.85
#FFFFFF3.591.0021.0021.00
#0000005.8521.001.001.00
##0000005.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#3E88EF
Deuteranopia (green-blind)
#4885E8
Tritanopia (blue-blind)
#8589A3
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #9870eb;
/* rgb */ color: rgb(152, 112, 235);
/* oklch */ color: oklch(64.1% 0.179 296.0);
Tailwind
colors: {
  custom: {
    50: '#ba9af2',
    500: '#9870eb',
    950: '#000000',
  },
}
SCSS
$custom: #9870eb;
$custom-light: #ba9af2;
$custom-dark: #000000;
JSON
{
  "hex": "#9870eb",
  "rgb": {
    "r": 152,
    "g": 112,
    "b": 235
  },
  "hsl": {
    "h": 259.512,
    "s": 75.46,
    "l": 68.039
  },
  "oklch": {
    "l": 0.64116,
    "c": 0.17892,
    "h": 296
  },
  "luminance": 0.24262
}

Semantic roles & 50–950 ramp

primary
#9870EB
secondary
#E2EEC9
accent
#D80E96
background
#FBF9FE
surface
#F7F2FD
border
#D0CCD5
text
#120E17
muted
#817E85

Preview Lab

Preview with #9870EB

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

Preview Lab → · Contrast checker → · Palette generator →

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