#9870CF#9870CF

#9870CF is a light, vivid violet. Relative luminance 0.228; OKLCH L 62.5% C 0.143 H 301.8°. Best body text is #000000 at 5.55:1 contrast (WCAG AA passes).

Color values

HEX#9870CF
RGBrgb(152, 112, 207)
HSLhsl(265, 50%, 63%)
HSVhsv(265, 46%, 81%)
CMYKcmyk(26.6%, 45.9%, 0%, 18.8%)
CIE-LABlab(54.83, 35.13, -43.50)
CIE-LCHlch(54.83, 55.91, 308.93°)
OKLaboklab(62.5% 0.0757 -0.1218)
OKLCHoklch(62.5% 0.143 301.8)
XYZxyz(30.0030, 22.7687, 61.8335)
Luminance0.2277 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9870CF #A7CF70
analogous
#7078CF #9870CF #C770CF
triadic
#9870CF #CF9870 #70CF98
tetradic
#9870CF #CF7078 #A7CF70 #70CFC7
square
#9870CF #CF7078 #A7CF70 #70CFC7
split-complementary
#9870CF #CFC770 #78CF70
monochromatic
#5B3193 #7742C0 #9870CF #B99EDE #DACCEE

Accessibility & contrast

On white

3.78
#9870CF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.55
#9870CF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9870CF
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9870CF#FFFFFF#000000##000000
##9870CF1.003.785.555.55
#FFFFFF3.781.0021.0021.00
#0000005.5521.001.001.00
##0000005.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#5583D2
Deuteranopia (green-blind)
#5E83CD
Tritanopia (blue-blind)
#8E8196
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #9870cf;
/* rgb */ color: rgb(152, 112, 207);
/* oklch */ color: oklch(62.5% 0.143 301.8);
Tailwind
colors: {
  custom: {
    50: '#b89ade',
    500: '#9870cf',
    950: '#000000',
  },
}
SCSS
$custom: #9870cf;
$custom-light: #b89ade;
$custom-dark: #000000;
JSON
{
  "hex": "#9870cf",
  "rgb": {
    "r": 152,
    "g": 112,
    "b": 207
  },
  "hsl": {
    "h": 265.263,
    "s": 49.738,
    "l": 62.549
  },
  "oklch": {
    "l": 0.62495,
    "c": 0.14342,
    "h": 301.8
  },
  "luminance": 0.22769
}

Semantic roles & 50–950 ramp

primary
#9870CF
secondary
#D0DFBC
accent
#BD287E
background
#FBF9FD
surface
#F6F2FB
border
#D0CCD4
text
#120E15
muted
#817E83

Preview Lab

Preview with #9870CF

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

Preview Lab → · Contrast checker → · Palette generator →

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