#DF40B6#DF40B6

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

Color values

HEX#DF40B6
RGBrgb(223, 64, 182)
HSLhsl(315, 71%, 56%)
HSVhsv(315, 71%, 87%)
CMYKcmyk(0%, 71.3%, 18.4%, 12.5%)
CIE-LABlab(54.80, 71.73, -28.54)
CIE-LCHlch(54.80, 77.19, 338.31°)
OKLaboklab(64.04% 0.2139 -0.077)
OKLCHoklch(64.04% 0.227 340.2)
XYZxyz(40.7094, 22.7361, 46.4914)
Luminance0.2273 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DF40B6 #40DF69
analogous
#B940DF #DF40B6 #DF4067
triadic
#DF40B6 #B6DF40 #40B6DF
tetradic
#DF40B6 #DFB940 #40DF69 #4067DF
square
#DF40B6 #DFB940 #40DF69 #4067DF
split-complementary
#DF40B6 #67DF40 #40DFB9
monochromatic
#8D186F #C12098 #DF40B6 #E874CA #F1A9DE

Accessibility & contrast

On white

3.79
#DF40B6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##DF40B6#FFFFFF#000000##000000
##DF40B61.003.795.555.55
#FFFFFF3.791.0021.0021.00
#0000005.5521.001.001.00
##0000005.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#4B73B9
Deuteranopia (green-blind)
#7E8CB2
Tritanopia (blue-blind)
#EC4576
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #df40b6;
/* rgb */ color: rgb(223, 64, 182);
/* oklch */ color: oklch(64.0% 0.227 340.2);
Tailwind
colors: {
  custom: {
    50: '#ed82cc',
    500: '#df40b6',
    950: '#000000',
  },
}
SCSS
$custom: #df40b6;
$custom-light: #ed82cc;
$custom-dark: #000000;
JSON
{
  "hex": "#df40b6",
  "rgb": {
    "r": 223,
    "g": 64,
    "b": 182
  },
  "hsl": {
    "h": 315.472,
    "s": 71.3,
    "l": 56.275
  },
  "oklch": {
    "l": 0.6404,
    "c": 0.22732,
    "h": 340.2
  },
  "luminance": 0.22732
}

Semantic roles & 50–950 ramp

primary
#DF40B6
secondary
#9DDEAE
accent
#EE683A
background
#FFF8FC
surface
#FEF0F8
border
#D6CBD1
text
#170C13
muted
#857D82

Preview Lab

Preview with #DF40B6

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

Preview Lab → · Contrast checker → · Palette generator →

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