#DF40B7#DF40B7

#DF40B7 is a light, highly saturated pink. Relative luminance 0.228; OKLCH L 64.1% C 0.228 H 339.9°. Best body text is #000000 at 5.55:1 contrast (WCAG AA passes).

Color values

HEX#DF40B7
RGBrgb(223, 64, 183)
HSLhsl(315, 71%, 56%)
HSVhsv(315, 71%, 87%)
CMYKcmyk(0%, 71.3%, 17.9%, 12.5%)
CIE-LABlab(54.84, 71.86, -29.05)
CIE-LCHlch(54.84, 77.51, 337.99°)
OKLaboklab(64.09% 0.214 -0.0784)
OKLCHoklch(64.09% 0.228 339.9)
XYZxyz(40.8131, 22.7776, 47.0377)
Luminance0.2277 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DF40B7 #40DF68
analogous
#B740DF #DF40B7 #DF4068
triadic
#DF40B7 #B7DF40 #40B7DF
tetradic
#DF40B7 #DFB740 #40DF68 #4068DF
square
#DF40B7 #DFB740 #40DF68 #4068DF
split-complementary
#DF40B7 #68DF40 #40DFB7
monochromatic
#8D186F #C12099 #DF40B7 #E874CB #F1A9DF

Accessibility & contrast

On white

3.78
#DF40B7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.55
#DF40B7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #DF40B7
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DF40B7#FFFFFF#000000##000000
##DF40B71.003.785.555.55
#FFFFFF3.781.0021.0021.00
#0000005.5521.001.001.00
##0000005.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#4A73BA
Deuteranopia (green-blind)
#7E8CB3
Tritanopia (blue-blind)
#EC4577
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #df40b7;
/* rgb */ color: rgb(223, 64, 183);
/* oklch */ color: oklch(64.1% 0.228 339.9);
Tailwind
colors: {
  custom: {
    50: '#ed82cd',
    500: '#df40b7',
    950: '#000000',
  },
}
SCSS
$custom: #df40b7;
$custom-light: #ed82cd;
$custom-dark: #000000;
JSON
{
  "hex": "#df40b7",
  "rgb": {
    "r": 223,
    "g": 64,
    "b": 183
  },
  "hsl": {
    "h": 315.094,
    "s": 71.3,
    "l": 56.275
  },
  "oklch": {
    "l": 0.64086,
    "c": 0.22795,
    "h": 339.9
  },
  "luminance": 0.22774
}

Semantic roles & 50–950 ramp

primary
#DF40B7
secondary
#9DDEAD
accent
#EE673A
background
#FFF8FC
surface
#FEF0F9
border
#D6CBD2
text
#170C13
muted
#857D82

Preview Lab

Preview with #DF40B7

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

Preview Lab → · Contrast checker → · Palette generator →

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