#D02F7B#D02F7B

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

Color values

HEX#D02F7B
RGBrgb(208, 47, 123)
HSLhsl(332, 63%, 50%)
HSVhsv(332, 77%, 82%)
CMYKcmyk(0%, 77.4%, 40.9%, 18.4%)
CIE-LABlab(48.10, 66.40, -3.88)
CIE-LCHlch(48.10, 66.51, 356.65°)
OKLaboklab(57.95% 0.2042 -0.0094)
OKLCHoklch(57.95% 0.204 357.4)
XYZxyz(30.6063, 16.8770, 20.3809)
Luminance0.1687 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D02F7B #2FD084
analogous
#D02FCB #D02F7B #D0342F
triadic
#D02F7B #7BD02F #2F7BD0
tetradic
#D02F7B #CBD02F #2FD084 #342FD0
square
#D02F7B #CBD02F #2FD084 #342FD0
split-complementary
#D02F7B #2FD034 #2FCBD0
monochromatic
#6C1840 #9E245D #D02F7B #DB619B #E793BA

Accessibility & contrast

On white

4.80
#D02F7B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.37
#D02F7B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #D02F7B
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D02F7B#FFFFFF#000000##FFFFFF
##D02F7B1.004.804.374.80
#FFFFFF4.801.0021.001.00
#0000004.3721.001.0021.00
##FFFFFF4.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#525F7D
Deuteranopia (green-blind)
#7F7D77
Tritanopia (blue-blind)
#E11251
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #d02f7b;
/* rgb */ color: rgb(208, 47, 123);
/* oklch */ color: oklch(58.0% 0.204 357.4);
Tailwind
colors: {
  custom: {
    50: '#e478a1',
    500: '#d02f7b',
    950: '#000000',
  },
}
SCSS
$custom: #d02f7b;
$custom-light: #e478a1;
$custom-dark: #000000;
JSON
{
  "hex": "#d02f7b",
  "rgb": {
    "r": 208,
    "g": 47,
    "b": 123
  },
  "hsl": {
    "h": 331.677,
    "s": 63.137,
    "l": 50
  },
  "oklch": {
    "l": 0.57953,
    "c": 0.20437,
    "h": 357.4
  },
  "luminance": 0.16873
}

Semantic roles & 50–950 ramp

primary
#D02F7B
secondary
#89D1AF
accent
#E69842
background
#FEF7F9
surface
#FDEEF2
border
#D5C9CC
text
#170A0E
muted
#857C7E

Preview Lab

Preview with #D02F7B

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

Preview Lab → · Contrast checker → · Palette generator →

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