#D340AC#D340AC

#D340AC is a mid, highly saturated pink. Relative luminance 0.205; OKLCH L 61.8% C 0.213 H 340.4°. Best body text is #000000 at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#D340AC
RGBrgb(211, 64, 172)
HSLhsl(316, 63%, 54%)
HSVhsv(316, 70%, 83%)
CMYKcmyk(0%, 69.7%, 18.5%, 17.3%)
CIE-LABlab(52.40, 67.44, -26.59)
CIE-LCHlch(52.40, 72.49, 338.48°)
OKLaboklab(61.78% 0.2011 -0.0716)
OKLCHoklch(61.78% 0.213 340.4)
XYZxyz(36.1447, 20.4977, 41.0746)
Luminance0.2049 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D340AC #40D367
analogous
#B040D3 #D340AC #D34063
triadic
#D340AC #ACD340 #40ACD3
tetradic
#D340AC #D3B040 #40D367 #4063D3
square
#D340AC #D3B040 #40D367 #4063D3
split-complementary
#D340AC #63D340 #40D3B0
monochromatic
#7C1D63 #AE288A #D340AC #DE72C2 #EAA3D7

Accessibility & contrast

On white

4.12
#D340AC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.10
#D340AC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D340AC
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D340AC#FFFFFF#000000##000000
##D340AC1.004.125.105.10
#FFFFFF4.121.0021.0021.00
#0000005.1021.001.001.00
##0000005.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#4A6EAF
Deuteranopia (green-blind)
#7886A9
Tritanopia (blue-blind)
#DF4471
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #d340ac;
/* rgb */ color: rgb(211, 64, 172);
/* oklch */ color: oklch(61.8% 0.213 340.4);
Tailwind
colors: {
  custom: {
    50: '#e481c5',
    500: '#d340ac',
    950: '#000000',
  },
}
SCSS
$custom: #d340ac;
$custom-light: #e481c5;
$custom-dark: #000000;
JSON
{
  "hex": "#d340ac",
  "rgb": {
    "r": 211,
    "g": 64,
    "b": 172
  },
  "hsl": {
    "h": 315.918,
    "s": 62.553,
    "l": 53.922
  },
  "oklch": {
    "l": 0.6178,
    "c": 0.21345,
    "h": 340.4
  },
  "luminance": 0.20494
}

Semantic roles & 50–950 ramp

primary
#D340AC
secondary
#98D7A9
accent
#E66E42
background
#FEF8FC
surface
#FDEFF8
border
#D5CAD1
text
#160B13
muted
#847C82

Preview Lab

Preview with #D340AC

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

Preview Lab → · Contrast checker → · Palette generator →

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