#DF51B3#DF51B3

#DF51B3 is a light, highly saturated pink. Relative luminance 0.248; OKLCH L 65.5% C 0.204 H 342.0°. Best body text is #000000 at 5.97:1 contrast (WCAG AA passes).

Color values

HEX#DF51B3
RGBrgb(223, 81, 179)
HSLhsl(319, 69%, 60%)
HSVhsv(319, 64%, 87%)
CMYKcmyk(0%, 63.7%, 19.7%, 12.5%)
CIE-LABlab(56.91, 65.09, -23.54)
CIE-LCHlch(56.91, 69.21, 340.12°)
OKLaboklab(65.54% 0.1945 -0.063)
OKLCHoklch(65.54% 0.204 342)
XYZxyz(41.5117, 24.8314, 45.2458)
Luminance0.2483 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DF51B3 #51DF7D
analogous
#C451DF #DF51B3 #DF516C
triadic
#DF51B3 #B3DF51 #51B3DF
tetradic
#DF51B3 #DFC451 #51DF7D #516CDF
square
#DF51B3 #DFC451 #51DF7D #516CDF
split-complementary
#DF51B3 #6CDF51 #51DFC4
monochromatic
#991C73 #CD2699 #DF51B3 #E985CA #F2B8E0

Accessibility & contrast

On white

3.52
#DF51B3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.97
#DF51B3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #DF51B3
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DF51B3#FFFFFF#000000##000000
##DF51B31.003.525.975.97
#FFFFFF3.521.0021.0021.00
#0000005.9721.001.001.00
##0000005.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#5C7AB6
Deuteranopia (green-blind)
#8691B0
Tritanopia (blue-blind)
#EC527B
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #df51b3;
/* rgb */ color: rgb(223, 81, 179);
/* oklch */ color: oklch(65.5% 0.204 342.0);
Tailwind
colors: {
  custom: {
    50: '#ed8bca',
    500: '#df51b3',
    950: '#000000',
  },
}
SCSS
$custom: #df51b3;
$custom-light: #ed8bca;
$custom-dark: #000000;
JSON
{
  "hex": "#df51b3",
  "rgb": {
    "r": 223,
    "g": 81,
    "b": 179
  },
  "hsl": {
    "h": 318.592,
    "s": 68.932,
    "l": 59.608
  },
  "oklch": {
    "l": 0.6554,
    "c": 0.20444,
    "h": 342
  },
  "luminance": 0.24828
}

Semantic roles & 50–950 ramp

primary
#DF51B3
secondary
#AAE1BB
accent
#EC723C
background
#FFF8FC
surface
#FEF0F8
border
#D6CBD1
text
#170D13
muted
#857D82

Preview Lab

Preview with #DF51B3

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

Preview Lab → · Contrast checker → · Palette generator →

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