#DC7EF2#DC7EF2

#DC7EF2 is a light, vivid purple. Relative luminance 0.365; OKLCH L 73.7% C 0.186 H 319.8°. Best body text is #000000 at 8.31:1 contrast (WCAG AA passes).

Color values

HEX#DC7EF2
RGBrgb(220, 126, 242)
HSLhsl(289, 82%, 72%)
HSVhsv(289, 48%, 95%)
CMYKcmyk(9.1%, 47.9%, 0%, 5.1%)
CIE-LABlab(66.94, 54.05, -43.48)
CIE-LCHlch(66.94, 69.37, 321.19°)
OKLaboklab(73.74% 0.1423 -0.1203)
OKLCHoklch(73.74% 0.186 319.8)
XYZxyz(53.0011, 36.5502, 88.2502)
Luminance0.3655 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DC7EF2 #94F27E
analogous
#A27EF2 #DC7EF2 #F27ECE
triadic
#DC7EF2 #F2DC7E #7EF2DC
tetradic
#DC7EF2 #F2A27E #94F27E #7ECEF2
square
#DC7EF2 #F2A27E #94F27E #7ECEF2
split-complementary
#DC7EF2 #CEF27E #7EF2A2
monochromatic
#B916DF #CD46EC #DC7EF2 #EBB6F8 #F7E3FC

Accessibility & contrast

On white

2.53
#DC7EF2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.31
#DC7EF2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DC7EF2
8.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DC7EF2#FFFFFF#000000##000000
##DC7EF21.002.538.318.31
#FFFFFF2.531.0021.0021.00
#0000008.3121.001.001.00
##0000008.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#6B9CF6
Deuteranopia (green-blind)
#86A6EF
Tritanopia (blue-blind)
#DD8EAD
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #dc7ef2;
/* rgb */ color: rgb(220, 126, 242);
/* oklch */ color: oklch(73.7% 0.186 319.8);
Tailwind
colors: {
  custom: {
    50: '#e9a6f7',
    500: '#dc7ef2',
    950: '#000000',
  },
}
SCSS
$custom: #dc7ef2;
$custom-light: #e9a6f7;
$custom-dark: #000000;
JSON
{
  "hex": "#dc7ef2",
  "rgb": {
    "r": 220,
    "g": 126,
    "b": 242
  },
  "hsl": {
    "h": 288.621,
    "s": 81.69,
    "l": 72.157
  },
  "oklch": {
    "l": 0.73735,
    "c": 0.18629,
    "h": 319.8
  },
  "luminance": 0.36548
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #DC7EF2

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

Preview Lab → · Contrast checker → · Palette generator →

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