#9868DD#9868DD

#9868DD is a mid, vivid violet. Relative luminance 0.218; OKLCH L 62.0% C 0.173 H 300.3°. Best body text is #000000 at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#9868DD
RGBrgb(152, 104, 221)
HSLhsl(265, 63%, 64%)
HSVhsv(265, 53%, 87%)
CMYKcmyk(31.2%, 52.9%, 0%, 13.3%)
CIE-LABlab(53.81, 43.07, -53.04)
CIE-LCHlch(53.81, 68.33, 309.08°)
OKLaboklab(61.98% 0.0877 -0.1497)
OKLCHoklch(61.98% 0.173 300.3)
XYZxyz(30.9473, 21.7963, 70.9693)
Luminance0.2180 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9868DD #ADDD68
analogous
#6872DD #9868DD #D268DD
triadic
#9868DD #DD9868 #68DD98
tetradic
#9868DD #DD6872 #ADDD68 #68DDD2
square
#9868DD #DD6872 #ADDD68 #68DDD2
split-complementary
#9868DD #DDD268 #72DD68
monochromatic
#5A25A5 #7636D2 #9868DD #BA9AE8 #DCCCF3

Accessibility & contrast

On white

3.92
#9868DD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.36
#9868DD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9868DD
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9868DD#FFFFFF#000000##000000
##9868DD1.003.925.365.36
#FFFFFF3.921.0021.0021.00
#0000005.3621.001.001.00
##0000005.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#3C80E1
Deuteranopia (green-blind)
#4B80DA
Tritanopia (blue-blind)
#8A7F99
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #9868dd;
/* rgb */ color: rgb(152, 104, 221);
/* oklch */ color: oklch(62.0% 0.173 300.3);
Tailwind
colors: {
  custom: {
    50: '#ba94e8',
    500: '#9868dd',
    950: '#000000',
  },
}
SCSS
$custom: #9868dd;
$custom-light: #ba94e8;
$custom-dark: #000000;
JSON
{
  "hex": "#9868dd",
  "rgb": {
    "r": 152,
    "g": 104,
    "b": 221
  },
  "hsl": {
    "h": 264.615,
    "s": 63.243,
    "l": 63.725
  },
  "oklch": {
    "l": 0.61977,
    "c": 0.17349,
    "h": 300.3
  },
  "luminance": 0.21796
}

Semantic roles & 50–950 ramp

primary
#9868DD
secondary
#D4E5BC
accent
#CB1A83
background
#FBF9FE
surface
#F7F2FD
border
#D0CCD5
text
#120D16
muted
#817E84

Preview Lab

Preview with #9868DD

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

Preview Lab → · Contrast checker → · Palette generator →

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