#D640A8#D640A8

#D640A8 is a light, highly saturated pink. Relative luminance 0.208; OKLCH L 62.1% C 0.213 H 342.7°. Best body text is #000000 at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#D640A8
RGBrgb(214, 64, 168)
HSLhsl(318, 65%, 55%)
HSVhsv(318, 70%, 84%)
CMYKcmyk(0%, 70.1%, 21.5%, 16.1%)
CIE-LABlab(52.72, 67.66, -23.70)
CIE-LCHlch(52.72, 71.68, 340.70°)
OKLaboklab(62.06% 0.2032 -0.0635)
OKLCHoklch(62.06% 0.213 342.7)
XYZxyz(36.6341, 20.7938, 39.1225)
Luminance0.2079 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D640A8 #40D66E
analogous
#B940D6 #D640A8 #D6405D
triadic
#D640A8 #A8D640 #40A8D6
tetradic
#D640A8 #D6B940 #40D66E #405DD6
square
#D640A8 #D6B940 #40D66E #405DD6
split-complementary
#D640A8 #5DD640 #40D6B9
monochromatic
#801B61 #B22688 #D640A8 #E172BF #ECA5D6

Accessibility & contrast

On white

4.07
#D640A8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.16
#D640A8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D640A8
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D640A8#FFFFFF#000000##000000
##D640A81.004.075.165.16
#FFFFFF4.071.0021.0021.00
#0000005.1621.001.001.00
##0000005.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#4E6EAB
Deuteranopia (green-blind)
#7C87A4
Tritanopia (blue-blind)
#E3416F
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #d640a8;
/* rgb */ color: rgb(214, 64, 168);
/* oklch */ color: oklch(62.1% 0.213 342.7);
Tailwind
colors: {
  custom: {
    50: '#e781c2',
    500: '#d640a8',
    950: '#000000',
  },
}
SCSS
$custom: #d640a8;
$custom-light: #e781c2;
$custom-dark: #000000;
JSON
{
  "hex": "#d640a8",
  "rgb": {
    "r": 214,
    "g": 64,
    "b": 168
  },
  "hsl": {
    "h": 318.4,
    "s": 64.655,
    "l": 54.51
  },
  "oklch": {
    "l": 0.62057,
    "c": 0.2129,
    "h": 342.7
  },
  "luminance": 0.2079
}

Semantic roles & 50–950 ramp

primary
#D640A8
secondary
#99D9AD
accent
#E87440
background
#FEF8FB
surface
#FDEFF7
border
#D5CAD0
text
#160B12
muted
#847C81

Preview Lab

Preview with #D640A8

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

Preview Lab → · Contrast checker → · Palette generator →

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