#D340D2#D340D2

#D340D2 is a light, highly saturated purple. Relative luminance 0.222; OKLCH L 63.7% C 0.240 H 328.2°. Best body text is #000000 at 5.43:1 contrast (WCAG AA passes).

Color values

HEX#D340D2
RGBrgb(211, 64, 210)
HSLhsl(300, 63%, 54%)
HSVhsv(300, 70%, 83%)
CMYKcmyk(0%, 69.7%, 0.5%, 17.3%)
CIE-LABlab(54.21, 73.10, -45.71)
CIE-LCHlch(54.21, 86.21, 327.98°)
OKLaboklab(63.68% 0.2043 -0.1265)
OKLCHoklch(63.68% 0.24 328.2)
XYZxyz(40.3297, 22.1717, 63.1157)
Luminance0.2217 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D340D2 #40D341
analogous
#8B40D3 #D340D2 #D34089
triadic
#D340D2 #D2D340 #40D2D3
tetradic
#D340D2 #D38B40 #40D341 #4089D3
square
#D340D2 #D38B40 #40D341 #4089D3
split-complementary
#D340D2 #89D340 #40D38B
monochromatic
#7C1D7B #AE28AD #D340D2 #DE72DE #EAA3E9

Accessibility & contrast

On white

3.86
#D340D2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.43
#D340D2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D340D2
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D340D2#FFFFFF#000000##000000
##D340D21.003.865.435.43
#FFFFFF3.861.0021.0021.00
#0000005.4321.001.001.00
##0000005.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#2875D6
Deuteranopia (green-blind)
#6788CE
Tritanopia (blue-blind)
#DA5585
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #d340d2;
/* rgb */ color: rgb(211, 64, 210);
/* oklch */ color: oklch(63.7% 0.240 328.2);
Tailwind
colors: {
  custom: {
    50: '#e482e0',
    500: '#d340d2',
    950: '#000000',
  },
}
SCSS
$custom: #d340d2;
$custom-light: #e482e0;
$custom-dark: #000000;
JSON
{
  "hex": "#d340d2",
  "rgb": {
    "r": 211,
    "g": 64,
    "b": 210
  },
  "hsl": {
    "h": 300.408,
    "s": 62.553,
    "l": 53.922
  },
  "oklch": {
    "l": 0.63679,
    "c": 0.2403,
    "h": 328.2
  },
  "luminance": 0.22169
}

Semantic roles & 50–950 ramp

primary
#D340D2
secondary
#98D798
accent
#E64342
background
#FEF8FD
surface
#FDF0FB
border
#D5CBD4
text
#160C15
muted
#847D83

Preview Lab

Preview with #D340D2

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

Preview Lab → · Contrast checker → · Palette generator →

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