#D340D5#D340D5

#D340D5 is a light, highly saturated purple. Relative luminance 0.223; OKLCH L 63.8% C 0.243 H 327.4°. Best body text is #000000 at 5.46:1 contrast (WCAG AA passes).

Color values

HEX#D340D5
RGBrgb(211, 64, 213)
HSLhsl(299, 64%, 54%)
HSVhsv(299, 70%, 84%)
CMYKcmyk(0.9%, 70%, 0%, 16.5%)
CIE-LABlab(54.37, 73.58, -47.17)
CIE-LCHlch(54.37, 87.40, 327.34°)
OKLaboklab(63.84% 0.2043 -0.1307)
OKLCHoklch(63.84% 0.243 327.4)
XYZxyz(40.7070, 22.3226, 65.1025)
Luminance0.2232 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D340D5 #42D540
analogous
#8940D5 #D340D5 #D5408C
triadic
#D340D5 #D5D340 #40D5D3
tetradic
#D340D5 #D58940 #42D540 #408CD5
square
#D340D5 #D58940 #42D540 #408CD5
split-complementary
#D340D5 #8CD540 #40D589
monochromatic
#7D1C7F #AF27B1 #D340D5 #DF72E0 #EAA4EB

Accessibility & contrast

On white

3.84
#D340D5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.46
#D340D5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D340D5
5.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D340D5#FFFFFF#000000##000000
##D340D51.003.845.465.46
#FFFFFF3.841.0021.0021.00
#0000005.4621.001.001.00
##0000005.4621.001.001.00

Color blindness preview

Protanopia (red-blind)
#2376D9
Deuteranopia (green-blind)
#6689D1
Tritanopia (blue-blind)
#D95787
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #d340d5;
/* rgb */ color: rgb(211, 64, 213);
/* oklch */ color: oklch(63.8% 0.243 327.4);
Tailwind
colors: {
  custom: {
    50: '#e482e2',
    500: '#d340d5',
    950: '#000000',
  },
}
SCSS
$custom: #d340d5;
$custom-light: #e482e2;
$custom-dark: #000000;
JSON
{
  "hex": "#d340d5",
  "rgb": {
    "r": 211,
    "g": 64,
    "b": 213
  },
  "hsl": {
    "h": 299.195,
    "s": 63.948,
    "l": 54.314
  },
  "oklch": {
    "l": 0.63844,
    "c": 0.24258,
    "h": 327.4
  },
  "luminance": 0.2232
}

Semantic roles & 50–950 ramp

primary
#D340D5
secondary
#9AD899
accent
#E74143
background
#FEF8FD
surface
#FDF0FB
border
#D5CBD4
text
#160C15
muted
#847D83

Preview Lab

Preview with #D340D5

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

Preview Lab → · Contrast checker → · Palette generator →

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