#DF40C6#DF40C6

#DF40C6 is a light, highly saturated purple. Relative luminance 0.234; OKLCH L 64.8% C 0.238 H 335.1°. Best body text is #000000 at 5.69:1 contrast (WCAG AA passes).

Color values

HEX#DF40C6
RGBrgb(223, 64, 198)
HSLhsl(309, 71%, 56%)
HSVhsv(309, 71%, 87%)
CMYKcmyk(0%, 71.3%, 11.2%, 12.5%)
CIE-LABlab(55.52, 73.95, -36.65)
CIE-LCHlch(55.52, 82.53, 333.64°)
OKLaboklab(64.8% 0.2158 -0.1001)
OKLCHoklch(64.8% 0.238 335.1)
XYZxyz(42.4584, 23.4357, 55.7025)
Luminance0.2343 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DF40C6 #40DF59
analogous
#A940DF #DF40C6 #DF4077
triadic
#DF40C6 #C6DF40 #40C6DF
tetradic
#DF40C6 #DFA940 #40DF59 #4077DF
square
#DF40C6 #DFA940 #40DF59 #4077DF
split-complementary
#DF40C6 #77DF40 #40DFA9
monochromatic
#8D187B #C120A8 #DF40C6 #E874D6 #F1A9E5

Accessibility & contrast

On white

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

On black

5.69
#DF40C6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #DF40C6
5.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DF40C6#FFFFFF#000000##000000
##DF40C61.003.695.695.69
#FFFFFF3.691.0021.0021.00
#0000005.6921.001.001.00
##0000005.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#4076CA
Deuteranopia (green-blind)
#788DC2
Tritanopia (blue-blind)
#EA4C7F
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #df40c6;
/* rgb */ color: rgb(223, 64, 198);
/* oklch */ color: oklch(64.8% 0.238 335.1);
Tailwind
colors: {
  custom: {
    50: '#ed83d7',
    500: '#df40c6',
    950: '#000000',
  },
}
SCSS
$custom: #df40c6;
$custom-light: #ed83d7;
$custom-dark: #000000;
JSON
{
  "hex": "#df40c6",
  "rgb": {
    "r": 223,
    "g": 64,
    "b": 198
  },
  "hsl": {
    "h": 309.434,
    "s": 71.3,
    "l": 56.275
  },
  "oklch": {
    "l": 0.64795,
    "c": 0.23785,
    "h": 335.1
  },
  "luminance": 0.23432
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #DF40C6

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

Preview Lab → · Contrast checker → · Palette generator →

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