#DC7AF8#DC7AF8

#DC7AF8 is a light, vivid purple. Relative luminance 0.359; OKLCH L 73.5% C 0.199 H 318.3°. Best body text is #000000 at 8.18:1 contrast (WCAG AA passes).

Color values

HEX#DC7AF8
RGBrgb(220, 122, 248)
HSLhsl(287, 90%, 73%)
HSVhsv(287, 51%, 97%)
CMYKcmyk(11.3%, 50.8%, 0%, 2.7%)
CIE-LABlab(66.45, 57.21, -47.53)
CIE-LCHlch(66.45, 74.38, 320.28°)
OKLaboklab(73.47% 0.1484 -0.132)
OKLCHoklch(73.47% 0.199 318.3)
XYZxyz(53.4157, 35.9140, 92.9071)
Luminance0.3591 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DC7AF8 #96F87A
analogous
#9D7AF8 #DC7AF8 #F87AD5
triadic
#DC7AF8 #F8DC7A #7AF8DC
tetradic
#DC7AF8 #F89D7A #96F87A #7AD5F8
square
#DC7AF8 #F89D7A #96F87A #7AD5F8
split-complementary
#DC7AF8 #D5F87A #7AF89D
monochromatic
#BA0CEB #CD40F5 #DC7AF8 #EBB4FB #F7E2FD

Accessibility & contrast

On white

2.57
#DC7AF8 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.18
#DC7AF8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DC7AF8
8.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DC7AF8#FFFFFF#000000##000000
##DC7AF81.002.578.188.18
#FFFFFF2.571.0021.0021.00
#0000008.1821.001.001.00
##0000008.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#629BFC
Deuteranopia (green-blind)
#80A5F5
Tritanopia (blue-blind)
#DC8CAE
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #dc7af8;
/* rgb */ color: rgb(220, 122, 248);
/* oklch */ color: oklch(73.5% 0.199 318.3);
Tailwind
colors: {
  custom: {
    50: '#e9a4fb',
    500: '#dc7af8',
    950: '#000000',
  },
}
SCSS
$custom: #dc7af8;
$custom-light: #e9a4fb;
$custom-dark: #000000;
JSON
{
  "hex": "#dc7af8",
  "rgb": {
    "r": 220,
    "g": 122,
    "b": 248
  },
  "hsl": {
    "h": 286.667,
    "s": 90,
    "l": 72.549
  },
  "oklch": {
    "l": 0.73468,
    "c": 0.19857,
    "h": 318.3
  },
  "luminance": 0.35912
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #DC7AF8

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

Preview Lab → · Contrast checker → · Palette generator →

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