#D340A8#D340A8

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

Color values

HEX#D340A8
RGBrgb(211, 64, 168)
HSLhsl(318, 63%, 54%)
HSVhsv(318, 70%, 83%)
CMYKcmyk(0%, 69.7%, 20.4%, 17.3%)
CIE-LABlab(52.23, 66.90, -24.50)
CIE-LCHlch(52.23, 71.25, 339.88°)
OKLaboklab(61.6% 0.2004 -0.0658)
OKLCHoklch(61.6% 0.211 341.8)
XYZxyz(35.7664, 20.3464, 39.0818)
Luminance0.2034 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D340A8 #40D36B
analogous
#B540D3 #D340A8 #D3405F
triadic
#D340A8 #A8D340 #40A8D3
tetradic
#D340A8 #D3B540 #40D36B #405FD3
square
#D340A8 #D3B540 #40D36B #405FD3
split-complementary
#D340A8 #5FD340 #40D3B5
monochromatic
#7C1D60 #AE2887 #D340A8 #DE72BF #EAA3D5

Accessibility & contrast

On white

4.14
#D340A8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.07
#D340A8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D340A8
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D340A8#FFFFFF#000000##000000
##D340A81.004.145.075.07
#FFFFFF4.141.0021.0021.00
#0000005.0721.001.001.00
##0000005.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#4C6DAB
Deuteranopia (green-blind)
#7A85A5
Tritanopia (blue-blind)
#E0426F
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #d340a8;
/* rgb */ color: rgb(211, 64, 168);
/* oklch */ color: oklch(61.6% 0.211 341.8);
Tailwind
colors: {
  custom: {
    50: '#e481c2',
    500: '#d340a8',
    950: '#000000',
  },
}
SCSS
$custom: #d340a8;
$custom-light: #e481c2;
$custom-dark: #000000;
JSON
{
  "hex": "#d340a8",
  "rgb": {
    "r": 211,
    "g": 64,
    "b": 168
  },
  "hsl": {
    "h": 317.551,
    "s": 62.553,
    "l": 53.922
  },
  "oklch": {
    "l": 0.61602,
    "c": 0.21092,
    "h": 341.8
  },
  "luminance": 0.20343
}

Semantic roles & 50–950 ramp

primary
#D340A8
secondary
#98D7AA
accent
#E67242
background
#FEF8FB
surface
#FDEFF7
border
#D5CAD0
text
#160B12
muted
#847C81

Preview Lab

Preview with #D340A8

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

Preview Lab → · Contrast checker → · Palette generator →

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