#D740C4#D740C4

#D740C4 is a light, highly saturated purple. Relative luminance 0.221; OKLCH L 63.5% C 0.232 H 333.5°. Best body text is #000000 at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#D740C4
RGBrgb(215, 64, 196)
HSLhsl(308, 65%, 55%)
HSVhsv(308, 70%, 84%)
CMYKcmyk(0%, 70.2%, 8.8%, 15.7%)
CIE-LABlab(54.14, 71.83, -37.76)
CIE-LCHlch(54.14, 81.15, 332.27°)
OKLaboklab(63.52% 0.2078 -0.1034)
OKLCHoklch(63.52% 0.232 333.5)
XYZxyz(39.8218, 22.1027, 54.3828)
Luminance0.2210 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D740C4 #40D753
analogous
#9F40D7 #D740C4 #D74078
triadic
#D740C4 #C4D740 #40C4D7
tetradic
#D740C4 #D79F40 #40D753 #4078D7
square
#D740C4 #D79F40 #40D753 #4078D7
split-complementary
#D740C4 #78D740 #40D79F
monochromatic
#811B75 #B426A2 #D740C4 #E273D4 #ECA5E3

Accessibility & contrast

On white

3.87
#D740C4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.42
#D740C4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D740C4
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D740C4#FFFFFF#000000##000000
##D740C41.003.875.425.42
#FFFFFF3.871.0021.0021.00
#0000005.4221.001.001.00
##0000005.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#3B73C8
Deuteranopia (green-blind)
#7289C0
Tritanopia (blue-blind)
#E14E7D
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #d740c4;
/* rgb */ color: rgb(215, 64, 196);
/* oklch */ color: oklch(63.5% 0.232 333.5);
Tailwind
colors: {
  custom: {
    50: '#e782d6',
    500: '#d740c4',
    950: '#000000',
  },
}
SCSS
$custom: #d740c4;
$custom-light: #e782d6;
$custom-dark: #000000;
JSON
{
  "hex": "#d740c4",
  "rgb": {
    "r": 215,
    "g": 64,
    "b": 196
  },
  "hsl": {
    "h": 307.55,
    "s": 65.368,
    "l": 54.706
  },
  "oklch": {
    "l": 0.6352,
    "c": 0.23209,
    "h": 333.5
  },
  "luminance": 0.22099
}

Semantic roles & 50–950 ramp

primary
#D740C4
secondary
#9AD9A2
accent
#E8553F
background
#FEF8FD
surface
#FDF0FA
border
#D5CBD3
text
#160C14
muted
#847D83

Preview Lab

Preview with #D740C4

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

Preview Lab → · Contrast checker → · Palette generator →

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