#9861EB#9861EB

#9861EB is a mid, highly saturated violet. Relative luminance 0.212; OKLCH L 61.8% C 0.200 H 298.8°. Best body text is #000000 at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#9861EB
RGBrgb(152, 97, 235)
HSLhsl(264, 78%, 65%)
HSVhsv(264, 59%, 92%)
CMYKcmyk(35.3%, 58.7%, 0%, 7.8%)
CIE-LABlab(53.19, 50.37, -61.91)
CIE-LCHlch(53.19, 79.81, 309.13°)
OKLaboklab(61.79% 0.0964 -0.1757)
OKLCHoklch(61.79% 0.2 298.8)
XYZxyz(32.2153, 21.2226, 80.9803)
Luminance0.2122 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9861EB #B4EB61
analogous
#616FEB #9861EB #DD61EB
triadic
#9861EB #EB9861 #61EB98
tetradic
#9861EB #EB616F #B4EB61 #61EBDD
square
#9861EB #EB616F #B4EB61 #61EBDD
split-complementary
#9861EB #EBDD61 #6FEB61
monochromatic
#5818BA #752BE4 #9861EB #BB97F2 #DFCEF9

Accessibility & contrast

On white

4.00
#9861EB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.24
#9861EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9861EB
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9861EB#FFFFFF#000000##000000
##9861EB1.004.005.245.24
#FFFFFF4.001.0021.0021.00
#0000005.2421.001.001.00
##0000005.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#0B7FEF
Deuteranopia (green-blind)
#2F7EE8
Tritanopia (blue-blind)
#867E9D
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #9861eb;
/* rgb */ color: rgb(152, 97, 235);
/* oklch */ color: oklch(61.8% 0.200 298.8);
Tailwind
colors: {
  custom: {
    50: '#bb90f2',
    500: '#9861eb',
    950: '#000000',
  },
}
SCSS
$custom: #9861eb;
$custom-light: #bb90f2;
$custom-dark: #000000;
JSON
{
  "hex": "#9861eb",
  "rgb": {
    "r": 152,
    "g": 97,
    "b": 235
  },
  "hsl": {
    "h": 263.913,
    "s": 77.528,
    "l": 65.098
  },
  "oklch": {
    "l": 0.61792,
    "c": 0.20046,
    "h": 298.8
  },
  "luminance": 0.21223
}

Semantic roles & 50–950 ramp

primary
#9861EB
secondary
#D9EBBD
accent
#DA0C88
background
#FBF9FE
surface
#F7F1FD
border
#D0CBD5
text
#120D17
muted
#817E85

Preview Lab

Preview with #9861EB

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

Preview Lab → · Contrast checker → · Palette generator →

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