#D340C2#D340C2

#D340C2 is a light, highly saturated purple. Relative luminance 0.214; OKLCH L 62.8% C 0.228 H 333.0°. Best body text is #000000 at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#D340C2
RGBrgb(211, 64, 194)
HSLhsl(307, 63%, 54%)
HSVhsv(307, 70%, 83%)
CMYKcmyk(0%, 69.7%, 8.1%, 17.3%)
CIE-LABlab(53.40, 70.61, -37.81)
CIE-LCHlch(53.40, 80.09, 331.83°)
OKLaboklab(62.83% 0.2036 -0.1037)
OKLCHoklch(62.83% 0.228 333)
XYZxyz(38.4351, 21.4139, 53.1375)
Luminance0.2141 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D340C2 #40D351
analogous
#9B40D3 #D340C2 #D34079
triadic
#D340C2 #C2D340 #40C2D3
tetradic
#D340C2 #D39B40 #40D351 #4079D3
square
#D340C2 #D39B40 #40D351 #4079D3
split-complementary
#D340C2 #79D340 #40D39B
monochromatic
#7C1D71 #AE289E #D340C2 #DE72D2 #EAA3E2

Accessibility & contrast

On white

3.98
#D340C2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.28
#D340C2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D340C2
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D340C2#FFFFFF#000000##000000
##D340C21.003.985.285.28
#FFFFFF3.981.0021.0021.00
#0000005.2821.001.001.00
##0000005.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#3A72C6
Deuteranopia (green-blind)
#6F87BE
Tritanopia (blue-blind)
#DC4E7C
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #d340c2;
/* rgb */ color: rgb(211, 64, 194);
/* oklch */ color: oklch(62.8% 0.228 333.0);
Tailwind
colors: {
  custom: {
    50: '#e481d5',
    500: '#d340c2',
    950: '#000000',
  },
}
SCSS
$custom: #d340c2;
$custom-light: #e481d5;
$custom-dark: #000000;
JSON
{
  "hex": "#d340c2",
  "rgb": {
    "r": 211,
    "g": 64,
    "b": 194
  },
  "hsl": {
    "h": 306.939,
    "s": 62.553,
    "l": 53.922
  },
  "oklch": {
    "l": 0.62834,
    "c": 0.22848,
    "h": 333
  },
  "luminance": 0.21411
}

Semantic roles & 50–950 ramp

primary
#D340C2
secondary
#98D79F
accent
#E65542
background
#FEF8FD
surface
#FDF0FA
border
#D5CBD3
text
#160B14
muted
#847C83

Preview Lab

Preview with #D340C2

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

Preview Lab → · Contrast checker → · Palette generator →

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