#D02F7E#D02F7E

#D02F7E is a mid, highly saturated pink. Relative luminance 0.169; OKLCH L 58.1% C 0.206 H 356.1°. Best body text is #FFFFFF at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#D02F7E
RGBrgb(208, 47, 126)
HSLhsl(331, 63%, 50%)
HSVhsv(331, 77%, 82%)
CMYKcmyk(0%, 77.4%, 39.4%, 18.4%)
CIE-LABlab(48.20, 66.69, -5.56)
CIE-LCHlch(48.20, 66.92, 355.23°)
OKLaboklab(58.06% 0.2051 -0.0138)
OKLCHoklch(58.06% 0.206 356.1)
XYZxyz(30.7970, 16.9532, 21.3852)
Luminance0.1695 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D02F7E #2FD081
analogous
#D02FCE #D02F7E #D0312F
triadic
#D02F7E #7ED02F #2F7ED0
tetradic
#D02F7E #CED02F #2FD081 #312FD0
square
#D02F7E #CED02F #2FD081 #312FD0
split-complementary
#D02F7E #2FD031 #2FCED0
monochromatic
#6C1842 #9E2460 #D02F7E #DB619D #E793BC

Accessibility & contrast

On white

4.78
#D02F7E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.39
#D02F7E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #D02F7E
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D02F7E#FFFFFF#000000##FFFFFF
##D02F7E1.004.784.394.78
#FFFFFF4.781.0021.001.00
#0000004.3921.001.0021.00
##FFFFFF4.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#515F80
Deuteranopia (green-blind)
#7E7D7A
Tritanopia (blue-blind)
#E11653
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #d02f7e;
/* rgb */ color: rgb(208, 47, 126);
/* oklch */ color: oklch(58.1% 0.206 356.1);
Tailwind
colors: {
  custom: {
    50: '#e478a3',
    500: '#d02f7e',
    950: '#000000',
  },
}
SCSS
$custom: #d02f7e;
$custom-light: #e478a3;
$custom-dark: #000000;
JSON
{
  "hex": "#d02f7e",
  "rgb": {
    "r": 208,
    "g": 47,
    "b": 126
  },
  "hsl": {
    "h": 330.559,
    "s": 63.137,
    "l": 50
  },
  "oklch": {
    "l": 0.58055,
    "c": 0.20552,
    "h": 356.1
  },
  "luminance": 0.16949
}

Semantic roles & 50–950 ramp

primary
#D02F7E
secondary
#89D1AE
accent
#E69542
background
#FEF7FA
surface
#FDEEF3
border
#D5C9CD
text
#170A0F
muted
#857C7F

Preview Lab

Preview with #D02F7E

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

Preview Lab → · Contrast checker → · Palette generator →

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