#D02F7D#D02F7D

#D02F7D is a mid, highly saturated pink. Relative luminance 0.169; OKLCH L 58.0% C 0.205 H 356.6°. Best body text is #FFFFFF at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#D02F7D
RGBrgb(208, 47, 125)
HSLhsl(331, 63%, 50%)
HSVhsv(331, 77%, 82%)
CMYKcmyk(0%, 77.4%, 39.9%, 18.4%)
CIE-LABlab(48.17, 66.59, -5.00)
CIE-LCHlch(48.17, 66.78, 355.70°)
OKLaboklab(58.02% 0.2048 -0.0123)
OKLCHoklch(58.02% 0.205 356.6)
XYZxyz(30.7328, 16.9275, 21.0470)
Luminance0.1692 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D02F7D #2FD082
analogous
#D02FCD #D02F7D #D0322F
triadic
#D02F7D #7DD02F #2F7DD0
tetradic
#D02F7D #CDD02F #2FD082 #322FD0
square
#D02F7D #CDD02F #2FD082 #322FD0
split-complementary
#D02F7D #2FD032 #2FCDD0
monochromatic
#6C1841 #9E245F #D02F7D #DB619C #E793BB

Accessibility & contrast

On white

4.79
#D02F7D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.38
#D02F7D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #D02F7D
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D02F7D#FFFFFF#000000##FFFFFF
##D02F7D1.004.794.384.79
#FFFFFF4.791.0021.001.00
#0000004.3821.001.0021.00
##FFFFFF4.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#525F7F
Deuteranopia (green-blind)
#7E7D79
Tritanopia (blue-blind)
#E11552
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #d02f7d;
/* rgb */ color: rgb(208, 47, 125);
/* oklch */ color: oklch(58.0% 0.205 356.6);
Tailwind
colors: {
  custom: {
    50: '#e478a2',
    500: '#d02f7d',
    950: '#000000',
  },
}
SCSS
$custom: #d02f7d;
$custom-light: #e478a2;
$custom-dark: #000000;
JSON
{
  "hex": "#d02f7d",
  "rgb": {
    "r": 208,
    "g": 47,
    "b": 125
  },
  "hsl": {
    "h": 330.932,
    "s": 63.137,
    "l": 50
  },
  "oklch": {
    "l": 0.58021,
    "c": 0.20513,
    "h": 356.6
  },
  "luminance": 0.16924
}

Semantic roles & 50–950 ramp

primary
#D02F7D
secondary
#89D1AF
accent
#E69642
background
#FEF7F9
surface
#FDEEF2
border
#D5C9CC
text
#170A0F
muted
#857C7E

Preview Lab

Preview with #D02F7D

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

Preview Lab → · Contrast checker → · Palette generator →

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