#D240D8#D240D8

#D240D8 is a light, highly saturated purple. Relative luminance 0.223; OKLCH L 63.9% C 0.244 H 326.3°. Best body text is #000000 at 5.47:1 contrast (WCAG AA passes).

Color values

HEX#D240D8
RGBrgb(210, 64, 216)
HSLhsl(298, 66%, 55%)
HSVhsv(298, 70%, 85%)
CMYKcmyk(2.8%, 70.4%, 0%, 15.3%)
CIE-LABlab(54.37, 73.86, -48.87)
CIE-LCHlch(54.37, 88.56, 326.51°)
OKLaboklab(63.87% 0.2033 -0.1357)
OKLCHoklch(63.87% 0.244 326.3)
XYZxyz(40.8056, 22.3290, 67.1131)
Luminance0.2233 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D240D8 #46D840
analogous
#8640D8 #D240D8 #D84092
triadic
#D240D8 #D8D240 #40D8D2
tetradic
#D240D8 #D88640 #46D840 #4092D8
square
#D240D8 #D88640 #46D840 #4092D8
split-complementary
#D240D8 #92D840 #40D886
monochromatic
#7F1B83 #B025B6 #D240D8 #DE73E2 #EAA6ED

Accessibility & contrast

On white

3.84
#D240D8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.47
#D240D8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D240D8
5.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D240D8#FFFFFF#000000##000000
##D240D81.003.845.475.47
#FFFFFF3.841.0021.0021.00
#0000005.4721.001.001.00
##0000005.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#1C76DC
Deuteranopia (green-blind)
#6388D4
Tritanopia (blue-blind)
#D75888
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #d240d8;
/* rgb */ color: rgb(210, 64, 216);
/* oklch */ color: oklch(63.9% 0.244 326.3);
Tailwind
colors: {
  custom: {
    50: '#e482e4',
    500: '#d240d8',
    950: '#000000',
  },
}
SCSS
$custom: #d240d8;
$custom-light: #e482e4;
$custom-dark: #000000;
JSON
{
  "hex": "#d240d8",
  "rgb": {
    "r": 210,
    "g": 64,
    "b": 216
  },
  "hsl": {
    "h": 297.632,
    "s": 66.087,
    "l": 54.902
  },
  "oklch": {
    "l": 0.63871,
    "c": 0.24442,
    "h": 326.3
  },
  "luminance": 0.22326
}

Semantic roles & 50–950 ramp

primary
#D240D8
secondary
#9CDA9A
accent
#E93F45
background
#FEF8FE
surface
#FDF0FC
border
#D5CBD5
text
#160C16
muted
#847D84

Preview Lab

Preview with #D240D8

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

Preview Lab → · Contrast checker → · Palette generator →

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