#9868DB#9868DB

#9868DB is a mid, vivid violet. Relative luminance 0.217; OKLCH L 61.9% C 0.171 H 300.8°. Best body text is #000000 at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#9868DB
RGBrgb(152, 104, 219)
HSLhsl(265, 61%, 63%)
HSVhsv(265, 53%, 86%)
CMYKcmyk(30.6%, 52.5%, 0%, 14.1%)
CIE-LABlab(53.70, 42.58, -52.10)
CIE-LCHlch(53.70, 67.28, 309.26°)
OKLaboklab(61.86% 0.0875 -0.1469)
OKLCHoklch(61.86% 0.171 300.8)
XYZxyz(30.6824, 21.6904, 69.5743)
Luminance0.2169 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9868DB #ABDB68
analogous
#6871DB #9868DB #D168DB
triadic
#9868DB #DB9868 #68DB98
tetradic
#9868DB #DB6871 #ABDB68 #68DBD1
square
#9868DB #DB6871 #ABDB68 #68DBD1
split-complementary
#9868DB #DBD168 #71DB68
monochromatic
#5A27A2 #7637CF #9868DB #BA99E7 #DBCBF3

Accessibility & contrast

On white

3.93
#9868DB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.34
#9868DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9868DB
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9868DB#FFFFFF#000000##000000
##9868DB1.003.935.345.34
#FFFFFF3.931.0021.0021.00
#0000005.3421.001.001.00
##0000005.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#3E80DF
Deuteranopia (green-blind)
#4C80D8
Tritanopia (blue-blind)
#8B7E98
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #9868db;
/* rgb */ color: rgb(152, 104, 219);
/* oklch */ color: oklch(61.9% 0.171 300.8);
Tailwind
colors: {
  custom: {
    50: '#b994e7',
    500: '#9868db',
    950: '#000000',
  },
}
SCSS
$custom: #9868db;
$custom-light: #b994e7;
$custom-dark: #000000;
JSON
{
  "hex": "#9868db",
  "rgb": {
    "r": 152,
    "g": 104,
    "b": 219
  },
  "hsl": {
    "h": 265.043,
    "s": 61.497,
    "l": 63.333
  },
  "oklch": {
    "l": 0.61857,
    "c": 0.17105,
    "h": 300.8
  },
  "luminance": 0.21691
}

Semantic roles & 50–950 ramp

primary
#9868DB
secondary
#D3E4BB
accent
#C91C81
background
#FBF9FE
surface
#F6F2FC
border
#D0CCD5
text
#120D16
muted
#817E84

Preview Lab

Preview with #9868DB

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

Preview Lab → · Contrast checker → · Palette generator →

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