#9864DC#9864DC

#9864DC is a mid, vivid violet. Relative luminance 0.210; OKLCH L 61.3% C 0.178 H 301.3°. Best body text is #000000 at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#9864DC
RGBrgb(152, 100, 220)
HSLhsl(266, 63%, 63%)
HSVhsv(266, 55%, 86%)
CMYKcmyk(30.9%, 54.5%, 0%, 13.7%)
CIE-LABlab(52.90, 45.03, -53.93)
CIE-LCHlch(52.90, 70.26, 309.86°)
OKLaboklab(61.29% 0.0927 -0.1523)
OKLCHoklch(61.29% 0.178 301.3)
XYZxyz(30.4213, 20.9569, 70.1387)
Luminance0.2096 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9864DC #A8DC64
analogous
#646CDC #9864DC #D464DC
triadic
#9864DC #DC9864 #64DC98
tetradic
#9864DC #DC646C #A8DC64 #64DCD4
square
#9864DC #DC646C #A8DC64 #64DCD4
split-complementary
#9864DC #DCD464 #6CDC64
monochromatic
#5A24A1 #7732D1 #9864DC #B996E7 #DAC8F3

Accessibility & contrast

On white

4.05
#9864DC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.19
#9864DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9864DC
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9864DC#FFFFFF#000000##000000
##9864DC1.004.055.195.19
#FFFFFF4.051.0021.0021.00
#0000005.1921.001.001.00
##0000005.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#357EE0
Deuteranopia (green-blind)
#467ED9
Tritanopia (blue-blind)
#8B7B96
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #9864dc;
/* rgb */ color: rgb(152, 100, 220);
/* oklch */ color: oklch(61.3% 0.178 301.3);
Tailwind
colors: {
  custom: {
    50: '#ba92e7',
    500: '#9864dc',
    950: '#000000',
  },
}
SCSS
$custom: #9864dc;
$custom-light: #ba92e7;
$custom-dark: #000000;
JSON
{
  "hex": "#9864dc",
  "rgb": {
    "r": 152,
    "g": 100,
    "b": 220
  },
  "hsl": {
    "h": 266,
    "s": 63.158,
    "l": 62.745
  },
  "oklch": {
    "l": 0.61288,
    "c": 0.17831,
    "h": 301.3
  },
  "luminance": 0.20957
}

Semantic roles & 50–950 ramp

primary
#9864DC
secondary
#D1E4B8
accent
#CB1B7F
background
#FBF9FE
surface
#F7F1FC
border
#D0CBD5
text
#120D16
muted
#817E84

Preview Lab

Preview with #9864DC

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

Preview Lab → · Contrast checker → · Palette generator →

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