#D340DF#D340DF

#D340DF is a light, highly saturated purple. Relative luminance 0.228; OKLCH L 64.4% C 0.250 H 324.7°. Best body text is #000000 at 5.57:1 contrast (WCAG AA passes).

Color values

HEX#D340DF
RGBrgb(211, 64, 223)
HSLhsl(295, 71%, 56%)
HSVhsv(295, 71%, 87%)
CMYKcmyk(5.4%, 71.3%, 0%, 12.5%)
CIE-LABlab(54.91, 75.22, -51.97)
CIE-LCHlch(54.91, 91.43, 325.36°)
OKLaboklab(64.41% 0.2042 -0.1447)
OKLCHoklch(64.41% 0.25 324.7)
XYZxyz(42.0156, 22.8460, 71.9944)
Luminance0.2284 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D340DF #4CDF40
analogous
#8440DF #D340DF #DF409C
triadic
#D340DF #DFD340 #40DFD3
tetradic
#D340DF #DF8440 #4CDF40 #409CDF
square
#D340DF #DF8440 #4CDF40 #409CDF
split-complementary
#D340DF #9CDF40 #40DF84
monochromatic
#84188D #B520C1 #D340DF #DF74E8 #EBA9F1

Accessibility & contrast

On white

3.77
#D340DF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.57
#D340DF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D340DF
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D340DF#FFFFFF#000000##000000
##D340DF1.003.775.575.57
#FFFFFF3.771.0021.0021.00
#0000005.5721.001.001.00
##0000005.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#0778E3
Deuteranopia (green-blind)
#5F89DB
Tritanopia (blue-blind)
#D75B8C
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #d340df;
/* rgb */ color: rgb(211, 64, 223);
/* oklch */ color: oklch(64.4% 0.250 324.7);
Tailwind
colors: {
  custom: {
    50: '#e582ea',
    500: '#d340df',
    950: '#000000',
  },
}
SCSS
$custom: #d340df;
$custom-light: #e582ea;
$custom-dark: #000000;
JSON
{
  "hex": "#d340df",
  "rgb": {
    "r": 211,
    "g": 64,
    "b": 223
  },
  "hsl": {
    "h": 295.472,
    "s": 71.3,
    "l": 56.275
  },
  "oklch": {
    "l": 0.64411,
    "c": 0.25029,
    "h": 324.7
  },
  "luminance": 0.22843
}

Semantic roles & 50–950 ramp

primary
#D340DF
secondary
#A2DE9D
accent
#EE3A47
background
#FEF8FE
surface
#FDF0FD
border
#D5CBD5
text
#160C16
muted
#847D84

Preview Lab

Preview with #D340DF

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

Preview Lab → · Contrast checker → · Palette generator →

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