#D240D4#D240D4

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

Color values

HEX#D240D4
RGBrgb(210, 64, 212)
HSLhsl(299, 63%, 54%)
HSVhsv(299, 70%, 83%)
CMYKcmyk(0.9%, 69.8%, 0%, 16.9%)
CIE-LABlab(54.16, 73.20, -46.94)
CIE-LCHlch(54.16, 86.96, 327.33°)
OKLaboklab(63.65% 0.2033 -0.1301)
OKLCHoklch(63.65% 0.241 327.4)
XYZxyz(40.2948, 22.1247, 64.4228)
Luminance0.2212 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D240D4 #42D440
analogous
#8840D4 #D240D4 #D4408C
triadic
#D240D4 #D4D240 #40D4D2
tetradic
#D240D4 #D48840 #42D440 #408CD4
square
#D240D4 #D48840 #42D440 #408CD4
split-complementary
#D240D4 #8CD440 #40D488
monochromatic
#7C1C7D #AD27AF #D240D4 #DE72DF #EAA4EA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##D240D4#FFFFFF#000000##000000
##D240D41.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)
#2475D8
Deuteranopia (green-blind)
#6588D0
Tritanopia (blue-blind)
#D85786
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #d240d4;
/* rgb */ color: rgb(210, 64, 212);
/* oklch */ color: oklch(63.6% 0.241 327.4);
Tailwind
colors: {
  custom: {
    50: '#e482e2',
    500: '#d240d4',
    950: '#000000',
  },
}
SCSS
$custom: #d240d4;
$custom-light: #e482e2;
$custom-dark: #000000;
JSON
{
  "hex": "#d240d4",
  "rgb": {
    "r": 210,
    "g": 64,
    "b": 212
  },
  "hsl": {
    "h": 299.189,
    "s": 63.248,
    "l": 54.118
  },
  "oklch": {
    "l": 0.63647,
    "c": 0.24135,
    "h": 327.4
  },
  "luminance": 0.22122
}

Semantic roles & 50–950 ramp

primary
#D240D4
secondary
#99D798
accent
#E64244
background
#FEF8FD
surface
#FDF0FB
border
#D5CBD4
text
#160C15
muted
#847D83

Preview Lab

Preview with #D240D4

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

Preview Lab → · Contrast checker → · Palette generator →

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