#9868EB#9868EB

#9868EB is a light, vivid violet. Relative luminance 0.226; OKLCH L 62.8% C 0.191 H 297.5°. Best body text is #000000 at 5.51:1 contrast (WCAG AA passes).

Color values

HEX#9868EB
RGBrgb(152, 104, 235)
HSLhsl(262, 77%, 66%)
HSVhsv(262, 56%, 92%)
CMYKcmyk(35.3%, 55.7%, 0%, 7.8%)
CIE-LABlab(54.63, 46.59, -59.60)
CIE-LCHlch(54.63, 75.65, 308.02°)
OKLaboklab(62.85% 0.0881 -0.1689)
OKLCHoklch(62.85% 0.191 297.5)
XYZxyz(32.8909, 22.5737, 81.2055)
Luminance0.2257 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9868EB #BBEB68
analogous
#687AEB #9868EB #DA68EB
triadic
#9868EB #EB9868 #68EB98
tetradic
#9868EB #EB687A #BBEB68 #68EBDA
square
#9868EB #EB687A #BBEB68 #68EBDA
split-complementary
#9868EB #EBDA68 #7AEB68
monochromatic
#5619BF #7332E4 #9868EB #BD9EF2 #E2D4F9

Accessibility & contrast

On white

3.81
#9868EB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.51
#9868EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9868EB
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9868EB#FFFFFF#000000##000000
##9868EB1.003.815.515.51
#FFFFFF3.811.0021.0021.00
#0000005.5121.001.001.00
##0000005.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#2A83EF
Deuteranopia (green-blind)
#3C81E8
Tritanopia (blue-blind)
#8583A0
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #9868eb;
/* rgb */ color: rgb(152, 104, 235);
/* oklch */ color: oklch(62.8% 0.191 297.5);
Tailwind
colors: {
  custom: {
    50: '#bb95f2',
    500: '#9868eb',
    950: '#000000',
  },
}
SCSS
$custom: #9868eb;
$custom-light: #bb95f2;
$custom-dark: #000000;
JSON
{
  "hex": "#9868eb",
  "rgb": {
    "r": 152,
    "g": 104,
    "b": 235
  },
  "hsl": {
    "h": 261.985,
    "s": 76.608,
    "l": 66.471
  },
  "oklch": {
    "l": 0.62847,
    "c": 0.19055,
    "h": 297.5
  },
  "luminance": 0.22574
}

Semantic roles & 50–950 ramp

primary
#9868EB
secondary
#DDEDC2
accent
#D90D8E
background
#FBF9FE
surface
#F7F2FD
border
#D0CCD5
text
#120D17
muted
#817E85

Preview Lab

Preview with #9868EB

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

Preview Lab → · Contrast checker → · Palette generator →

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