#9861DB#9861DB

#9861DB is a mid, vivid violet. Relative luminance 0.203; OKLCH L 60.8% C 0.182 H 302.1°. Best body text is #000000 at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#9861DB
RGBrgb(152, 97, 219)
HSLhsl(267, 63%, 62%)
HSVhsv(267, 56%, 86%)
CMYKcmyk(30.6%, 55.7%, 0%, 14.1%)
CIE-LABlab(52.22, 46.41, -54.46)
CIE-LCHlch(52.22, 71.55, 310.44°)
OKLaboklab(60.77% 0.0964 -0.1539)
OKLCHoklch(60.77% 0.182 302.1)
XYZxyz(30.0068, 20.3392, 69.3491)
Luminance0.2034 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9861DB #A4DB61
analogous
#6167DB #9861DB #D561DB
triadic
#9861DB #DB9861 #61DB98
tetradic
#9861DB #DB6167 #A4DB61 #61DBD5
square
#9861DB #DB6167 #A4DB61 #61DBD5
split-complementary
#9861DB #DBD561 #67DB61
monochromatic
#5B249E #782FD0 #9861DB #B893E6 #D9C5F2

Accessibility & contrast

On white

4.14
#9861DB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.07
#9861DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9861DB
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9861DB#FFFFFF#000000##000000
##9861DB1.004.145.075.07
#FFFFFF4.141.0021.0021.00
#0000005.0721.001.001.00
##0000005.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#2F7CDF
Deuteranopia (green-blind)
#437CD8
Tritanopia (blue-blind)
#8B7995
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #9861db;
/* rgb */ color: rgb(152, 97, 219);
/* oklch */ color: oklch(60.8% 0.182 302.1);
Tailwind
colors: {
  custom: {
    50: '#ba90e7',
    500: '#9861db',
    950: '#000000',
  },
}
SCSS
$custom: #9861db;
$custom-light: #ba90e7;
$custom-dark: #000000;
JSON
{
  "hex": "#9861db",
  "rgb": {
    "r": 152,
    "g": 97,
    "b": 219
  },
  "hsl": {
    "h": 267.049,
    "s": 62.887,
    "l": 61.961
  },
  "oklch": {
    "l": 0.60766,
    "c": 0.18159,
    "h": 302.1
  },
  "luminance": 0.20339
}

Semantic roles & 50–950 ramp

primary
#9861DB
secondary
#CEE2B5
accent
#CB1B7B
background
#FBF8FE
surface
#F7F0FC
border
#D0CBD5
text
#120D16
muted
#817D84

Preview Lab

Preview with #9861DB

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

Preview Lab → · Contrast checker → · Palette generator →

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