#9870EE#9870EE

#9870EE is a light, vivid violet. Relative luminance 0.244; OKLCH L 64.3% C 0.183 H 295.4°. Best body text is #000000 at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#9870EE
RGBrgb(152, 112, 238)
HSLhsl(259, 79%, 69%)
HSVhsv(259, 53%, 93%)
CMYKcmyk(36.1%, 52.9%, 0%, 6.7%)
CIE-LABlab(56.52, 42.94, -58.24)
CIE-LCHlch(56.52, 72.36, 306.40°)
OKLaboklab(64.3% 0.0785 -0.165)
OKLCHoklch(64.3% 0.183 295.4)
XYZxyz(34.1717, 24.4362, 83.7886)
Luminance0.2444 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9870EE #C6EE70
analogous
#7087EE #9870EE #D770EE
triadic
#9870EE #EE9870 #70EE98
tetradic
#9870EE #EE7087 #C6EE70 #70EED7
square
#9870EE #EE7087 #C6EE70 #70EED7
split-complementary
#9870EE #EED770 #87EE70
monochromatic
#5118CB #7139E7 #9870EE #BFA7F5 #E7DDFB

Accessibility & contrast

On white

3.57
#9870EE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.89
#9870EE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9870EE
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9870EE#FFFFFF#000000##000000
##9870EE1.003.575.895.89
#FFFFFF3.571.0021.0021.00
#0000005.8921.001.001.00
##0000005.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#3B89F2
Deuteranopia (green-blind)
#4586EB
Tritanopia (blue-blind)
#848AA4
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #9870ee;
/* rgb */ color: rgb(152, 112, 238);
/* oklch */ color: oklch(64.3% 0.183 295.4);
Tailwind
colors: {
  custom: {
    50: '#ba9af4',
    500: '#9870ee',
    950: '#000000',
  },
}
SCSS
$custom: #9870ee;
$custom-light: #ba9af4;
$custom-dark: #000000;
JSON
{
  "hex": "#9870ee",
  "rgb": {
    "r": 152,
    "g": 112,
    "b": 238
  },
  "hsl": {
    "h": 259.048,
    "s": 78.75,
    "l": 68.627
  },
  "oklch": {
    "l": 0.643,
    "c": 0.18267,
    "h": 295.4
  },
  "luminance": 0.24437
}

Semantic roles & 50–950 ramp

primary
#9870EE
secondary
#E4F0CA
accent
#DB0A99
background
#FBF9FF
surface
#F7F2FE
border
#D0CCD6
text
#120E17
muted
#817E85

Preview Lab

Preview with #9870EE

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

Preview Lab → · Contrast checker → · Palette generator →

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