#DB7AFE#DB7AFE

#DB7AFE is a light, highly saturated purple. Relative luminance 0.361; OKLCH L 73.7% C 0.204 H 316.4°. Best body text is #000000 at 8.23:1 contrast (WCAG AA passes).

Color values

HEX#DB7AFE
RGBrgb(219, 122, 254)
HSLhsl(284, 99%, 74%)
HSVhsv(284, 52%, 100%)
CMYKcmyk(13.8%, 52%, 0%, 0.4%)
CIE-LABlab(66.62, 58.13, -50.56)
CIE-LCHlch(66.62, 77.04, 318.98°)
OKLaboklab(73.66% 0.1478 -0.1408)
OKLCHoklch(73.66% 0.204 316.4)
XYZxyz(54.0597, 36.1366, 97.8741)
Luminance0.3614 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DB7AFE #9DFE7A
analogous
#997AFE #DB7AFE #FE7ADF
triadic
#DB7AFE #FEDB7A #7AFEDB
tetradic
#DB7AFE #FE997A #9DFE7A #7ADFFE
square
#DB7AFE #FE997A #9DFE7A #7ADFFE
split-complementary
#DB7AFE #DFFE7A #7AFE99
monochromatic
#B902FC #CB3DFE #DB7AFE #EBB7FE #F7E1FF

Accessibility & contrast

On white

2.55
#DB7AFE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.23
#DB7AFE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DB7AFE
8.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DB7AFE#FFFFFF#000000##000000
##DB7AFE1.002.558.238.23
#FFFFFF2.551.0021.0021.00
#0000008.2321.001.001.00
##0000008.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#5D9CFF
Deuteranopia (green-blind)
#7CA5FA
Tritanopia (blue-blind)
#D98EB1
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #db7afe;
/* rgb */ color: rgb(219, 122, 254);
/* oklch */ color: oklch(73.7% 0.204 316.4);
Tailwind
colors: {
  custom: {
    50: '#e9a4ff',
    500: '#db7afe',
    950: '#000000',
  },
}
SCSS
$custom: #db7afe;
$custom-light: #e9a4ff;
$custom-dark: #000000;
JSON
{
  "hex": "#db7afe",
  "rgb": {
    "r": 219,
    "g": 122,
    "b": 254
  },
  "hsl": {
    "h": 284.091,
    "s": 98.507,
    "l": 73.725
  },
  "oklch": {
    "l": 0.73662,
    "c": 0.20413,
    "h": 316.4
  },
  "luminance": 0.36135
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #DB7AFE

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

Preview Lab → · Contrast checker → · Palette generator →

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