#D340D8#D340D8

#D340D8 is a light, highly saturated purple. Relative luminance 0.225; OKLCH L 64.0% C 0.245 H 326.6°. Best body text is #000000 at 5.49:1 contrast (WCAG AA passes).

Color values

HEX#D340D8
RGBrgb(211, 64, 216)
HSLhsl(298, 66%, 55%)
HSVhsv(298, 70%, 85%)
CMYKcmyk(2.3%, 70.4%, 0%, 15.3%)
CIE-LABlab(54.53, 74.07, -48.62)
CIE-LCHlch(54.53, 88.60, 326.72°)
OKLaboklab(64.01% 0.2043 -0.1349)
OKLCHoklch(64.01% 0.245 326.6)
XYZxyz(41.0913, 22.4763, 67.1265)
Luminance0.2247 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D340D8 #45D840
analogous
#8740D8 #D340D8 #D84091
triadic
#D340D8 #D8D340 #40D8D3
tetradic
#D340D8 #D88740 #45D840 #4091D8
square
#D340D8 #D88740 #45D840 #4091D8
split-complementary
#D340D8 #91D840 #40D887
monochromatic
#7F1B83 #B125B6 #D340D8 #DF73E2 #EAA6ED

Accessibility & contrast

On white

3.82
#D340D8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.49
#D340D8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D340D8
5.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D340D8#FFFFFF#000000##000000
##D340D81.003.825.495.49
#FFFFFF3.821.0021.0021.00
#0000005.4921.001.001.00
##0000005.4921.001.001.00

Color blindness preview

Protanopia (red-blind)
#1D77DC
Deuteranopia (green-blind)
#6489D4
Tritanopia (blue-blind)
#D95888
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #d340d8;
/* rgb */ color: rgb(211, 64, 216);
/* oklch */ color: oklch(64.0% 0.245 326.6);
Tailwind
colors: {
  custom: {
    50: '#e482e4',
    500: '#d340d8',
    950: '#000000',
  },
}
SCSS
$custom: #d340d8;
$custom-light: #e482e4;
$custom-dark: #000000;
JSON
{
  "hex": "#d340d8",
  "rgb": {
    "r": 211,
    "g": 64,
    "b": 216
  },
  "hsl": {
    "h": 298.026,
    "s": 66.087,
    "l": 54.902
  },
  "oklch": {
    "l": 0.64012,
    "c": 0.24487,
    "h": 326.6
  },
  "luminance": 0.22474
}

Semantic roles & 50–950 ramp

primary
#D340D8
secondary
#9CDA9A
accent
#E93F44
background
#FEF8FE
surface
#FDF0FC
border
#D5CBD5
text
#160C16
muted
#847D84

Preview Lab

Preview with #D340D8

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

Preview Lab → · Contrast checker → · Palette generator →

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