#D340A2#D340A2

#D340A2 is a mid, highly saturated pink. Relative luminance 0.201; OKLCH L 61.3% C 0.207 H 344.1°. Best body text is #000000 at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#D340A2
RGBrgb(211, 64, 162)
HSLhsl(320, 63%, 54%)
HSVhsv(320, 70%, 83%)
CMYKcmyk(0%, 69.7%, 23.2%, 17.3%)
CIE-LABlab(51.98, 66.11, -21.35)
CIE-LCHlch(51.98, 69.47, 342.10°)
OKLaboklab(61.34% 0.1993 -0.0569)
OKLCHoklch(61.34% 0.207 344.1)
XYZxyz(35.2202, 20.1279, 36.2056)
Luminance0.2012 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D340A2 #40D371
analogous
#BB40D3 #D340A2 #D34059
triadic
#D340A2 #A2D340 #40A2D3
tetradic
#D340A2 #D3BB40 #40D371 #4059D3
square
#D340A2 #D3BB40 #40D371 #4059D3
split-complementary
#D340A2 #59D340 #40D3BB
monochromatic
#7C1D5C #AE2881 #D340A2 #DE72BA #EAA3D2

Accessibility & contrast

On white

4.18
#D340A2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.02
#D340A2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D340A2
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D340A2#FFFFFF#000000##000000
##D340A21.004.185.025.02
#FFFFFF4.181.0021.0021.00
#0000005.0221.001.001.00
##0000005.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#4F6CA5
Deuteranopia (green-blind)
#7C859F
Tritanopia (blue-blind)
#E13F6B
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #d340a2;
/* rgb */ color: rgb(211, 64, 162);
/* oklch */ color: oklch(61.3% 0.207 344.1);
Tailwind
colors: {
  custom: {
    50: '#e580bd',
    500: '#d340a2',
    950: '#000000',
  },
}
SCSS
$custom: #d340a2;
$custom-light: #e580bd;
$custom-dark: #000000;
JSON
{
  "hex": "#d340a2",
  "rgb": {
    "r": 211,
    "g": 64,
    "b": 162
  },
  "hsl": {
    "h": 320,
    "s": 62.553,
    "l": 53.922
  },
  "oklch": {
    "l": 0.61343,
    "c": 0.20726,
    "h": 344.1
  },
  "luminance": 0.20124
}

Semantic roles & 50–950 ramp

primary
#D340A2
secondary
#98D7AD
accent
#E67942
background
#FEF8FB
surface
#FDEFF6
border
#D5CAD0
text
#160B12
muted
#847C81

Preview Lab

Preview with #D340A2

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

Preview Lab → · Contrast checker → · Palette generator →

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