#D740C2#D740C2

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

Color values

HEX#D740C2
RGBrgb(215, 64, 194)
HSLhsl(308, 65%, 55%)
HSVhsv(308, 70%, 84%)
CMYKcmyk(0%, 70.2%, 9.8%, 15.7%)
CIE-LABlab(54.04, 71.53, -36.76)
CIE-LCHlch(54.04, 80.42, 332.80°)
OKLaboklab(63.42% 0.2076 -0.1006)
OKLCHoklch(63.42% 0.231 334.2)
XYZxyz(39.5957, 22.0123, 53.1919)
Luminance0.2201 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D740C2 #40D755
analogous
#A040D7 #D740C2 #D74077
triadic
#D740C2 #C2D740 #40C2D7
tetradic
#D740C2 #D7A040 #40D755 #4077D7
square
#D740C2 #D7A040 #40D755 #4077D7
split-complementary
#D740C2 #77D740 #40D7A0
monochromatic
#811B73 #B426A0 #D740C2 #E273D2 #ECA5E2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##D740C2#FFFFFF#000000##000000
##D740C21.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)
#3D73C6
Deuteranopia (green-blind)
#7389BE
Tritanopia (blue-blind)
#E14D7C
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #d740c2;
/* rgb */ color: rgb(215, 64, 194);
/* oklch */ color: oklch(63.4% 0.231 334.2);
Tailwind
colors: {
  custom: {
    50: '#e782d5',
    500: '#d740c2',
    950: '#000000',
  },
}
SCSS
$custom: #d740c2;
$custom-light: #e782d5;
$custom-dark: #000000;
JSON
{
  "hex": "#d740c2",
  "rgb": {
    "r": 215,
    "g": 64,
    "b": 194
  },
  "hsl": {
    "h": 308.344,
    "s": 65.368,
    "l": 54.706
  },
  "oklch": {
    "l": 0.6342,
    "c": 0.23067,
    "h": 334.2
  },
  "luminance": 0.22009
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D740C2

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

Preview Lab → · Contrast checker → · Palette generator →

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