#D340C7#D340C7

#D340C7 is a light, highly saturated purple. Relative luminance 0.216; OKLCH L 63.1% C 0.232 H 331.5°. Best body text is #000000 at 5.33:1 contrast (WCAG AA passes).

Color values

HEX#D340C7
RGBrgb(211, 64, 199)
HSLhsl(305, 63%, 54%)
HSVhsv(305, 70%, 83%)
CMYKcmyk(0%, 69.7%, 5.7%, 17.3%)
CIE-LABlab(53.65, 71.37, -40.30)
CIE-LCHlch(53.65, 81.96, 330.55°)
OKLaboklab(63.09% 0.2039 -0.1108)
OKLCHoklch(63.09% 0.232 331.5)
XYZxyz(39.0061, 21.6423, 56.1447)
Luminance0.2164 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D340C7 #40D34C
analogous
#9640D3 #D340C7 #D3407E
triadic
#D340C7 #C7D340 #40C7D3
tetradic
#D340C7 #D39640 #40D34C #407ED3
square
#D340C7 #D39640 #40D34C #407ED3
split-complementary
#D340C7 #7ED340 #40D396
monochromatic
#7C1D74 #AE28A3 #D340C7 #DE72D6 #EAA3E4

Accessibility & contrast

On white

3.94
#D340C7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.33
#D340C7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D340C7
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D340C7#FFFFFF#000000##000000
##D340C71.003.945.335.33
#FFFFFF3.941.0021.0021.00
#0000005.3321.001.001.00
##0000005.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#3573CB
Deuteranopia (green-blind)
#6D87C3
Tritanopia (blue-blind)
#DB507F
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #d340c7;
/* rgb */ color: rgb(211, 64, 199);
/* oklch */ color: oklch(63.1% 0.232 331.5);
Tailwind
colors: {
  custom: {
    50: '#e482d8',
    500: '#d340c7',
    950: '#000000',
  },
}
SCSS
$custom: #d340c7;
$custom-light: #e482d8;
$custom-dark: #000000;
JSON
{
  "hex": "#d340c7",
  "rgb": {
    "r": 211,
    "g": 64,
    "b": 199
  },
  "hsl": {
    "h": 304.898,
    "s": 62.553,
    "l": 53.922
  },
  "oklch": {
    "l": 0.63091,
    "c": 0.23211,
    "h": 331.5
  },
  "luminance": 0.21639
}

Semantic roles & 50–950 ramp

primary
#D340C7
secondary
#98D79D
accent
#E65042
background
#FEF8FD
surface
#FDF0FA
border
#D5CBD3
text
#160B14
muted
#847C83

Preview Lab

Preview with #D340C7

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

Preview Lab → · Contrast checker → · Palette generator →

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