#D340C6#D340C6

#D340C6 is a light, highly saturated purple. Relative luminance 0.216; OKLCH L 63.0% C 0.231 H 331.8°. Best body text is #000000 at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#D340C6
RGBrgb(211, 64, 198)
HSLhsl(305, 63%, 54%)
HSVhsv(305, 70%, 83%)
CMYKcmyk(0%, 69.7%, 6.2%, 17.3%)
CIE-LABlab(53.60, 71.22, -39.80)
CIE-LCHlch(53.60, 81.58, 330.80°)
OKLaboklab(63.04% 0.2039 -0.1094)
OKLCHoklch(63.04% 0.231 331.8)
XYZxyz(38.8904, 21.5960, 55.5353)
Luminance0.2159 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D340C6 #40D34D
analogous
#9740D3 #D340C6 #D3407D
triadic
#D340C6 #C6D340 #40C6D3
tetradic
#D340C6 #D39740 #40D34D #407DD3
square
#D340C6 #D39740 #40D34D #407DD3
split-complementary
#D340C6 #7DD340 #40D397
monochromatic
#7C1D74 #AE28A2 #D340C6 #DE72D5 #EAA3E4

Accessibility & contrast

On white

3.95
#D340C6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.32
#D340C6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D340C6
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D340C6#FFFFFF#000000##000000
##D340C61.003.955.325.32
#FFFFFF3.951.0021.0021.00
#0000005.3221.001.001.00
##0000005.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#3673CA
Deuteranopia (green-blind)
#6E87C2
Tritanopia (blue-blind)
#DC507E
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #d340c6;
/* rgb */ color: rgb(211, 64, 198);
/* oklch */ color: oklch(63.0% 0.231 331.8);
Tailwind
colors: {
  custom: {
    50: '#e482d8',
    500: '#d340c6',
    950: '#000000',
  },
}
SCSS
$custom: #d340c6;
$custom-light: #e482d8;
$custom-dark: #000000;
JSON
{
  "hex": "#d340c6",
  "rgb": {
    "r": 211,
    "g": 64,
    "b": 198
  },
  "hsl": {
    "h": 305.306,
    "s": 62.553,
    "l": 53.922
  },
  "oklch": {
    "l": 0.63039,
    "c": 0.23138,
    "h": 331.8
  },
  "luminance": 0.21593
}

Semantic roles & 50–950 ramp

primary
#D340C6
secondary
#98D79E
accent
#E65142
background
#FEF8FD
surface
#FDF0FA
border
#D5CBD3
text
#160B14
muted
#847C83

Preview Lab

Preview with #D340C6

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

Preview Lab → · Contrast checker → · Palette generator →

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