#D240D1#D240D1

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

Color values

HEX#D240D1
RGBrgb(210, 64, 209)
HSLhsl(300, 62%, 54%)
HSVhsv(300, 70%, 82%)
CMYKcmyk(0%, 69.5%, 0.5%, 17.6%)
CIE-LABlab(54.00, 72.72, -45.48)
CIE-LCHlch(54.00, 85.77, 327.98°)
OKLaboklab(63.48% 0.2033 -0.1258)
OKLCHoklch(63.48% 0.239 328.2)
XYZxyz(39.9199, 21.9747, 62.4482)
Luminance0.2197 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D240D1 #40D241
analogous
#8A40D2 #D240D1 #D24088
triadic
#D240D1 #D1D240 #40D1D2
tetradic
#D240D1 #D28A40 #40D241 #4088D2
square
#D240D1 #D28A40 #40D241 #4088D2
split-complementary
#D240D1 #88D240 #40D28A
monochromatic
#7B1D7A #AC29AB #D240D1 #DE72DD #E9A3E9

Accessibility & contrast

On white

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

On black

5.39
#D240D1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D240D1
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D240D1#FFFFFF#000000##000000
##D240D11.003.895.395.39
#FFFFFF3.891.0021.0021.00
#0000005.3921.001.001.00
##0000005.3921.001.001.00

Color blindness preview

Protanopia (red-blind)
#2875D5
Deuteranopia (green-blind)
#6788CD
Tritanopia (blue-blind)
#D95584
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #d240d1;
/* rgb */ color: rgb(210, 64, 209);
/* oklch */ color: oklch(63.5% 0.239 328.2);
Tailwind
colors: {
  custom: {
    50: '#e482df',
    500: '#d240d1',
    950: '#000000',
  },
}
SCSS
$custom: #d240d1;
$custom-light: #e482df;
$custom-dark: #000000;
JSON
{
  "hex": "#d240d1",
  "rgb": {
    "r": 210,
    "g": 64,
    "b": 209
  },
  "hsl": {
    "h": 300.411,
    "s": 61.864,
    "l": 53.725
  },
  "oklch": {
    "l": 0.63482,
    "c": 0.23907,
    "h": 328.2
  },
  "luminance": 0.21972
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D240D1

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

Preview Lab → · Contrast checker → · Palette generator →

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