#D128A2#D128A2

#D128A2 is a mid, highly saturated pink. Relative luminance 0.177; OKLCH L 59.2% C 0.230 H 342.5°. Best body text is #FFFFFF at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#D128A2
RGBrgb(209, 40, 162)
HSLhsl(317, 68%, 49%)
HSVhsv(317, 81%, 82%)
CMYKcmyk(0%, 80.9%, 22.5%, 18%)
CIE-LABlab(49.11, 72.80, -25.80)
CIE-LCHlch(49.11, 77.24, 340.48°)
OKLaboklab(59.2% 0.2195 -0.0693)
OKLCHoklch(59.2% 0.23 342.5)
XYZxyz(33.5762, 17.6852, 35.8208)
Luminance0.1768 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D128A2 #28D157
analogous
#AC28D1 #D128A2 #D1284E
triadic
#D128A2 #A2D128 #28A2D1
tetradic
#D128A2 #D1AC28 #28D157 #284ED1
square
#D128A2 #D1AC28 #28D157 #284ED1
split-complementary
#D128A2 #4ED128 #28D1AC
monochromatic
#6A1452 #9E1E7A #D128A2 #DF57B9 #E98BCF

Accessibility & contrast

On white

4.63
#D128A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.54
#D128A2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #D128A2
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D128A2#FFFFFF#000000##FFFFFF
##D128A21.004.634.544.63
#FFFFFF4.631.0021.001.00
#0000004.5421.001.0021.00
##FFFFFF4.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C63A5
Deuteranopia (green-blind)
#737E9E
Tritanopia (blue-blind)
#DF2A64
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #d128a2;
/* rgb */ color: rgb(209, 40, 162);
/* oklch */ color: oklch(59.2% 0.230 342.5);
Tailwind
colors: {
  custom: {
    50: '#e477bd',
    500: '#d128a2',
    950: '#000000',
  },
}
SCSS
$custom: #d128a2;
$custom-light: #e477bd;
$custom-dark: #000000;
JSON
{
  "hex": "#d128a2",
  "rgb": {
    "r": 209,
    "g": 40,
    "b": 162
  },
  "hsl": {
    "h": 316.686,
    "s": 67.871,
    "l": 48.824
  },
  "oklch": {
    "l": 0.59198,
    "c": 0.23022,
    "h": 342.5
  },
  "luminance": 0.17682
}

Semantic roles & 50–950 ramp

primary
#D128A2
secondary
#82D399
accent
#EB6D3D
background
#FEF7FB
surface
#FDEEF6
border
#D5C9D0
text
#160A12
muted
#847C81

Preview Lab

Preview with #D128A2

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

Preview Lab → · Contrast checker → · Palette generator →

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