#D340B9#D340B9

#D340B9 is a light, highly saturated pink. Relative luminance 0.210; OKLCH L 62.4% C 0.222 H 335.9°. Best body text is #000000 at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#D340B9
RGBrgb(211, 64, 185)
HSLhsl(311, 63%, 54%)
HSVhsv(311, 70%, 83%)
CMYKcmyk(0%, 69.7%, 12.3%, 17.3%)
CIE-LABlab(52.97, 69.27, -33.27)
CIE-LCHlch(52.97, 76.85, 334.35°)
OKLaboklab(62.39% 0.2028 -0.0906)
OKLCHoklch(62.39% 0.222 335.9)
XYZxyz(37.4548, 21.0217, 47.9745)
Luminance0.2102 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D340B9 #40D35A
analogous
#A440D3 #D340B9 #D34070
triadic
#D340B9 #B9D340 #40B9D3
tetradic
#D340B9 #D3A440 #40D35A #4070D3
square
#D340B9 #D3A440 #40D35A #4070D3
split-complementary
#D340B9 #70D340 #40D3A4
monochromatic
#7C1D6B #AE2896 #D340B9 #DE72CB #EAA3DD

Accessibility & contrast

On white

4.04
#D340B9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.20
#D340B9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D340B9
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D340B9#FFFFFF#000000##000000
##D340B91.004.045.205.20
#FFFFFF4.041.0021.0021.00
#0000005.2021.001.001.00
##0000005.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#4270BC
Deuteranopia (green-blind)
#7386B5
Tritanopia (blue-blind)
#DE4A77
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #d340b9;
/* rgb */ color: rgb(211, 64, 185);
/* oklch */ color: oklch(62.4% 0.222 335.9);
Tailwind
colors: {
  custom: {
    50: '#e481ce',
    500: '#d340b9',
    950: '#000000',
  },
}
SCSS
$custom: #d340b9;
$custom-light: #e481ce;
$custom-dark: #000000;
JSON
{
  "hex": "#d340b9",
  "rgb": {
    "r": 211,
    "g": 64,
    "b": 185
  },
  "hsl": {
    "h": 310.612,
    "s": 62.553,
    "l": 53.922
  },
  "oklch": {
    "l": 0.62387,
    "c": 0.22212,
    "h": 335.9
  },
  "luminance": 0.21018
}

Semantic roles & 50–950 ramp

primary
#D340B9
secondary
#98D7A3
accent
#E65F42
background
#FEF8FC
surface
#FDF0F9
border
#D5CBD2
text
#160B13
muted
#847C82

Preview Lab

Preview with #D340B9

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

Preview Lab → · Contrast checker → · Palette generator →

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