#9870EA#9870EA

#9870EA is a light, vivid violet. Relative luminance 0.242; OKLCH L 64.1% C 0.178 H 296.1°. Best body text is #000000 at 5.84:1 contrast (WCAG AA passes).

Color values

HEX#9870EA
RGBrgb(152, 112, 234)
HSLhsl(260, 74%, 68%)
HSVhsv(260, 52%, 92%)
CMYKcmyk(35%, 52.1%, 0%, 8.2%)
CIE-LABlab(56.29, 41.91, -56.38)
CIE-LCHlch(56.29, 70.25, 306.62°)
OKLaboklab(64.05% 0.0783 -0.1595)
OKLCHoklch(64.05% 0.178 296.1)
XYZxyz(33.5906, 24.2037, 80.7280)
Luminance0.2420 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9870EA #C2EA70
analogous
#7085EA #9870EA #D570EA
triadic
#9870EA #EA9870 #70EA98
tetradic
#9870EA #EA7085 #C2EA70 #70EAD5
square
#9870EA #EA7085 #C2EA70 #70EAD5
split-complementary
#9870EA #EAD570 #85EA70
monochromatic
#531DC3 #723BE2 #9870EA #BEA5F2 #E5DBFA

Accessibility & contrast

On white

3.60
#9870EA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.84
#9870EA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9870EA
5.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9870EA#FFFFFF#000000##000000
##9870EA1.003.605.845.84
#FFFFFF3.601.0021.0021.00
#0000005.8421.001.001.00
##0000005.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#3F88EE
Deuteranopia (green-blind)
#4985E7
Tritanopia (blue-blind)
#8588A2
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #9870ea;
/* rgb */ color: rgb(152, 112, 234);
/* oklch */ color: oklch(64.1% 0.178 296.1);
Tailwind
colors: {
  custom: {
    50: '#ba9af1',
    500: '#9870ea',
    950: '#000000',
  },
}
SCSS
$custom: #9870ea;
$custom-light: #ba9af1;
$custom-dark: #000000;
JSON
{
  "hex": "#9870ea",
  "rgb": {
    "r": 152,
    "g": 112,
    "b": 234
  },
  "hsl": {
    "h": 259.672,
    "s": 74.39,
    "l": 67.843
  },
  "oklch": {
    "l": 0.64055,
    "c": 0.17766,
    "h": 296.1
  },
  "luminance": 0.24204
}

Semantic roles & 50–950 ramp

primary
#9870EA
secondary
#E1EEC8
accent
#D70F95
background
#FBF9FE
surface
#F7F2FD
border
#D0CCD5
text
#120E17
muted
#817E85

Preview Lab

Preview with #9870EA

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

Preview Lab → · Contrast checker → · Palette generator →

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