#DF40C2#DF40C2

#DF40C2 is a light, highly saturated pink. Relative luminance 0.233; OKLCH L 64.6% C 0.235 H 336.3°. Best body text is #000000 at 5.65:1 contrast (WCAG AA passes).

Color values

HEX#DF40C2
RGBrgb(223, 64, 194)
HSLhsl(311, 71%, 56%)
HSVhsv(311, 71%, 87%)
CMYKcmyk(0%, 71.3%, 13%, 12.5%)
CIE-LABlab(55.33, 73.38, -34.64)
CIE-LCHlch(55.33, 81.14, 334.73°)
OKLaboklab(64.6% 0.2154 -0.0943)
OKLCHoklch(64.6% 0.235 336.3)
XYZxyz(42.0031, 23.2536, 53.3047)
Luminance0.2325 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DF40C2 #40DF5D
analogous
#AC40DF #DF40C2 #DF4073
triadic
#DF40C2 #C2DF40 #40C2DF
tetradic
#DF40C2 #DFAC40 #40DF5D #4073DF
square
#DF40C2 #DFAC40 #40DF5D #4073DF
split-complementary
#DF40C2 #73DF40 #40DFAC
monochromatic
#8D1878 #C120A4 #DF40C2 #E874D3 #F1A9E3

Accessibility & contrast

On white

3.72
#DF40C2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.65
#DF40C2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #DF40C2
5.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DF40C2#FFFFFF#000000##000000
##DF40C21.003.725.655.65
#FFFFFF3.721.0021.0021.00
#0000005.6521.001.001.00
##0000005.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#4375C6
Deuteranopia (green-blind)
#798DBE
Tritanopia (blue-blind)
#EA4B7C
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #df40c2;
/* rgb */ color: rgb(223, 64, 194);
/* oklch */ color: oklch(64.6% 0.235 336.3);
Tailwind
colors: {
  custom: {
    50: '#ed83d5',
    500: '#df40c2',
    950: '#000000',
  },
}
SCSS
$custom: #df40c2;
$custom-light: #ed83d5;
$custom-dark: #000000;
JSON
{
  "hex": "#df40c2",
  "rgb": {
    "r": 223,
    "g": 64,
    "b": 194
  },
  "hsl": {
    "h": 310.943,
    "s": 71.3,
    "l": 56.275
  },
  "oklch": {
    "l": 0.646,
    "c": 0.23514,
    "h": 336.3
  },
  "luminance": 0.2325
}

Semantic roles & 50–950 ramp

primary
#DF40C2
secondary
#9DDEA9
accent
#EE5B3A
background
#FFF8FD
surface
#FEF0FA
border
#D6CBD3
text
#170C14
muted
#857D83

Preview Lab

Preview with #DF40C2

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

Preview Lab → · Contrast checker → · Palette generator →

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