#9865DB#9865DB

#9865DB is a mid, vivid violet. Relative luminance 0.211; OKLCH L 61.4% C 0.176 H 301.4°. Best body text is #000000 at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#9865DB
RGBrgb(152, 101, 219)
HSLhsl(266, 62%, 63%)
HSVhsv(266, 54%, 86%)
CMYKcmyk(30.6%, 53.9%, 0%, 14.1%)
CIE-LABlab(53.06, 44.23, -53.12)
CIE-LCHlch(53.06, 69.12, 309.78°)
OKLaboklab(61.38% 0.0914 -0.1499)
OKLCHoklch(61.38% 0.176 301.4)
XYZxyz(30.3858, 21.0971, 69.4754)
Luminance0.2110 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9865DB #A8DB65
analogous
#656DDB #9865DB #D365DB
triadic
#9865DB #DB9865 #65DB98
tetradic
#9865DB #DB656D #A8DB65 #65DBD3
square
#9865DB #DB656D #A8DB65 #65DBD3
split-complementary
#9865DB #DBD365 #6DDB65
monochromatic
#5A25A0 #7733CF #9865DB #B997E7 #DAC8F2

Accessibility & contrast

On white

4.02
#9865DB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.22
#9865DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9865DB
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9865DB#FFFFFF#000000##000000
##9865DB1.004.025.225.22
#FFFFFF4.021.0021.0021.00
#0000005.2221.001.001.00
##0000005.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#387EDF
Deuteranopia (green-blind)
#497ED8
Tritanopia (blue-blind)
#8B7C96
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #9865db;
/* rgb */ color: rgb(152, 101, 219);
/* oklch */ color: oklch(61.4% 0.176 301.4);
Tailwind
colors: {
  custom: {
    50: '#ba92e7',
    500: '#9865db',
    950: '#000000',
  },
}
SCSS
$custom: #9865db;
$custom-light: #ba92e7;
$custom-dark: #000000;
JSON
{
  "hex": "#9865db",
  "rgb": {
    "r": 152,
    "g": 101,
    "b": 219
  },
  "hsl": {
    "h": 265.932,
    "s": 62.105,
    "l": 62.745
  },
  "oklch": {
    "l": 0.61383,
    "c": 0.1756,
    "h": 301.4
  },
  "luminance": 0.21097
}

Semantic roles & 50–950 ramp

primary
#9865DB
secondary
#D1E3B9
accent
#CA1C7F
background
#FBF9FE
surface
#F7F1FC
border
#D0CBD5
text
#120D16
muted
#817E84

Preview Lab

Preview with #9865DB

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

Preview Lab → · Contrast checker → · Palette generator →

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