#DB7AFC#DB7AFC

#DB7AFC is a light, highly saturated purple. Relative luminance 0.360; OKLCH L 73.6% C 0.202 H 316.9°. Best body text is #000000 at 8.20:1 contrast (WCAG AA passes).

Color values

HEX#DB7AFC
RGBrgb(219, 122, 252)
HSLhsl(285, 96%, 73%)
HSVhsv(285, 52%, 99%)
CMYKcmyk(13.1%, 51.6%, 0%, 1.2%)
CIE-LABlab(66.53, 57.73, -49.62)
CIE-LCHlch(66.53, 76.13, 319.32°)
OKLaboklab(73.56% 0.1476 -0.138)
OKLCHoklch(73.56% 0.202 316.9)
XYZxyz(53.7411, 36.0092, 96.1962)
Luminance0.3601 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DB7AFC #9BFC7A
analogous
#9A7AFC #DB7AFC #FC7ADC
triadic
#DB7AFC #FCDB7A #7AFCDB
tetradic
#DB7AFC #FC9A7A #9BFC7A #7ADCFC
square
#DB7AFC #FC9A7A #9BFC7A #7ADCFC
split-complementary
#DB7AFC #DCFC7A #7AFC9A
monochromatic
#B906F6 #CB3EFB #DB7AFC #EBB6FD #F7E1FE

Accessibility & contrast

On white

2.56
#DB7AFC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.20
#DB7AFC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DB7AFC
8.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DB7AFC#FFFFFF#000000##000000
##DB7AFC1.002.568.208.20
#FFFFFF2.561.0021.0021.00
#0000008.2021.001.001.00
##0000008.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#5F9CFF
Deuteranopia (green-blind)
#7DA5F9
Tritanopia (blue-blind)
#DA8EB0
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #db7afc;
/* rgb */ color: rgb(219, 122, 252);
/* oklch */ color: oklch(73.6% 0.202 316.9);
Tailwind
colors: {
  custom: {
    50: '#e9a4fe',
    500: '#db7afc',
    950: '#000000',
  },
}
SCSS
$custom: #db7afc;
$custom-light: #e9a4fe;
$custom-dark: #000000;
JSON
{
  "hex": "#db7afc",
  "rgb": {
    "r": 219,
    "g": 122,
    "b": 252
  },
  "hsl": {
    "h": 284.769,
    "s": 95.588,
    "l": 73.333
  },
  "oklch": {
    "l": 0.73558,
    "c": 0.20211,
    "h": 316.9
  },
  "luminance": 0.36007
}

Semantic roles & 50–950 ramp

primary
#DB7AFC
secondary
#DDF7D4
accent
#E6003A
background
#FEFAFF
surface
#FDF4FF
border
#D5CED7
text
#160F18
muted
#847F86

Preview Lab

Preview with #DB7AFC

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

Preview Lab → · Contrast checker → · Palette generator →

#DB7AFC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva