#9870DD#9870DD

#9870DD is a light, vivid violet. Relative luminance 0.235; OKLCH L 63.3% C 0.161 H 298.6°. Best body text is #000000 at 5.70:1 contrast (WCAG AA passes).

Color values

HEX#9870DD
RGBrgb(152, 112, 221)
HSLhsl(262, 62%, 65%)
HSVhsv(262, 49%, 87%)
CMYKcmyk(31.2%, 49.3%, 0%, 13.3%)
CIE-LABlab(55.57, 38.60, -50.24)
CIE-LCHlch(55.57, 63.36, 307.53°)
OKLaboklab(63.28% 0.0773 -0.1415)
OKLCHoklch(63.28% 0.161 298.6)
XYZxyz(31.7911, 23.4839, 71.2505)
Luminance0.2348 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9870DD #B5DD70
analogous
#707FDD #9870DD #CE70DD
triadic
#9870DD #DD9870 #70DD98
tetradic
#9870DD #DD707F #B5DD70 #70DDCE
square
#9870DD #DD707F #B5DD70 #70DDCE
split-complementary
#9870DD #DDCE70 #7FDD70
monochromatic
#5828AA #743FD1 #9870DD #BCA1E9 #DFD3F5

Accessibility & contrast

On white

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

On black

5.70
#9870DD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9870DD
5.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9870DD#FFFFFF#000000##000000
##9870DD1.003.695.705.70
#FFFFFF3.691.0021.0021.00
#0000005.7021.001.001.00
##0000005.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#4B85E1
Deuteranopia (green-blind)
#5584DA
Tritanopia (blue-blind)
#8A859C
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #9870dd;
/* rgb */ color: rgb(152, 112, 221);
/* oklch */ color: oklch(63.3% 0.161 298.6);
Tailwind
colors: {
  custom: {
    50: '#b99ae8',
    500: '#9870dd',
    950: '#000000',
  },
}
SCSS
$custom: #9870dd;
$custom-light: #b99ae8;
$custom-dark: #000000;
JSON
{
  "hex": "#9870dd",
  "rgb": {
    "r": 152,
    "g": 112,
    "b": 221
  },
  "hsl": {
    "h": 262.018,
    "s": 61.582,
    "l": 65.294
  },
  "oklch": {
    "l": 0.63282,
    "c": 0.16126,
    "h": 298.6
  },
  "luminance": 0.23484
}

Semantic roles & 50–950 ramp

primary
#9870DD
secondary
#D9E7C2
accent
#C91C8A
background
#FBF9FE
surface
#F6F2FD
border
#D0CCD5
text
#120E16
muted
#817E84

Preview Lab

Preview with #9870DD

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

Preview Lab → · Contrast checker → · Palette generator →

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