#D340B7#D340B7

#D340B7 is a light, highly saturated pink. Relative luminance 0.209; OKLCH L 62.3% C 0.221 H 336.6°. Best body text is #000000 at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#D340B7
RGBrgb(211, 64, 183)
HSLhsl(311, 63%, 54%)
HSVhsv(311, 70%, 83%)
CMYKcmyk(0%, 69.7%, 13.3%, 17.3%)
CIE-LABlab(52.88, 68.98, -32.25)
CIE-LCHlch(52.88, 76.15, 334.94°)
OKLaboklab(62.29% 0.2026 -0.0877)
OKLCHoklch(62.29% 0.221 336.6)
XYZxyz(37.2452, 20.9379, 46.8704)
Luminance0.2094 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D340B7 #40D35C
analogous
#A640D3 #D340B7 #D3406E
triadic
#D340B7 #B7D340 #40B7D3
tetradic
#D340B7 #D3A640 #40D35C #406ED3
square
#D340B7 #D3A640 #40D35C #406ED3
split-complementary
#D340B7 #6ED340 #40D3A6
monochromatic
#7C1D6A #AE2894 #D340B7 #DE72CA #EAA3DD

Accessibility & contrast

On white

4.05
#D340B7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.19
#D340B7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D340B7
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D340B7#FFFFFF#000000##000000
##D340B71.004.055.195.19
#FFFFFF4.051.0021.0021.00
#0000005.1921.001.001.00
##0000005.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#4370BA
Deuteranopia (green-blind)
#7486B3
Tritanopia (blue-blind)
#DE4976
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #d340b7;
/* rgb */ color: rgb(211, 64, 183);
/* oklch */ color: oklch(62.3% 0.221 336.6);
Tailwind
colors: {
  custom: {
    50: '#e481cd',
    500: '#d340b7',
    950: '#000000',
  },
}
SCSS
$custom: #d340b7;
$custom-light: #e481cd;
$custom-dark: #000000;
JSON
{
  "hex": "#d340b7",
  "rgb": {
    "r": 211,
    "g": 64,
    "b": 183
  },
  "hsl": {
    "h": 311.429,
    "s": 62.553,
    "l": 53.922
  },
  "oklch": {
    "l": 0.62291,
    "c": 0.22075,
    "h": 336.6
  },
  "luminance": 0.20935
}

Semantic roles & 50–950 ramp

primary
#D340B7
secondary
#98D7A4
accent
#E66142
background
#FEF8FC
surface
#FDF0F9
border
#D5CBD2
text
#160B13
muted
#847C82

Preview Lab

Preview with #D340B7

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

Preview Lab → · Contrast checker → · Palette generator →

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