#DF42E2#DF42E2

#DF42E2 is a light, highly saturated purple. Relative luminance 0.251; OKLCH L 66.4% C 0.256 H 327.2°. Best body text is #000000 at 6.01:1 contrast (WCAG AA passes).

Color values

HEX#DF42E2
RGBrgb(223, 66, 226)
HSLhsl(299, 73%, 57%)
HSVhsv(299, 71%, 89%)
CMYKcmyk(1.3%, 70.8%, 0%, 11.4%)
CIE-LABlab(57.15, 77.56, -49.99)
CIE-LCHlch(57.15, 92.27, 327.19°)
OKLaboklab(66.42% 0.215 -0.1387)
OKLCHoklch(66.42% 0.256 327.2)
XYZxyz(46.1064, 25.0786, 74.3490)
Luminance0.2507 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DF42E2 #45E242
analogous
#8F42E2 #DF42E2 #E24295
triadic
#DF42E2 #E2DF42 #42E2DF
tetradic
#DF42E2 #E28F42 #45E242 #4295E2
square
#DF42E2 #E28F42 #45E242 #4295E2
split-complementary
#DF42E2 #95E242 #42E28F
monochromatic
#911793 #C51FC8 #DF42E2 #E877EA #F1ACF2

Accessibility & contrast

On white

3.49
#DF42E2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.01
#DF42E2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #DF42E2
6.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DF42E2#FFFFFF#000000##000000
##DF42E21.003.496.016.01
#FFFFFF3.491.0021.0021.00
#0000006.0121.001.001.00
##0000006.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#1F7CE6
Deuteranopia (green-blind)
#6A90DE
Tritanopia (blue-blind)
#E55B8E
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #df42e2;
/* rgb */ color: rgb(223, 66, 226);
/* oklch */ color: oklch(66.4% 0.256 327.2);
Tailwind
colors: {
  custom: {
    50: '#ed85ec',
    500: '#df42e2',
    950: '#000000',
  },
}
SCSS
$custom: #df42e2;
$custom-light: #ed85ec;
$custom-dark: #000000;
JSON
{
  "hex": "#df42e2",
  "rgb": {
    "r": 223,
    "g": 66,
    "b": 226
  },
  "hsl": {
    "h": 298.875,
    "s": 73.394,
    "l": 57.255
  },
  "oklch": {
    "l": 0.66424,
    "c": 0.25584,
    "h": 327.2
  },
  "luminance": 0.25075
}

Semantic roles & 50–950 ramp

primary
#DF42E2
secondary
#A1E09F
accent
#F0383B
background
#FFF8FE
surface
#FEF0FD
border
#D6CBD5
text
#170C16
muted
#857D84

Preview Lab

Preview with #DF42E2

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

Preview Lab → · Contrast checker → · Palette generator →

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