#D340CD#D340CD

#D340CD is a light, highly saturated purple. Relative luminance 0.219; OKLCH L 63.4% C 0.237 H 329.7°. Best body text is #000000 at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#D340CD
RGBrgb(211, 64, 205)
HSLhsl(302, 63%, 54%)
HSVhsv(302, 70%, 83%)
CMYKcmyk(0%, 69.7%, 2.8%, 17.3%)
CIE-LABlab(53.95, 72.30, -43.26)
CIE-LCHlch(53.95, 84.26, 329.11°)
OKLaboklab(63.41% 0.2042 -0.1194)
OKLCHoklch(63.41% 0.237 329.7)
XYZxyz(39.7165, 21.9264, 59.8862)
Luminance0.2192 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D340CD #40D346
analogous
#9040D3 #D340CD #D34084
triadic
#D340CD #CDD340 #40CDD3
tetradic
#D340CD #D39040 #40D346 #4084D3
square
#D340CD #D39040 #40D346 #4084D3
split-complementary
#D340CD #84D340 #40D390
monochromatic
#7C1D78 #AE28A8 #D340CD #DE72DA #EAA3E7

Accessibility & contrast

On white

3.90
#D340CD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.38
#D340CD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D340CD
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D340CD#FFFFFF#000000##000000
##D340CD1.003.905.385.38
#FFFFFF3.901.0021.0021.00
#0000005.3821.001.001.00
##0000005.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#2F74D1
Deuteranopia (green-blind)
#6A88C9
Tritanopia (blue-blind)
#DB5382
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #d340cd;
/* rgb */ color: rgb(211, 64, 205);
/* oklch */ color: oklch(63.4% 0.237 329.7);
Tailwind
colors: {
  custom: {
    50: '#e482dd',
    500: '#d340cd',
    950: '#000000',
  },
}
SCSS
$custom: #d340cd;
$custom-light: #e482dd;
$custom-dark: #000000;
JSON
{
  "hex": "#d340cd",
  "rgb": {
    "r": 211,
    "g": 64,
    "b": 205
  },
  "hsl": {
    "h": 302.449,
    "s": 62.553,
    "l": 53.922
  },
  "oklch": {
    "l": 0.63408,
    "c": 0.23655,
    "h": 329.7
  },
  "luminance": 0.21923
}

Semantic roles & 50–950 ramp

primary
#D340CD
secondary
#98D79B
accent
#E64942
background
#FEF8FD
surface
#FDF0FB
border
#D5CBD4
text
#160C15
muted
#847D83

Preview Lab

Preview with #D340CD

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

Preview Lab → · Contrast checker → · Palette generator →

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