#D040DF#D040DF

#D040DF is a light, highly saturated purple. Relative luminance 0.224; OKLCH L 64.0% C 0.249 H 323.8°. Best body text is #000000 at 5.48:1 contrast (WCAG AA passes).

Color values

HEX#D040DF
RGBrgb(208, 64, 223)
HSLhsl(294, 71%, 56%)
HSVhsv(294, 71%, 87%)
CMYKcmyk(6.7%, 71.3%, 0%, 12.5%)
CIE-LABlab(54.46, 74.60, -52.73)
CIE-LCHlch(54.46, 91.36, 324.75°)
OKLaboklab(63.99% 0.201 -0.147)
OKLCHoklch(63.99% 0.249 323.8)
XYZxyz(41.1639, 22.4069, 71.9545)
Luminance0.2240 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D040DF #4FDF40
analogous
#8140DF #D040DF #DF409E
triadic
#D040DF #DFD040 #40DFD0
tetradic
#D040DF #DF8140 #4FDF40 #409EDF
square
#D040DF #DF8140 #4FDF40 #409EDF
split-complementary
#D040DF #9EDF40 #40DF81
monochromatic
#82188D #B220C1 #D040DF #DD74E8 #EAA9F1

Accessibility & contrast

On white

3.83
#D040DF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.48
#D040DF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D040DF
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D040DF#FFFFFF#000000##000000
##D040DF1.003.835.485.48
#FFFFFF3.831.0021.0021.00
#0000005.4821.001.001.00
##0000005.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#0077E3
Deuteranopia (green-blind)
#5C88DB
Tritanopia (blue-blind)
#D45C8C
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #d040df;
/* rgb */ color: rgb(208, 64, 223);
/* oklch */ color: oklch(64.0% 0.249 323.8);
Tailwind
colors: {
  custom: {
    50: '#e282ea',
    500: '#d040df',
    950: '#000000',
  },
}
SCSS
$custom: #d040df;
$custom-light: #e282ea;
$custom-dark: #000000;
JSON
{
  "hex": "#d040df",
  "rgb": {
    "r": 208,
    "g": 64,
    "b": 223
  },
  "hsl": {
    "h": 294.34,
    "s": 71.3,
    "l": 56.275
  },
  "oklch": {
    "l": 0.63994,
    "c": 0.24899,
    "h": 323.8
  },
  "luminance": 0.22404
}

Semantic roles & 50–950 ramp

primary
#D040DF
secondary
#A3DE9D
accent
#EE3A4B
background
#FEF8FE
surface
#FDF0FD
border
#D5CBD5
text
#160C16
muted
#847D84

Preview Lab

Preview with #D040DF

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

Preview Lab → · Contrast checker → · Palette generator →

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