#9864CD#9864CD

#9864CD is a mid, vivid violet. Relative luminance 0.202; OKLCH L 60.4% C 0.160 H 305.0°. Best body text is #000000 at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#9864CD
RGBrgb(152, 100, 205)
HSLhsl(270, 51%, 60%)
HSVhsv(270, 51%, 80%)
CMYKcmyk(25.9%, 51.2%, 0%, 19.6%)
CIE-LABlab(52.06, 41.39, -46.75)
CIE-LCHlch(52.06, 62.44, 311.52°)
OKLaboklab(60.39% 0.0918 -0.1313)
OKLCHoklch(60.39% 0.16 305)
XYZxyz(28.5232, 20.1977, 60.1417)
Luminance0.2020 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9864CD #99CD64
analogous
#6465CD #9864CD #CD64CD
triadic
#9864CD #CD9864 #64CD98
tetradic
#9864CD #CD6465 #99CD64 #64CDCD
square
#9864CD #CD6465 #99CD64 #64CDCD
split-complementary
#9864CD #CDCD64 #65CD64
monochromatic
#5B2D8A #793BB8 #9864CD #B792DC #D5C1EB

Accessibility & contrast

On white

4.17
#9864CD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.04
#9864CD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9864CD
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9864CD#FFFFFF#000000##000000
##9864CD1.004.175.045.04
#FFFFFF4.171.0021.0021.00
#0000005.0421.001.001.00
##0000005.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#437BD1
Deuteranopia (green-blind)
#537CCA
Tritanopia (blue-blind)
#8F778F
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #9864cd;
/* rgb */ color: rgb(152, 100, 205);
/* oklch */ color: oklch(60.4% 0.160 305.0);
Tailwind
colors: {
  custom: {
    50: '#b992dd',
    500: '#9864cd',
    950: '#000000',
  },
}
SCSS
$custom: #9864cd;
$custom-light: #b992dd;
$custom-dark: #000000;
JSON
{
  "hex": "#9864cd",
  "rgb": {
    "r": 152,
    "g": 100,
    "b": 205
  },
  "hsl": {
    "h": 269.714,
    "s": 51.22,
    "l": 59.804
  },
  "oklch": {
    "l": 0.60393,
    "c": 0.16021,
    "h": 305
  },
  "luminance": 0.20198
}

Semantic roles & 50–950 ramp

primary
#9864CD
secondary
#C7DBB2
accent
#DB4D95
background
#FBF9FD
surface
#F6F1FB
border
#D0CBD4
text
#120D15
muted
#817E83

Preview Lab

Preview with #9864CD

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

Preview Lab → · Contrast checker → · Palette generator →

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