#DC7DF2#DC7DF2

#DC7DF2 is a light, vivid purple. Relative luminance 0.363; OKLCH L 73.6% C 0.188 H 319.9°. Best body text is #000000 at 8.26:1 contrast (WCAG AA passes).

Color values

HEX#DC7DF2
RGBrgb(220, 125, 242)
HSLhsl(289, 82%, 72%)
HSVhsv(289, 48%, 95%)
CMYKcmyk(9.1%, 48.3%, 0%, 5.1%)
CIE-LABlab(66.75, 54.56, -43.78)
CIE-LCHlch(66.75, 69.95, 321.25°)
OKLaboklab(73.59% 0.1436 -0.1211)
OKLCHoklch(73.59% 0.188 319.9)
XYZxyz(52.8738, 36.2957, 88.2078)
Luminance0.3629 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DC7DF2 #93F27D
analogous
#A27DF2 #DC7DF2 #F27DCE
triadic
#DC7DF2 #F2DC7D #7DF2DC
tetradic
#DC7DF2 #F2A27D #93F27D #7DCEF2
square
#DC7DF2 #F2A27D #93F27D #7DCEF2
split-complementary
#DC7DF2 #CEF27D #7DF2A2
monochromatic
#B916DE #CD45EC #DC7DF2 #EBB5F8 #F8E3FC

Accessibility & contrast

On white

2.54
#DC7DF2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.26
#DC7DF2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DC7DF2
8.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DC7DF2#FFFFFF#000000##000000
##DC7DF21.002.548.268.26
#FFFFFF2.541.0021.0021.00
#0000008.2621.001.001.00
##0000008.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#6A9CF6
Deuteranopia (green-blind)
#86A6EF
Tritanopia (blue-blind)
#DD8DAC
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #dc7df2;
/* rgb */ color: rgb(220, 125, 242);
/* oklch */ color: oklch(73.6% 0.188 319.9);
Tailwind
colors: {
  custom: {
    50: '#e9a5f7',
    500: '#dc7df2',
    950: '#000000',
  },
}
SCSS
$custom: #dc7df2;
$custom-light: #e9a5f7;
$custom-dark: #000000;
JSON
{
  "hex": "#dc7df2",
  "rgb": {
    "r": 220,
    "g": 125,
    "b": 242
  },
  "hsl": {
    "h": 288.718,
    "s": 81.818,
    "l": 71.961
  },
  "oklch": {
    "l": 0.73592,
    "c": 0.18789,
    "h": 319.9
  },
  "luminance": 0.36294
}

Semantic roles & 50–950 ramp

primary
#DC7DF2
secondary
#DCF4D7
accent
#DE0730
background
#FEFAFF
surface
#FDF4FE
border
#D5CED6
text
#161017
muted
#847F85

Preview Lab

Preview with #DC7DF2

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

Preview Lab → · Contrast checker → · Palette generator →

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