#9868DC#9868DC

#9868DC is a mid, vivid violet. Relative luminance 0.217; OKLCH L 61.9% C 0.172 H 300.6°. Best body text is #000000 at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#9868DC
RGBrgb(152, 104, 220)
HSLhsl(265, 62%, 64%)
HSVhsv(265, 53%, 86%)
CMYKcmyk(30.9%, 52.7%, 0%, 13.7%)
CIE-LABlab(53.75, 42.82, -52.57)
CIE-LCHlch(53.75, 67.81, 309.17°)
OKLaboklab(61.92% 0.0876 -0.1483)
OKLCHoklch(61.92% 0.172 300.6)
XYZxyz(30.8144, 21.7432, 70.2697)
Luminance0.2174 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9868DC #ACDC68
analogous
#6872DC #9868DC #D268DC
triadic
#9868DC #DC9868 #68DC98
tetradic
#9868DC #DC6872 #ACDC68 #68DCD2
square
#9868DC #DC6872 #ACDC68 #68DCD2
split-complementary
#9868DC #DCD268 #72DC68
monochromatic
#5A26A4 #7636D0 #9868DC #BA9AE8 #DCCBF3

Accessibility & contrast

On white

3.93
#9868DC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.35
#9868DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9868DC
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9868DC#FFFFFF#000000##000000
##9868DC1.003.935.355.35
#FFFFFF3.931.0021.0021.00
#0000005.3521.001.001.00
##0000005.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#3D80E0
Deuteranopia (green-blind)
#4C80D9
Tritanopia (blue-blind)
#8A7E98
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #9868dc;
/* rgb */ color: rgb(152, 104, 220);
/* oklch */ color: oklch(61.9% 0.172 300.6);
Tailwind
colors: {
  custom: {
    50: '#ba94e7',
    500: '#9868dc',
    950: '#000000',
  },
}
SCSS
$custom: #9868dc;
$custom-light: #ba94e7;
$custom-dark: #000000;
JSON
{
  "hex": "#9868dc",
  "rgb": {
    "r": 152,
    "g": 104,
    "b": 220
  },
  "hsl": {
    "h": 264.828,
    "s": 62.366,
    "l": 63.529
  },
  "oklch": {
    "l": 0.61917,
    "c": 0.17227,
    "h": 300.6
  },
  "luminance": 0.21743
}

Semantic roles & 50–950 ramp

primary
#9868DC
secondary
#D3E4BB
accent
#CA1B82
background
#FBF9FE
surface
#F6F2FC
border
#D0CCD5
text
#120D16
muted
#817E84

Preview Lab

Preview with #9868DC

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

Preview Lab → · Contrast checker → · Palette generator →

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