#D240D3#D240D3

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

Color values

HEX#D240D3
RGBrgb(210, 64, 211)
HSLhsl(300, 63%, 54%)
HSVhsv(300, 70%, 83%)
CMYKcmyk(0.5%, 69.7%, 0%, 17.3%)
CIE-LABlab(54.11, 73.04, -46.45)
CIE-LCHlch(54.11, 86.56, 327.54°)
OKLaboklab(63.59% 0.2033 -0.1287)
OKLCHoklch(63.59% 0.241 327.7)
XYZxyz(40.1691, 22.0744, 63.7605)
Luminance0.2207 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D240D3 #41D340
analogous
#8940D3 #D240D3 #D3408B
triadic
#D240D3 #D3D240 #40D3D2
tetradic
#D240D3 #D38940 #41D340 #408BD3
square
#D240D3 #D38940 #41D340 #408BD3
split-complementary
#D240D3 #8BD340 #40D389
monochromatic
#7B1D7C #AD28AE #D240D3 #DE72DE #E9A3EA

Accessibility & contrast

On white

3.88
#D240D3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.41
#D240D3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D240D3
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D240D3#FFFFFF#000000##000000
##D240D31.003.885.415.41
#FFFFFF3.881.0021.0021.00
#0000005.4121.001.001.00
##0000005.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#2575D7
Deuteranopia (green-blind)
#6688CF
Tritanopia (blue-blind)
#D85685
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #d240d3;
/* rgb */ color: rgb(210, 64, 211);
/* oklch */ color: oklch(63.6% 0.241 327.7);
Tailwind
colors: {
  custom: {
    50: '#e482e1',
    500: '#d240d3',
    950: '#000000',
  },
}
SCSS
$custom: #d240d3;
$custom-light: #e482e1;
$custom-dark: #000000;
JSON
{
  "hex": "#d240d3",
  "rgb": {
    "r": 210,
    "g": 64,
    "b": 211
  },
  "hsl": {
    "h": 299.592,
    "s": 62.553,
    "l": 53.922
  },
  "oklch": {
    "l": 0.63592,
    "c": 0.24059,
    "h": 327.7
  },
  "luminance": 0.22072
}

Semantic roles & 50–950 ramp

primary
#D240D3
secondary
#98D798
accent
#E64243
background
#FEF8FD
surface
#FDF0FB
border
#D5CBD4
text
#160C15
muted
#847D83

Preview Lab

Preview with #D240D3

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

Preview Lab → · Contrast checker → · Palette generator →

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