#D340AB#D340AB

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

Color values

HEX#D340AB
RGBrgb(211, 64, 171)
HSLhsl(316, 63%, 54%)
HSVhsv(316, 70%, 83%)
CMYKcmyk(0%, 69.7%, 19%, 17.3%)
CIE-LABlab(52.35, 67.30, -26.07)
CIE-LCHlch(52.35, 72.18, 338.83°)
OKLaboklab(61.73% 0.2009 -0.0702)
OKLCHoklch(61.73% 0.213 340.7)
XYZxyz(36.0491, 20.4594, 40.5707)
Luminance0.2046 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D340AB #40D368
analogous
#B240D3 #D340AB #D34062
triadic
#D340AB #ABD340 #40ABD3
tetradic
#D340AB #D3B240 #40D368 #4062D3
square
#D340AB #D3B240 #40D368 #4062D3
split-complementary
#D340AB #62D340 #40D3B2
monochromatic
#7C1D62 #AE2889 #D340AB #DE72C1 #EAA3D7

Accessibility & contrast

On white

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

On black

5.09
#D340AB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D340AB
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D340AB#FFFFFF#000000##000000
##D340AB1.004.125.095.09
#FFFFFF4.121.0021.0021.00
#0000005.0921.001.001.00
##0000005.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#4B6EAE
Deuteranopia (green-blind)
#7985A8
Tritanopia (blue-blind)
#DF4370
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #d340ab;
/* rgb */ color: rgb(211, 64, 171);
/* oklch */ color: oklch(61.7% 0.213 340.7);
Tailwind
colors: {
  custom: {
    50: '#e481c4',
    500: '#d340ab',
    950: '#000000',
  },
}
SCSS
$custom: #d340ab;
$custom-light: #e481c4;
$custom-dark: #000000;
JSON
{
  "hex": "#d340ab",
  "rgb": {
    "r": 211,
    "g": 64,
    "b": 171
  },
  "hsl": {
    "h": 316.327,
    "s": 62.553,
    "l": 53.922
  },
  "oklch": {
    "l": 0.61735,
    "c": 0.21281,
    "h": 340.7
  },
  "luminance": 0.20456
}

Semantic roles & 50–950 ramp

primary
#D340AB
secondary
#98D7A9
accent
#E66F42
background
#FEF8FC
surface
#FDEFF8
border
#D5CAD1
text
#160B12
muted
#847C81

Preview Lab

Preview with #D340AB

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

Preview Lab → · Contrast checker → · Palette generator →

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