#D240D2#D240D2

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

Color values

HEX#D240D2
RGBrgb(210, 64, 210)
HSLhsl(300, 62%, 54%)
HSVhsv(300, 70%, 82%)
CMYKcmyk(0%, 69.5%, 0%, 17.6%)
CIE-LABlab(54.05, 72.88, -45.97)
CIE-LCHlch(54.05, 86.16, 327.76°)
OKLaboklab(63.54% 0.2033 -0.1273)
OKLCHoklch(63.54% 0.24 328)
XYZxyz(40.0441, 22.0244, 63.1023)
Luminance0.2202 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D240D2 #40D240
analogous
#8940D2 #D240D2 #D24089
triadic
#D240D2 #D2D240 #40D2D2
tetradic
#D240D2 #D28940 #40D240 #4089D2
square
#D240D2 #D28940 #40D240 #4089D2
split-complementary
#D240D2 #89D240 #40D289
monochromatic
#7B1D7B #AC29AC #D240D2 #DE72DE #E9A3E9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##D240D2#FFFFFF#000000##000000
##D240D21.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)
#2775D6
Deuteranopia (green-blind)
#6688CE
Tritanopia (blue-blind)
#D85685
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #d240d2;
/* rgb */ color: rgb(210, 64, 210);
/* oklch */ color: oklch(63.5% 0.240 328.0);
Tailwind
colors: {
  custom: {
    50: '#e482e0',
    500: '#d240d2',
    950: '#000000',
  },
}
SCSS
$custom: #d240d2;
$custom-light: #e482e0;
$custom-dark: #000000;
JSON
{
  "hex": "#d240d2",
  "rgb": {
    "r": 210,
    "g": 64,
    "b": 210
  },
  "hsl": {
    "h": 300,
    "s": 61.864,
    "l": 53.725
  },
  "oklch": {
    "l": 0.63537,
    "c": 0.23982,
    "h": 328
  },
  "luminance": 0.22022
}

Semantic roles & 50–950 ramp

primary
#D240D2
secondary
#98D698
accent
#E54343
background
#FEF8FD
surface
#FDF0FB
border
#D5CBD4
text
#160C15
muted
#847D83

Preview Lab

Preview with #D240D2

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

Preview Lab → · Contrast checker → · Palette generator →

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