#D340A5#D340A5

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

Color values

HEX#D340A5
RGBrgb(211, 64, 165)
HSLhsl(319, 63%, 54%)
HSVhsv(319, 70%, 83%)
CMYKcmyk(0%, 69.7%, 21.8%, 17.3%)
CIE-LABlab(52.10, 66.50, -22.93)
CIE-LCHlch(52.10, 70.34, 340.98°)
OKLaboklab(61.47% 0.1999 -0.0613)
OKLCHoklch(61.47% 0.209 342.9)
XYZxyz(35.4901, 20.2359, 37.6269)
Luminance0.2023 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D340A5 #40D36E
analogous
#B840D3 #D340A5 #D3405C
triadic
#D340A5 #A5D340 #40A5D3
tetradic
#D340A5 #D3B840 #40D36E #405CD3
square
#D340A5 #D3B840 #40D36E #405CD3
split-complementary
#D340A5 #5CD340 #40D3B8
monochromatic
#7C1D5E #AE2884 #D340A5 #DE72BC #EAA3D4

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##D340A5#FFFFFF#000000##000000
##D340A51.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)
#4E6DA8
Deuteranopia (green-blind)
#7B85A2
Tritanopia (blue-blind)
#E0416D
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #d340a5;
/* rgb */ color: rgb(211, 64, 165);
/* oklch */ color: oklch(61.5% 0.209 342.9);
Tailwind
colors: {
  custom: {
    50: '#e580c0',
    500: '#d340a5',
    950: '#000000',
  },
}
SCSS
$custom: #d340a5;
$custom-light: #e580c0;
$custom-dark: #000000;
JSON
{
  "hex": "#d340a5",
  "rgb": {
    "r": 211,
    "g": 64,
    "b": 165
  },
  "hsl": {
    "h": 318.776,
    "s": 62.553,
    "l": 53.922
  },
  "oklch": {
    "l": 0.61471,
    "c": 0.20906,
    "h": 342.9
  },
  "luminance": 0.20232
}

Semantic roles & 50–950 ramp

primary
#D340A5
secondary
#98D7AC
accent
#E67542
background
#FEF8FB
surface
#FDEFF7
border
#D5CAD0
text
#160B12
muted
#847C81

Preview Lab

Preview with #D340A5

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

Preview Lab → · Contrast checker → · Palette generator →

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