#9864DD#9864DD

#9864DD is a mid, vivid violet. Relative luminance 0.210; OKLCH L 61.4% C 0.180 H 301.1°. Best body text is #000000 at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#9864DD
RGBrgb(152, 100, 221)
HSLhsl(266, 64%, 63%)
HSVhsv(266, 55%, 87%)
CMYKcmyk(31.2%, 54.8%, 0%, 13.3%)
CIE-LABlab(52.96, 45.27, -54.40)
CIE-LCHlch(52.96, 70.78, 309.77°)
OKLaboklab(61.35% 0.0927 -0.1537)
OKLCHoklch(61.35% 0.18 301.1)
XYZxyz(30.5542, 21.0101, 70.8382)
Luminance0.2101 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9864DD #A9DD64
analogous
#646CDD #9864DD #D464DD
triadic
#9864DD #DD9864 #64DD98
tetradic
#9864DD #DD646C #A9DD64 #64DDD4
square
#9864DD #DD646C #A9DD64 #64DDD4
split-complementary
#9864DD #DDD464 #6CDD64
monochromatic
#5A24A3 #7732D2 #9864DD #B996E8 #DBC8F3

Accessibility & contrast

On white

4.04
#9864DD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.20
#9864DD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9864DD
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9864DD#FFFFFF#000000##000000
##9864DD1.004.045.205.20
#FFFFFF4.041.0021.0021.00
#0000005.2021.001.001.00
##0000005.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#347EE1
Deuteranopia (green-blind)
#457EDA
Tritanopia (blue-blind)
#8A7C97
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #9864dd;
/* rgb */ color: rgb(152, 100, 221);
/* oklch */ color: oklch(61.4% 0.180 301.1);
Tailwind
colors: {
  custom: {
    50: '#ba92e8',
    500: '#9864dd',
    950: '#000000',
  },
}
SCSS
$custom: #9864dd;
$custom-light: #ba92e8;
$custom-dark: #000000;
JSON
{
  "hex": "#9864dd",
  "rgb": {
    "r": 152,
    "g": 100,
    "b": 221
  },
  "hsl": {
    "h": 265.785,
    "s": 64.021,
    "l": 62.941
  },
  "oklch": {
    "l": 0.6135,
    "c": 0.17951,
    "h": 301.1
  },
  "luminance": 0.2101
}

Semantic roles & 50–950 ramp

primary
#9864DD
secondary
#D1E4B9
accent
#CC1A7F
background
#FBF9FE
surface
#F7F1FD
border
#D0CBD5
text
#120D16
muted
#817E84

Preview Lab

Preview with #9864DD

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

Preview Lab → · Contrast checker → · Palette generator →

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