#DF40B5#DF40B5

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

Color values

HEX#DF40B5
RGBrgb(223, 64, 181)
HSLhsl(316, 71%, 56%)
HSVhsv(316, 71%, 87%)
CMYKcmyk(0%, 71.3%, 18.8%, 12.5%)
CIE-LABlab(54.76, 71.59, -28.02)
CIE-LCHlch(54.76, 76.88, 338.62°)
OKLaboklab(64% 0.2137 -0.0755)
OKLCHoklch(64% 0.227 340.5)
XYZxyz(40.6065, 22.6949, 45.9491)
Luminance0.2269 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DF40B5 #40DF6A
analogous
#BA40DF #DF40B5 #DF4066
triadic
#DF40B5 #B5DF40 #40B5DF
tetradic
#DF40B5 #DFBA40 #40DF6A #4066DF
square
#DF40B5 #DFBA40 #40DF6A #4066DF
split-complementary
#DF40B5 #66DF40 #40DFBA
monochromatic
#8D186E #C12097 #DF40B5 #E874C9 #F1A9DE

Accessibility & contrast

On white

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

On black

5.54
#DF40B5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #DF40B5
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DF40B5#FFFFFF#000000##000000
##DF40B51.003.795.545.54
#FFFFFF3.791.0021.0021.00
#0000005.5421.001.001.00
##0000005.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#4C73B8
Deuteranopia (green-blind)
#7E8CB1
Tritanopia (blue-blind)
#EC4475
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #df40b5;
/* rgb */ color: rgb(223, 64, 181);
/* oklch */ color: oklch(64.0% 0.227 340.5);
Tailwind
colors: {
  custom: {
    50: '#ed82cb',
    500: '#df40b5',
    950: '#000000',
  },
}
SCSS
$custom: #df40b5;
$custom-light: #ed82cb;
$custom-dark: #000000;
JSON
{
  "hex": "#df40b5",
  "rgb": {
    "r": 223,
    "g": 64,
    "b": 181
  },
  "hsl": {
    "h": 315.849,
    "s": 71.3,
    "l": 56.275
  },
  "oklch": {
    "l": 0.63995,
    "c": 0.22669,
    "h": 340.5
  },
  "luminance": 0.22691
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #DF40B5

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

Preview Lab → · Contrast checker → · Palette generator →

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