#D640C5#D640C5

#D640C5 is a light, highly saturated purple. Relative luminance 0.220; OKLCH L 63.4% C 0.232 H 332.9°. Best body text is #000000 at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#D640C5
RGBrgb(214, 64, 197)
HSLhsl(307, 65%, 55%)
HSVhsv(307, 70%, 84%)
CMYKcmyk(0%, 70.1%, 7.9%, 16.1%)
CIE-LABlab(54.02, 71.75, -38.52)
CIE-LCHlch(54.02, 81.44, 331.77°)
OKLaboklab(63.42% 0.2068 -0.1056)
OKLCHoklch(63.42% 0.232 332.9)
XYZxyz(39.6432, 21.9974, 54.9705)
Luminance0.2199 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D640C5 #40D651
analogous
#9C40D6 #D640C5 #D6407A
triadic
#D640C5 #C5D640 #40C5D6
tetradic
#D640C5 #D69C40 #40D651 #407AD6
square
#D640C5 #D69C40 #40D651 #407AD6
split-complementary
#D640C5 #7AD640 #40D69C
monochromatic
#801B75 #B226A3 #D640C5 #E172D4 #ECA5E4

Accessibility & contrast

On white

3.89
#D640C5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.40
#D640C5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D640C5
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D640C5#FFFFFF#000000##000000
##D640C51.003.895.405.40
#FFFFFF3.891.0021.0021.00
#0000005.4021.001.001.00
##0000005.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#3A73C9
Deuteranopia (green-blind)
#7189C1
Tritanopia (blue-blind)
#DF4F7E
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #d640c5;
/* rgb */ color: rgb(214, 64, 197);
/* oklch */ color: oklch(63.4% 0.232 332.9);
Tailwind
colors: {
  custom: {
    50: '#e682d7',
    500: '#d640c5',
    950: '#000000',
  },
}
SCSS
$custom: #d640c5;
$custom-light: #e682d7;
$custom-dark: #000000;
JSON
{
  "hex": "#d640c5",
  "rgb": {
    "r": 214,
    "g": 64,
    "b": 197
  },
  "hsl": {
    "h": 306.8,
    "s": 64.655,
    "l": 54.51
  },
  "oklch": {
    "l": 0.63424,
    "c": 0.23225,
    "h": 332.9
  },
  "luminance": 0.21994
}

Semantic roles & 50–950 ramp

primary
#D640C5
secondary
#99D9A0
accent
#E85340
background
#FEF8FD
surface
#FDF0FA
border
#D5CBD3
text
#160C14
muted
#847D83

Preview Lab

Preview with #D640C5

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

Preview Lab → · Contrast checker → · Palette generator →

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