#DB7AF8#DB7AF8

#DB7AF8 is a light, vivid purple. Relative luminance 0.358; OKLCH L 73.4% C 0.198 H 318.0°. Best body text is #000000 at 8.15:1 contrast (WCAG AA passes).

Color values

HEX#DB7AF8
RGBrgb(219, 122, 248)
HSLhsl(286, 90%, 73%)
HSVhsv(286, 51%, 97%)
CMYKcmyk(11.7%, 50.8%, 0%, 2.7%)
CIE-LABlab(66.33, 56.95, -47.73)
CIE-LCHlch(66.33, 74.30, 320.03°)
OKLaboklab(73.35% 0.1472 -0.1326)
OKLCHoklch(73.35% 0.198 318)
XYZxyz(53.1139, 35.7583, 92.8929)
Luminance0.3576 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DB7AF8 #97F87A
analogous
#9C7AF8 #DB7AF8 #F87AD6
triadic
#DB7AF8 #F8DB7A #7AF8DB
tetradic
#DB7AF8 #F89C7A #97F87A #7AD6F8
square
#DB7AF8 #F89C7A #97F87A #7AD6F8
split-complementary
#DB7AF8 #D6F87A #7AF89C
monochromatic
#B80CEB #CB40F5 #DB7AF8 #EBB4FB #F7E2FD

Accessibility & contrast

On white

2.58
#DB7AF8 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.15
#DB7AF8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DB7AF8
8.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DB7AF8#FFFFFF#000000##000000
##DB7AF81.002.588.158.15
#FFFFFF2.581.0021.0021.00
#0000008.1521.001.001.00
##0000008.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#619BFC
Deuteranopia (green-blind)
#7FA5F5
Tritanopia (blue-blind)
#DB8CAE
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #db7af8;
/* rgb */ color: rgb(219, 122, 248);
/* oklch */ color: oklch(73.4% 0.198 318.0);
Tailwind
colors: {
  custom: {
    50: '#e8a4fb',
    500: '#db7af8',
    950: '#000000',
  },
}
SCSS
$custom: #db7af8;
$custom-light: #e8a4fb;
$custom-dark: #000000;
JSON
{
  "hex": "#db7af8",
  "rgb": {
    "r": 219,
    "g": 122,
    "b": 248
  },
  "hsl": {
    "h": 286.19,
    "s": 90,
    "l": 72.549
  },
  "oklch": {
    "l": 0.73354,
    "c": 0.1981,
    "h": 318
  },
  "luminance": 0.35756
}

Semantic roles & 50–950 ramp

primary
#DB7AF8
secondary
#DDF6D5
accent
#E60035
background
#FEFAFF
surface
#FDF4FF
border
#D5CED7
text
#160F17
muted
#847F85

Preview Lab

Preview with #DB7AF8

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

Preview Lab → · Contrast checker → · Palette generator →

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