#DC7EFC#DC7EFC

#DC7EFC is a light, vivid purple. Relative luminance 0.372; OKLCH L 74.2% C 0.196 H 317.0°. Best body text is #000000 at 8.43:1 contrast (WCAG AA passes).

Color values

HEX#DC7EFC
RGBrgb(220, 126, 252)
HSLhsl(285, 95%, 74%)
HSVhsv(285, 50%, 99%)
CMYKcmyk(12.7%, 50%, 0%, 1.2%)
CIE-LABlab(67.40, 56.01, -48.23)
CIE-LCHlch(67.40, 73.91, 319.27°)
OKLaboklab(74.23% 0.1435 -0.134)
OKLCHoklch(74.23% 0.196 317)
XYZxyz(54.5442, 37.1674, 96.3774)
Luminance0.3717 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DC7EFC #9EFC7E
analogous
#9D7EFC #DC7EFC #FC7EDD
triadic
#DC7EFC #FCDC7E #7EFCDC
tetradic
#DC7EFC #FC9D7E #9EFC7E #7EDDFC
square
#DC7EFC #FC9D7E #9EFC7E #7EDDFC
split-complementary
#DC7EFC #DDFC7E #7EFC9D
monochromatic
#BC06F9 #CC42FB #DC7EFC #ECBAFD #F7E1FE

Accessibility & contrast

On white

2.49
#DC7EFC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.43
#DC7EFC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DC7EFC
8.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DC7EFC#FFFFFF#000000##000000
##DC7EFC1.002.498.438.43
#FFFFFF2.491.0021.0021.00
#0000008.4321.001.001.00
##0000008.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#659EFF
Deuteranopia (green-blind)
#81A7F9
Tritanopia (blue-blind)
#DB91B2
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #dc7efc;
/* rgb */ color: rgb(220, 126, 252);
/* oklch */ color: oklch(74.2% 0.196 317.0);
Tailwind
colors: {
  custom: {
    50: '#e9a6fe',
    500: '#dc7efc',
    950: '#000000',
  },
}
SCSS
$custom: #dc7efc;
$custom-light: #e9a6fe;
$custom-dark: #000000;
JSON
{
  "hex": "#dc7efc",
  "rgb": {
    "r": 220,
    "g": 126,
    "b": 252
  },
  "hsl": {
    "h": 284.762,
    "s": 95.455,
    "l": 74.118
  },
  "oklch": {
    "l": 0.74231,
    "c": 0.19637,
    "h": 317
  },
  "luminance": 0.37166
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #DC7EFC

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

Preview Lab → · Contrast checker → · Palette generator →

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