#9872DB#9872DB

#9872DB is a light, vivid violet. Relative luminance 0.238; OKLCH L 63.5% C 0.156 H 298.6°. Best body text is #000000 at 5.77:1 contrast (WCAG AA passes).

Color values

HEX#9872DB
RGBrgb(152, 114, 219)
HSLhsl(262, 59%, 65%)
HSVhsv(262, 48%, 86%)
CMYKcmyk(30.6%, 47.9%, 0%, 14.1%)
CIE-LABlab(55.91, 36.96, -48.57)
CIE-LCHlch(55.91, 61.04, 307.27°)
OKLaboklab(63.51% 0.0745 -0.1366)
OKLCHoklch(63.51% 0.156 298.6)
XYZxyz(31.7493, 23.8242, 69.9299)
Luminance0.2382 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9872DB #B5DB72
analogous
#7281DB #9872DB #CC72DB
triadic
#9872DB #DB9872 #72DB98
tetradic
#9872DB #DB7281 #B5DB72 #72DBCC
square
#9872DB #DB7281 #B5DB72 #72DBCC
split-complementary
#9872DB #DBCC72 #81DB72
monochromatic
#582BA8 #7441CF #9872DB #BCA3E7 #DFD4F4

Accessibility & contrast

On white

3.64
#9872DB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.77
#9872DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9872DB
5.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9872DB#FFFFFF#000000##000000
##9872DB1.003.645.775.77
#FFFFFF3.641.0021.0021.00
#0000005.7721.001.001.00
##0000005.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#5086DF
Deuteranopia (green-blind)
#5885D8
Tritanopia (blue-blind)
#8A869C
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #9872db;
/* rgb */ color: rgb(152, 114, 219);
/* oklch */ color: oklch(63.5% 0.156 298.6);
Tailwind
colors: {
  custom: {
    50: '#b99be7',
    500: '#9872db',
    950: '#000000',
  },
}
SCSS
$custom: #9872db;
$custom-light: #b99be7;
$custom-dark: #000000;
JSON
{
  "hex": "#9872db",
  "rgb": {
    "r": 152,
    "g": 114,
    "b": 219
  },
  "hsl": {
    "h": 261.714,
    "s": 59.322,
    "l": 65.294
  },
  "oklch": {
    "l": 0.63505,
    "c": 0.15561,
    "h": 298.6
  },
  "luminance": 0.23825
}

Semantic roles & 50–950 ramp

primary
#9872DB
secondary
#D9E6C3
accent
#C71F8A
background
#FBF9FE
surface
#F6F2FC
border
#D0CCD5
text
#120E16
muted
#817E84

Preview Lab

Preview with #9872DB

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

Preview Lab → · Contrast checker → · Palette generator →

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