#DC7DFC#DC7DFC

#DC7DFC is a light, vivid purple. Relative luminance 0.369; OKLCH L 74.1% C 0.198 H 317.0°. Best body text is #000000 at 8.38:1 contrast (WCAG AA passes).

Color values

HEX#DC7DFC
RGBrgb(220, 125, 252)
HSLhsl(285, 95%, 74%)
HSVhsv(285, 50%, 99%)
CMYKcmyk(12.7%, 50.4%, 0%, 1.2%)
CIE-LABlab(67.21, 56.51, -48.53)
CIE-LCHlch(67.21, 74.49, 319.34°)
OKLaboklab(74.09% 0.1448 -0.1349)
OKLCHoklch(74.09% 0.198 317)
XYZxyz(54.4170, 36.9130, 96.3350)
Luminance0.3691 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DC7DFC #9DFC7D
analogous
#9D7DFC #DC7DFC #FC7DDD
triadic
#DC7DFC #FCDC7D #7DFCDC
tetradic
#DC7DFC #FC9D7D #9DFC7D #7DDDFC
square
#DC7DFC #FC9D7D #9DFC7D #7DDDFC
split-complementary
#DC7DFC #DDFC7D #7DFC9D
monochromatic
#BC06F9 #CC41FB #DC7DFC #ECB9FD #F7E1FE

Accessibility & contrast

On white

2.51
#DC7DFC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.38
#DC7DFC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DC7DFC
8.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DC7DFC#FFFFFF#000000##000000
##DC7DFC1.002.518.388.38
#FFFFFF2.511.0021.0021.00
#0000008.3821.001.001.00
##0000008.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#639EFF
Deuteranopia (green-blind)
#80A7F9
Tritanopia (blue-blind)
#DB90B1
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #dc7dfc;
/* rgb */ color: rgb(220, 125, 252);
/* oklch */ color: oklch(74.1% 0.198 317.0);
Tailwind
colors: {
  custom: {
    50: '#e9a6fe',
    500: '#dc7dfc',
    950: '#000000',
  },
}
SCSS
$custom: #dc7dfc;
$custom-light: #e9a6fe;
$custom-dark: #000000;
JSON
{
  "hex": "#dc7dfc",
  "rgb": {
    "r": 220,
    "g": 125,
    "b": 252
  },
  "hsl": {
    "h": 284.882,
    "s": 95.489,
    "l": 73.922
  },
  "oklch": {
    "l": 0.74089,
    "c": 0.19792,
    "h": 317
  },
  "luminance": 0.36911
}

Semantic roles & 50–950 ramp

primary
#DC7DFC
secondary
#DDF7D4
accent
#E6003A
background
#FEFAFF
surface
#FDF4FF
border
#D5CED7
text
#161018
muted
#847F86

Preview Lab

Preview with #DC7DFC

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

Preview Lab → · Contrast checker → · Palette generator →

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