#DF40C7#DF40C7

#DF40C7 is a light, highly saturated purple. Relative luminance 0.235; OKLCH L 64.8% C 0.239 H 334.8°. Best body text is #000000 at 5.70:1 contrast (WCAG AA passes).

Color values

HEX#DF40C7
RGBrgb(223, 64, 199)
HSLhsl(309, 71%, 56%)
HSVhsv(309, 71%, 87%)
CMYKcmyk(0%, 71.3%, 10.8%, 12.5%)
CIE-LABlab(55.57, 74.09, -37.15)
CIE-LCHlch(55.57, 82.89, 333.37°)
OKLaboklab(64.84% 0.2158 -0.1015)
OKLCHoklch(64.84% 0.239 334.8)
XYZxyz(42.5741, 23.4820, 56.3120)
Luminance0.2348 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DF40C7 #40DF58
analogous
#A840DF #DF40C7 #DF4078
triadic
#DF40C7 #C7DF40 #40C7DF
tetradic
#DF40C7 #DFA840 #40DF58 #4078DF
square
#DF40C7 #DFA840 #40DF58 #4078DF
split-complementary
#DF40C7 #78DF40 #40DFA8
monochromatic
#8D187B #C120A9 #DF40C7 #E874D6 #F1A9E6

Accessibility & contrast

On white

3.69
#DF40C7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.70
#DF40C7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #DF40C7
5.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DF40C7#FFFFFF#000000##000000
##DF40C71.003.695.705.70
#FFFFFF3.691.0021.0021.00
#0000005.7021.001.001.00
##0000005.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#3F76CB
Deuteranopia (green-blind)
#778DC3
Tritanopia (blue-blind)
#EA4D7F
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #df40c7;
/* rgb */ color: rgb(223, 64, 199);
/* oklch */ color: oklch(64.8% 0.239 334.8);
Tailwind
colors: {
  custom: {
    50: '#ed83d8',
    500: '#df40c7',
    950: '#000000',
  },
}
SCSS
$custom: #df40c7;
$custom-light: #ed83d8;
$custom-dark: #000000;
JSON
{
  "hex": "#df40c7",
  "rgb": {
    "r": 223,
    "g": 64,
    "b": 199
  },
  "hsl": {
    "h": 309.057,
    "s": 71.3,
    "l": 56.275
  },
  "oklch": {
    "l": 0.64844,
    "c": 0.23853,
    "h": 334.8
  },
  "luminance": 0.23478
}

Semantic roles & 50–950 ramp

primary
#DF40C7
secondary
#9DDEA7
accent
#EE553A
background
#FFF8FD
surface
#FEF0FA
border
#D6CBD3
text
#170C14
muted
#857D83

Preview Lab

Preview with #DF40C7

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

Preview Lab → · Contrast checker → · Palette generator →

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