#9870CA#9870CA

#9870CA is a light, vivid violet. Relative luminance 0.225; OKLCH L 62.2% C 0.137 H 303.1°. Best body text is #000000 at 5.51:1 contrast (WCAG AA passes).

Color values

HEX#9870CA
RGBrgb(152, 112, 202)
HSLhsl(267, 46%, 62%)
HSVhsv(267, 45%, 79%)
CMYKcmyk(24.8%, 44.6%, 0%, 20.8%)
CIE-LABlab(54.58, 33.92, -41.05)
CIE-LCHlch(54.58, 53.25, 309.57°)
OKLaboklab(62.22% 0.0749 -0.1147)
OKLCHoklch(62.22% 0.137 303.1)
XYZxyz(29.4014, 22.5280, 58.6651)
Luminance0.2253 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9870CA #A2CA70
analogous
#7075CA #9870CA #C570CA
triadic
#9870CA #CA9870 #70CA98
tetradic
#9870CA #CA7075 #A2CA70 #70CAC5
square
#9870CA #CA7075 #A2CA70 #70CAC5
split-complementary
#9870CA #CAC570 #75CA70
monochromatic
#5B348C #7844B8 #9870CA #B89DDB #D8C9EB

Accessibility & contrast

On white

3.81
#9870CA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.51
#9870CA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9870CA
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9870CA#FFFFFF#000000##000000
##9870CA1.003.815.515.51
#FFFFFF3.811.0021.0021.00
#0000005.5121.001.001.00
##0000005.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#5882CD
Deuteranopia (green-blind)
#6182C8
Tritanopia (blue-blind)
#8F7F93
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #9870ca;
/* rgb */ color: rgb(152, 112, 202);
/* oklch */ color: oklch(62.2% 0.137 303.1);
Tailwind
colors: {
  custom: {
    50: '#b89ada',
    500: '#9870ca',
    950: '#000000',
  },
}
SCSS
$custom: #9870ca;
$custom-light: #b89ada;
$custom-dark: #000000;
JSON
{
  "hex": "#9870ca",
  "rgb": {
    "r": 152,
    "g": 112,
    "b": 202
  },
  "hsl": {
    "h": 266.667,
    "s": 45.918,
    "l": 61.569
  },
  "oklch": {
    "l": 0.62225,
    "c": 0.13703,
    "h": 303.1
  },
  "luminance": 0.22528
}

Semantic roles & 50–950 ramp

primary
#9870CA
secondary
#CDDCBA
accent
#B92C7B
background
#FBF9FD
surface
#F6F2FB
border
#D0CCD4
text
#120E15
muted
#817E83

Preview Lab

Preview with #9870CA

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

Preview Lab → · Contrast checker → · Palette generator →

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