#9867DB#9867DB

#9867DB is a mid, vivid violet. Relative luminance 0.215; OKLCH L 61.7% C 0.173 H 301.0°. Best body text is #000000 at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#9867DB
RGBrgb(152, 103, 219)
HSLhsl(265, 62%, 63%)
HSVhsv(265, 53%, 86%)
CMYKcmyk(30.6%, 53%, 0%, 14.1%)
CIE-LABlab(53.48, 43.13, -52.44)
CIE-LCHlch(53.48, 67.90, 309.44°)
OKLaboklab(61.7% 0.0888 -0.1479)
OKLCHoklch(61.7% 0.173 301)
XYZxyz(30.5823, 21.4902, 69.5409)
Luminance0.2149 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9867DB #AADB67
analogous
#6770DB #9867DB #D267DB
triadic
#9867DB #DB9867 #67DB98
tetradic
#9867DB #DB6770 #AADB67 #67DBD2
square
#9867DB #DB6770 #AADB67 #67DBD2
split-complementary
#9867DB #DBD267 #70DB67
monochromatic
#5A26A1 #7636CF #9867DB #BA98E7 #DBCAF2

Accessibility & contrast

On white

3.96
#9867DB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.30
#9867DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9867DB
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9867DB#FFFFFF#000000##000000
##9867DB1.003.965.305.30
#FFFFFF3.961.0021.0021.00
#0000005.3021.001.001.00
##0000005.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#3C7FDF
Deuteranopia (green-blind)
#4B7FD8
Tritanopia (blue-blind)
#8B7D97
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #9867db;
/* rgb */ color: rgb(152, 103, 219);
/* oklch */ color: oklch(61.7% 0.173 301.0);
Tailwind
colors: {
  custom: {
    50: '#ba94e7',
    500: '#9867db',
    950: '#000000',
  },
}
SCSS
$custom: #9867db;
$custom-light: #ba94e7;
$custom-dark: #000000;
JSON
{
  "hex": "#9867db",
  "rgb": {
    "r": 152,
    "g": 103,
    "b": 219
  },
  "hsl": {
    "h": 265.345,
    "s": 61.702,
    "l": 63.137
  },
  "oklch": {
    "l": 0.61698,
    "c": 0.17257,
    "h": 301
  },
  "luminance": 0.2149
}

Semantic roles & 50–950 ramp

primary
#9867DB
secondary
#D2E4BA
accent
#C91C80
background
#FBF9FE
surface
#F6F1FC
border
#D0CBD5
text
#120D16
muted
#817E84

Preview Lab

Preview with #9867DB

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

Preview Lab → · Contrast checker → · Palette generator →

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