#DC7DEF#DC7DEF

#DC7DEF is a light, vivid purple. Relative luminance 0.361; OKLCH L 73.4% C 0.185 H 320.8°. Best body text is #000000 at 8.22:1 contrast (WCAG AA passes).

Color values

HEX#DC7DEF
RGBrgb(220, 125, 239)
HSLhsl(290, 78%, 71%)
HSVhsv(290, 48%, 94%)
CMYKcmyk(7.9%, 47.7%, 0%, 6.3%)
CIE-LABlab(66.61, 53.98, -42.34)
CIE-LCHlch(66.61, 68.61, 321.89°)
OKLaboklab(73.45% 0.1432 -0.117)
OKLCHoklch(73.45% 0.185 320.8)
XYZxyz(52.4270, 36.1169, 85.8543)
Luminance0.3612 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DC7DEF #90EF7D
analogous
#A37DEF #DC7DEF #EF7DC9
triadic
#DC7DEF #EFDC7D #7DEFDC
tetradic
#DC7DEF #EFA37D #90EF7D #7DC9EF
square
#DC7DEF #EFA37D #90EF7D #7DC9EF
split-complementary
#DC7DEF #C9EF7D #7DEFA3
monochromatic
#B81AD7 #CD47E8 #DC7DEF #EBB3F6 #F8E4FC

Accessibility & contrast

On white

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

On black

8.22
#DC7DEF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DC7DEF
8.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DC7DEF#FFFFFF#000000##000000
##DC7DEF1.002.558.228.22
#FFFFFF2.551.0021.0021.00
#0000008.2221.001.001.00
##0000008.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#6B9BF3
Deuteranopia (green-blind)
#87A6EC
Tritanopia (blue-blind)
#DE8CAB
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #dc7def;
/* rgb */ color: rgb(220, 125, 239);
/* oklch */ color: oklch(73.4% 0.185 320.8);
Tailwind
colors: {
  custom: {
    50: '#e9a5f4',
    500: '#dc7def',
    950: '#000000',
  },
}
SCSS
$custom: #dc7def;
$custom-light: #e9a5f4;
$custom-dark: #000000;
JSON
{
  "hex": "#dc7def",
  "rgb": {
    "r": 220,
    "g": 125,
    "b": 239
  },
  "hsl": {
    "h": 290,
    "s": 78.082,
    "l": 71.373
  },
  "oklch": {
    "l": 0.73447,
    "c": 0.18492,
    "h": 320.8
  },
  "luminance": 0.36115
}

Semantic roles & 50–950 ramp

primary
#DC7DEF
secondary
#DAF3D5
accent
#DA0B2E
background
#FEFAFE
surface
#FDF4FD
border
#D5CED5
text
#160F17
muted
#847F85

Preview Lab

Preview with #DC7DEF

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

Preview Lab → · Contrast checker → · Palette generator →

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