#9870CD#9870CD

#9870CD is a light, vivid violet. Relative luminance 0.227; OKLCH L 62.4% C 0.141 H 302.4°. Best body text is #000000 at 5.53:1 contrast (WCAG AA passes).

Color values

HEX#9870CD
RGBrgb(152, 112, 205)
HSLhsl(266, 48%, 62%)
HSVhsv(266, 45%, 80%)
CMYKcmyk(25.9%, 45.4%, 0%, 19.6%)
CIE-LABlab(54.73, 34.64, -42.52)
CIE-LCHlch(54.73, 54.84, 309.17°)
OKLaboklab(62.39% 0.0754 -0.119)
OKLCHoklch(62.39% 0.141 302.4)
XYZxyz(29.7601, 22.6715, 60.5540)
Luminance0.2267 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9870CD #A5CD70
analogous
#7077CD #9870CD #C670CD
triadic
#9870CD #CD9870 #70CD98
tetradic
#9870CD #CD7077 #A5CD70 #70CDC6
square
#9870CD #CD7077 #A5CD70 #70CDC6
split-complementary
#9870CD #CDC670 #77CD70
monochromatic
#5B3290 #7743BD #9870CD #B99DDD #D9CBED

Accessibility & contrast

On white

3.79
#9870CD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.53
#9870CD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9870CD
5.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9870CD#FFFFFF#000000##000000
##9870CD1.003.795.535.53
#FFFFFF3.791.0021.0021.00
#0000005.5321.001.001.00
##0000005.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#5682D0
Deuteranopia (green-blind)
#5F83CB
Tritanopia (blue-blind)
#8F8095
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #9870cd;
/* rgb */ color: rgb(152, 112, 205);
/* oklch */ color: oklch(62.4% 0.141 302.4);
Tailwind
colors: {
  custom: {
    50: '#b89adc',
    500: '#9870cd',
    950: '#000000',
  },
}
SCSS
$custom: #9870cd;
$custom-light: #b89adc;
$custom-dark: #000000;
JSON
{
  "hex": "#9870cd",
  "rgb": {
    "r": 152,
    "g": 112,
    "b": 205
  },
  "hsl": {
    "h": 265.806,
    "s": 48.187,
    "l": 62.157
  },
  "oklch": {
    "l": 0.62386,
    "c": 0.14087,
    "h": 302.4
  },
  "luminance": 0.22672
}

Semantic roles & 50–950 ramp

primary
#9870CD
secondary
#CFDDBB
accent
#BB2A7D
background
#FBF9FD
surface
#F6F2FB
border
#D0CCD4
text
#120E15
muted
#817E83

Preview Lab

Preview with #9870CD

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

Preview Lab → · Contrast checker → · Palette generator →

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