#D340A6#D340A6

#D340A6 is a mid, highly saturated pink. Relative luminance 0.203; OKLCH L 61.5% C 0.210 H 342.6°. Best body text is #000000 at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#D340A6
RGBrgb(211, 64, 166)
HSLhsl(318, 63%, 54%)
HSVhsv(318, 70%, 83%)
CMYKcmyk(0%, 69.7%, 21.3%, 17.3%)
CIE-LABlab(52.14, 66.63, -23.46)
CIE-LCHlch(52.14, 70.64, 340.61°)
OKLaboklab(61.51% 0.2 -0.0628)
OKLCHoklch(61.51% 0.21 342.6)
XYZxyz(35.5815, 20.2724, 38.1081)
Luminance0.2027 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D340A6 #40D36D
analogous
#B640D3 #D340A6 #D3405D
triadic
#D340A6 #A6D340 #40A6D3
tetradic
#D340A6 #D3B640 #40D36D #405DD3
square
#D340A6 #D3B640 #40D36D #405DD3
split-complementary
#D340A6 #5DD340 #40D3B6
monochromatic
#7C1D5F #AE2885 #D340A6 #DE72BD #EAA3D4

Accessibility & contrast

On white

4.16
#D340A6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.05
#D340A6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D340A6
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D340A6#FFFFFF#000000##000000
##D340A61.004.165.055.05
#FFFFFF4.161.0021.0021.00
#0000005.0521.001.001.00
##0000005.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#4D6DA9
Deuteranopia (green-blind)
#7B85A3
Tritanopia (blue-blind)
#E0416D
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #d340a6;
/* rgb */ color: rgb(211, 64, 166);
/* oklch */ color: oklch(61.5% 0.210 342.6);
Tailwind
colors: {
  custom: {
    50: '#e581c0',
    500: '#d340a6',
    950: '#000000',
  },
}
SCSS
$custom: #d340a6;
$custom-light: #e581c0;
$custom-dark: #000000;
JSON
{
  "hex": "#d340a6",
  "rgb": {
    "r": 211,
    "g": 64,
    "b": 166
  },
  "hsl": {
    "h": 318.367,
    "s": 62.553,
    "l": 53.922
  },
  "oklch": {
    "l": 0.61514,
    "c": 0.20968,
    "h": 342.6
  },
  "luminance": 0.20269
}

Semantic roles & 50–950 ramp

primary
#D340A6
secondary
#98D7AB
accent
#E67442
background
#FEF8FB
surface
#FDEFF7
border
#D5CAD0
text
#160B12
muted
#847C81

Preview Lab

Preview with #D340A6

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

Preview Lab → · Contrast checker → · Palette generator →

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