#DC7EFE#DC7EFE

#DC7EFE is a light, vivid purple. Relative luminance 0.373; OKLCH L 74.3% C 0.198 H 316.4°. Best body text is #000000 at 8.46:1 contrast (WCAG AA passes).

Color values

HEX#DC7EFE
RGBrgb(220, 126, 254)
HSLhsl(284, 98%, 75%)
HSVhsv(284, 50%, 100%)
CMYKcmyk(13.4%, 50.4%, 0%, 0.4%)
CIE-LABlab(67.50, 56.41, -49.18)
CIE-LCHlch(67.50, 74.83, 318.92°)
OKLaboklab(74.33% 0.1437 -0.1368)
OKLCHoklch(74.33% 0.198 316.4)
XYZxyz(54.8628, 37.2949, 98.0553)
Luminance0.3729 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DC7EFE #A0FE7E
analogous
#9C7EFE #DC7EFE #FE7EE0
triadic
#DC7EFE #FEDC7E #7EFEDC
tetradic
#DC7EFE #FE9C7E #A0FE7E #7EE0FE
square
#DC7EFE #FE9C7E #A0FE7E #7EE0FE
split-complementary
#DC7EFE #E0FE7E #7EFE9C
monochromatic
#BB05FD #CC41FE #DC7EFE #ECBBFE #F7E1FF

Accessibility & contrast

On white

2.48
#DC7EFE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.46
#DC7EFE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DC7EFE
8.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DC7EFE#FFFFFF#000000##000000
##DC7EFE1.002.488.468.46
#FFFFFF2.481.0021.0021.00
#0000008.4621.001.001.00
##0000008.4621.001.001.00

Color blindness preview

Protanopia (red-blind)
#639FFF
Deuteranopia (green-blind)
#80A7FB
Tritanopia (blue-blind)
#DB91B3
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #dc7efe;
/* rgb */ color: rgb(220, 126, 254);
/* oklch */ color: oklch(74.3% 0.198 316.4);
Tailwind
colors: {
  custom: {
    50: '#e9a6ff',
    500: '#dc7efe',
    950: '#000000',
  },
}
SCSS
$custom: #dc7efe;
$custom-light: #e9a6ff;
$custom-dark: #000000;
JSON
{
  "hex": "#dc7efe",
  "rgb": {
    "r": 220,
    "g": 126,
    "b": 254
  },
  "hsl": {
    "h": 284.063,
    "s": 98.462,
    "l": 74.51
  },
  "oklch": {
    "l": 0.74332,
    "c": 0.1984,
    "h": 316.4
  },
  "luminance": 0.37293
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #DC7EFE

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

Preview Lab → · Contrast checker → · Palette generator →

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