#9870DC#9870DC

#9870DC is a light, vivid violet. Relative luminance 0.234; OKLCH L 63.2% C 0.160 H 298.8°. Best body text is #000000 at 5.69:1 contrast (WCAG AA passes).

Color values

HEX#9870DC
RGBrgb(152, 112, 220)
HSLhsl(262, 61%, 65%)
HSVhsv(262, 49%, 86%)
CMYKcmyk(30.9%, 49.1%, 0%, 13.7%)
CIE-LABlab(55.51, 38.35, -49.77)
CIE-LCHlch(55.51, 62.83, 307.61°)
OKLaboklab(63.22% 0.0772 -0.1401)
OKLCHoklch(63.22% 0.16 298.8)
XYZxyz(31.6582, 23.4308, 70.5510)
Luminance0.2343 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9870DC #B4DC70
analogous
#707EDC #9870DC #CE70DC
triadic
#9870DC #DC9870 #70DC98
tetradic
#9870DC #DC707E #B4DC70 #70DCCE
square
#9870DC #DC707E #B4DC70 #70DCCE
split-complementary
#9870DC #DCCE70 #7EDC70
monochromatic
#5829A8 #753FD0 #9870DC #BBA1E8 #DFD2F4

Accessibility & contrast

On white

3.69
#9870DC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.69
#9870DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9870DC
5.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9870DC#FFFFFF#000000##000000
##9870DC1.003.695.695.69
#FFFFFF3.691.0021.0021.00
#0000005.6921.001.001.00
##0000005.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#4C85E0
Deuteranopia (green-blind)
#5584D9
Tritanopia (blue-blind)
#8A849C
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #9870dc;
/* rgb */ color: rgb(152, 112, 220);
/* oklch */ color: oklch(63.2% 0.160 298.8);
Tailwind
colors: {
  custom: {
    50: '#b99ae7',
    500: '#9870dc',
    950: '#000000',
  },
}
SCSS
$custom: #9870dc;
$custom-light: #b99ae7;
$custom-dark: #000000;
JSON
{
  "hex": "#9870dc",
  "rgb": {
    "r": 152,
    "g": 112,
    "b": 220
  },
  "hsl": {
    "h": 262.222,
    "s": 60.674,
    "l": 65.098
  },
  "oklch": {
    "l": 0.63225,
    "c": 0.15999,
    "h": 298.8
  },
  "luminance": 0.23431
}

Semantic roles & 50–950 ramp

primary
#9870DC
secondary
#D9E6C2
accent
#C81D89
background
#FBF9FE
surface
#F6F2FC
border
#D0CCD5
text
#120E16
muted
#817E84

Preview Lab

Preview with #9870DC

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

Preview Lab → · Contrast checker → · Palette generator →

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