#D240C8#D240C8

#D240C8 is a light, highly saturated purple. Relative luminance 0.215; OKLCH L 63.0% C 0.232 H 330.9°. Best body text is #000000 at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#D240C8
RGBrgb(210, 64, 200)
HSLhsl(304, 62%, 54%)
HSVhsv(304, 70%, 82%)
CMYKcmyk(0%, 69.5%, 4.8%, 17.6%)
CIE-LABlab(53.54, 71.30, -41.06)
CIE-LCHlch(53.54, 82.27, 330.06°)
OKLaboklab(63% 0.203 -0.113)
OKLCHoklch(63% 0.232 330.9)
XYZxyz(38.8370, 21.5416, 56.7448)
Luminance0.2154 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D240C8 #40D24A
analogous
#9340D2 #D240C8 #D2407F
triadic
#D240C8 #C8D240 #40C8D2
tetradic
#D240C8 #D29340 #40D24A #407FD2
square
#D240C8 #D29340 #40D24A #407FD2
split-complementary
#D240C8 #7FD240 #40D293
monochromatic
#7B1D74 #AC29A3 #D240C8 #DE72D6 #E9A3E5

Accessibility & contrast

On white

3.96
#D240C8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.31
#D240C8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D240C8
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D240C8#FFFFFF#000000##000000
##D240C81.003.965.315.31
#FFFFFF3.961.0021.0021.00
#0000005.3121.001.001.00
##0000005.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#3473CC
Deuteranopia (green-blind)
#6C87C4
Tritanopia (blue-blind)
#DA517F
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #d240c8;
/* rgb */ color: rgb(210, 64, 200);
/* oklch */ color: oklch(63.0% 0.232 330.9);
Tailwind
colors: {
  custom: {
    50: '#e481d9',
    500: '#d240c8',
    950: '#000000',
  },
}
SCSS
$custom: #d240c8;
$custom-light: #e481d9;
$custom-dark: #000000;
JSON
{
  "hex": "#d240c8",
  "rgb": {
    "r": 210,
    "g": 64,
    "b": 200
  },
  "hsl": {
    "h": 304.11,
    "s": 61.864,
    "l": 53.725
  },
  "oklch": {
    "l": 0.62999,
    "c": 0.23233,
    "h": 330.9
  },
  "luminance": 0.21539
}

Semantic roles & 50–950 ramp

primary
#D240C8
secondary
#98D69C
accent
#E54E43
background
#FEF8FD
surface
#FDF0FA
border
#D5CBD3
text
#160B15
muted
#847C83

Preview Lab

Preview with #D240C8

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

Preview Lab → · Contrast checker → · Palette generator →

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