#DC42E2#DC42E2

#DC42E2 is a light, highly saturated purple. Relative luminance 0.246; OKLCH L 66.0% C 0.254 H 326.4°. Best body text is #000000 at 5.92:1 contrast (WCAG AA passes).

Color values

HEX#DC42E2
RGBrgb(220, 66, 226)
HSLhsl(298, 73%, 57%)
HSVhsv(298, 71%, 89%)
CMYKcmyk(2.7%, 70.8%, 0%, 11.4%)
CIE-LABlab(56.69, 76.93, -50.76)
CIE-LCHlch(56.69, 92.16, 326.58°)
OKLaboklab(66% 0.2119 -0.1409)
OKLCHoklch(66% 0.254 326.4)
XYZxyz(45.1900, 24.6061, 74.3060)
Luminance0.2460 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DC42E2 #48E242
analogous
#8C42E2 #DC42E2 #E24298
triadic
#DC42E2 #E2DC42 #42E2DC
tetradic
#DC42E2 #E28C42 #48E242 #4298E2
square
#DC42E2 #E28C42 #48E242 #4298E2
split-complementary
#DC42E2 #98E242 #42E28C
monochromatic
#8E1793 #C21FC8 #DC42E2 #E677EA #F0ACF2

Accessibility & contrast

On white

3.55
#DC42E2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.92
#DC42E2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #DC42E2
5.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DC42E2#FFFFFF#000000##000000
##DC42E21.003.555.925.92
#FFFFFF3.551.0021.0021.00
#0000005.9221.001.001.00
##0000005.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#1A7CE6
Deuteranopia (green-blind)
#678FDE
Tritanopia (blue-blind)
#E25C8E
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #dc42e2;
/* rgb */ color: rgb(220, 66, 226);
/* oklch */ color: oklch(66.0% 0.254 326.4);
Tailwind
colors: {
  custom: {
    50: '#eb84ec',
    500: '#dc42e2',
    950: '#000000',
  },
}
SCSS
$custom: #dc42e2;
$custom-light: #eb84ec;
$custom-dark: #000000;
JSON
{
  "hex": "#dc42e2",
  "rgb": {
    "r": 220,
    "g": 66,
    "b": 226
  },
  "hsl": {
    "h": 297.75,
    "s": 73.394,
    "l": 57.255
  },
  "oklch": {
    "l": 0.66003,
    "c": 0.25448,
    "h": 326.4
  },
  "luminance": 0.24603
}

Semantic roles & 50–950 ramp

primary
#DC42E2
secondary
#A2E09F
accent
#F0383F
background
#FEF8FE
surface
#FDF0FD
border
#D5CBD5
text
#170C16
muted
#857D84

Preview Lab

Preview with #DC42E2

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

Preview Lab → · Contrast checker → · Palette generator →

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