#DF40E2#DF40E2

#DF40E2 is a light, highly saturated purple. Relative luminance 0.248; OKLCH L 66.3% C 0.258 H 327.2°. Best body text is #000000 at 5.97:1 contrast (WCAG AA passes).

Color values

HEX#DF40E2
RGBrgb(223, 64, 226)
HSLhsl(299, 74%, 57%)
HSVhsv(299, 72%, 89%)
CMYKcmyk(1.3%, 71.7%, 0%, 11.4%)
CIE-LABlab(56.93, 78.19, -50.35)
CIE-LCHlch(56.93, 93.00, 327.22°)
OKLaboklab(66.26% 0.2168 -0.1397)
OKLCHoklch(66.26% 0.258 327.2)
XYZxyz(45.9916, 24.8490, 74.3107)
Luminance0.2485 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DF40E2 #43E240
analogous
#8E40E2 #DF40E2 #E24094
triadic
#DF40E2 #E2DF40 #40E2DF
tetradic
#DF40E2 #E28E40 #43E240 #4094E2
square
#DF40E2 #E28E40 #43E240 #4094E2
split-complementary
#DF40E2 #94E240 #40E28E
monochromatic
#8F1692 #C41EC7 #DF40E2 #E875EA #F1AAF2

Accessibility & contrast

On white

3.52
#DF40E2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.97
#DF40E2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #DF40E2
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DF40E2#FFFFFF#000000##000000
##DF40E21.003.525.975.97
#FFFFFF3.521.0021.0021.00
#0000005.9721.001.001.00
##0000005.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#1A7CE6
Deuteranopia (green-blind)
#6990DE
Tritanopia (blue-blind)
#E55A8E
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #df40e2;
/* rgb */ color: rgb(223, 64, 226);
/* oklch */ color: oklch(66.3% 0.258 327.2);
Tailwind
colors: {
  custom: {
    50: '#ed84ec',
    500: '#df40e2',
    950: '#000000',
  },
}
SCSS
$custom: #df40e2;
$custom-light: #ed84ec;
$custom-dark: #000000;
JSON
{
  "hex": "#df40e2",
  "rgb": {
    "r": 223,
    "g": 64,
    "b": 226
  },
  "hsl": {
    "h": 298.889,
    "s": 73.636,
    "l": 56.863
  },
  "oklch": {
    "l": 0.66264,
    "c": 0.25791,
    "h": 327.2
  },
  "luminance": 0.24846
}

Semantic roles & 50–950 ramp

primary
#DF40E2
secondary
#9FE09E
accent
#F0383B
background
#FFF8FE
surface
#FEF0FD
border
#D6CBD5
text
#170C16
muted
#857D84

Preview Lab

Preview with #DF40E2

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

Preview Lab → · Contrast checker → · Palette generator →

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