#D340A7#D340A7

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

Color values

HEX#D340A7
RGBrgb(211, 64, 167)
HSLhsl(318, 63%, 54%)
HSVhsv(318, 70%, 83%)
CMYKcmyk(0%, 69.7%, 20.9%, 17.3%)
CIE-LABlab(52.19, 66.77, -23.98)
CIE-LCHlch(52.19, 70.94, 340.24°)
OKLaboklab(61.56% 0.2002 -0.0643)
OKLCHoklch(61.56% 0.21 342.2)
XYZxyz(35.6736, 20.3092, 38.5931)
Luminance0.2031 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D340A7 #40D36C
analogous
#B640D3 #D340A7 #D3405E
triadic
#D340A7 #A7D340 #40A7D3
tetradic
#D340A7 #D3B640 #40D36C #405ED3
square
#D340A7 #D3B640 #40D36C #405ED3
split-complementary
#D340A7 #5ED340 #40D3B6
monochromatic
#7C1D5F #AE2886 #D340A7 #DE72BE #EAA3D5

Accessibility & contrast

On white

4.15
#D340A7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.06
#D340A7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D340A7
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D340A7#FFFFFF#000000##000000
##D340A71.004.155.065.06
#FFFFFF4.151.0021.0021.00
#0000005.0621.001.001.00
##0000005.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#4D6DAA
Deuteranopia (green-blind)
#7A85A4
Tritanopia (blue-blind)
#E0426E
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #d340a7;
/* rgb */ color: rgb(211, 64, 167);
/* oklch */ color: oklch(61.6% 0.210 342.2);
Tailwind
colors: {
  custom: {
    50: '#e481c1',
    500: '#d340a7',
    950: '#000000',
  },
}
SCSS
$custom: #d340a7;
$custom-light: #e481c1;
$custom-dark: #000000;
JSON
{
  "hex": "#d340a7",
  "rgb": {
    "r": 211,
    "g": 64,
    "b": 167
  },
  "hsl": {
    "h": 317.959,
    "s": 62.553,
    "l": 53.922
  },
  "oklch": {
    "l": 0.61558,
    "c": 0.21029,
    "h": 342.2
  },
  "luminance": 0.20306
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D340A7

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

Preview Lab → · Contrast checker → · Palette generator →

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