#D340A4#D340A4

#D340A4 is a mid, highly saturated pink. Relative luminance 0.202; OKLCH L 61.4% C 0.208 H 343.3°. Best body text is #000000 at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#D340A4
RGBrgb(211, 64, 164)
HSLhsl(319, 63%, 54%)
HSVhsv(319, 70%, 83%)
CMYKcmyk(0%, 69.7%, 22.3%, 17.3%)
CIE-LABlab(52.06, 66.37, -22.40)
CIE-LCHlch(52.06, 70.05, 341.35°)
OKLaboklab(61.43% 0.1997 -0.0599)
OKLCHoklch(61.43% 0.208 343.3)
XYZxyz(35.3994, 20.1996, 37.1494)
Luminance0.2020 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D340A4 #40D36F
analogous
#B940D3 #D340A4 #D3405B
triadic
#D340A4 #A4D340 #40A4D3
tetradic
#D340A4 #D3B940 #40D36F #405BD3
square
#D340A4 #D3B940 #40D36F #405BD3
split-complementary
#D340A4 #5BD340 #40D3B9
monochromatic
#7C1D5E #AE2883 #D340A4 #DE72BC #EAA3D3

Accessibility & contrast

On white

4.17
#D340A4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.04
#D340A4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D340A4
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D340A4#FFFFFF#000000##000000
##D340A41.004.175.045.04
#FFFFFF4.171.0021.0021.00
#0000005.0421.001.001.00
##0000005.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#4E6DA7
Deuteranopia (green-blind)
#7B85A1
Tritanopia (blue-blind)
#E0406C
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #d340a4;
/* rgb */ color: rgb(211, 64, 164);
/* oklch */ color: oklch(61.4% 0.208 343.3);
Tailwind
colors: {
  custom: {
    50: '#e580bf',
    500: '#d340a4',
    950: '#000000',
  },
}
SCSS
$custom: #d340a4;
$custom-light: #e580bf;
$custom-dark: #000000;
JSON
{
  "hex": "#d340a4",
  "rgb": {
    "r": 211,
    "g": 64,
    "b": 164
  },
  "hsl": {
    "h": 319.184,
    "s": 62.553,
    "l": 53.922
  },
  "oklch": {
    "l": 0.61428,
    "c": 0.20846,
    "h": 343.3
  },
  "luminance": 0.20196
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D340A4

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

Preview Lab → · Contrast checker → · Palette generator →

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