#D340B8#D340B8

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

Color values

HEX#D340B8
RGBrgb(211, 64, 184)
HSLhsl(311, 63%, 54%)
HSVhsv(311, 70%, 83%)
CMYKcmyk(0%, 69.7%, 12.8%, 17.3%)
CIE-LABlab(52.93, 69.13, -32.76)
CIE-LCHlch(52.93, 76.50, 334.64°)
OKLaboklab(62.34% 0.2027 -0.0892)
OKLCHoklch(62.34% 0.221 336.2)
XYZxyz(37.3496, 20.9797, 47.4205)
Luminance0.2098 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D340B8 #40D35B
analogous
#A440D3 #D340B8 #D3406F
triadic
#D340B8 #B8D340 #40B8D3
tetradic
#D340B8 #D3A440 #40D35B #406FD3
square
#D340B8 #D3A440 #40D35B #406FD3
split-complementary
#D340B8 #6FD340 #40D3A4
monochromatic
#7C1D6A #AE2895 #D340B8 #DE72CA #EAA3DD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##D340B8#FFFFFF#000000##000000
##D340B81.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)
#4270BB
Deuteranopia (green-blind)
#7486B4
Tritanopia (blue-blind)
#DE4977
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #d340b8;
/* rgb */ color: rgb(211, 64, 184);
/* oklch */ color: oklch(62.3% 0.221 336.2);
Tailwind
colors: {
  custom: {
    50: '#e481cd',
    500: '#d340b8',
    950: '#000000',
  },
}
SCSS
$custom: #d340b8;
$custom-light: #e481cd;
$custom-dark: #000000;
JSON
{
  "hex": "#d340b8",
  "rgb": {
    "r": 211,
    "g": 64,
    "b": 184
  },
  "hsl": {
    "h": 311.02,
    "s": 62.553,
    "l": 53.922
  },
  "oklch": {
    "l": 0.62339,
    "c": 0.22144,
    "h": 336.2
  },
  "luminance": 0.20976
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D340B8

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

Preview Lab → · Contrast checker → · Palette generator →

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