#DC7DEC#DC7DEC

#DC7DEC is a light, vivid purple. Relative luminance 0.359; OKLCH L 73.3% C 0.182 H 321.7°. Best body text is #000000 at 8.19:1 contrast (WCAG AA passes).

Color values

HEX#DC7DEC
RGBrgb(220, 125, 236)
HSLhsl(291, 74%, 71%)
HSVhsv(291, 47%, 93%)
CMYKcmyk(6.8%, 47%, 0%, 7.5%)
CIE-LABlab(66.47, 53.41, -40.90)
CIE-LCHlch(66.47, 67.27, 322.56°)
OKLaboklab(73.3% 0.1428 -0.1128)
OKLCHoklch(73.3% 0.182 321.7)
XYZxyz(51.9874, 35.9411, 83.5395)
Luminance0.3594 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DC7DEC #8DEC7D
analogous
#A47DEC #DC7DEC #EC7DC5
triadic
#DC7DEC #ECDC7D #7DECDC
tetradic
#DC7DEC #ECA47D #8DEC7D #7DC5EC
square
#DC7DEC #ECA47D #8DEC7D #7DC5EC
split-complementary
#DC7DEC #C5EC7D #7DECA4
monochromatic
#B71ED0 #CE48E4 #DC7DEC #EAB2F4 #F8E4FB

Accessibility & contrast

On white

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

On black

8.19
#DC7DEC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DC7DEC
8.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DC7DEC#FFFFFF#000000##000000
##DC7DEC1.002.568.198.19
#FFFFFF2.561.0021.0021.00
#0000008.1921.001.001.00
##0000008.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#6D9BF0
Deuteranopia (green-blind)
#88A5E9
Tritanopia (blue-blind)
#DE8BAA
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #dc7dec;
/* rgb */ color: rgb(220, 125, 236);
/* oklch */ color: oklch(73.3% 0.182 321.7);
Tailwind
colors: {
  custom: {
    50: '#e9a5f2',
    500: '#dc7dec',
    950: '#000000',
  },
}
SCSS
$custom: #dc7dec;
$custom-light: #e9a5f2;
$custom-dark: #000000;
JSON
{
  "hex": "#dc7dec",
  "rgb": {
    "r": 220,
    "g": 125,
    "b": 236
  },
  "hsl": {
    "h": 291.351,
    "s": 74.497,
    "l": 70.784
  },
  "oklch": {
    "l": 0.73303,
    "c": 0.18197,
    "h": 321.7
  },
  "luminance": 0.35939
}

Semantic roles & 50–950 ramp

primary
#DC7DEC
secondary
#D8F1D3
accent
#D70F2C
background
#FEFAFE
surface
#FDF4FD
border
#D5CED5
text
#160F17
muted
#847F85

Preview Lab

Preview with #DC7DEC

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

Preview Lab → · Contrast checker → · Palette generator →

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