#D240C6#D240C6

#D240C6 is a light, highly saturated purple. Relative luminance 0.214; OKLCH L 62.9% C 0.231 H 331.5°. Best body text is #000000 at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#D240C6
RGBrgb(210, 64, 198)
HSLhsl(305, 62%, 54%)
HSVhsv(305, 70%, 82%)
CMYKcmyk(0%, 69.5%, 5.7%, 17.6%)
CIE-LABlab(53.44, 70.99, -40.06)
CIE-LCHlch(53.44, 81.51, 330.56°)
OKLaboklab(62.89% 0.2029 -0.1102)
OKLCHoklch(62.89% 0.231 331.5)
XYZxyz(38.6048, 21.4487, 55.5219)
Luminance0.2145 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D240C6 #40D24C
analogous
#9540D2 #D240C6 #D2407D
triadic
#D240C6 #C6D240 #40C6D2
tetradic
#D240C6 #D29540 #40D24C #407DD2
square
#D240C6 #D29540 #40D24C #407DD2
split-complementary
#D240C6 #7DD240 #40D295
monochromatic
#7B1D73 #AC29A1 #D240C6 #DE72D5 #E9A3E4

Accessibility & contrast

On white

3.97
#D240C6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.29
#D240C6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D240C6
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D240C6#FFFFFF#000000##000000
##D240C61.003.975.295.29
#FFFFFF3.971.0021.0021.00
#0000005.2921.001.001.00
##0000005.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#3673CA
Deuteranopia (green-blind)
#6D87C2
Tritanopia (blue-blind)
#DA507E
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #d240c6;
/* rgb */ color: rgb(210, 64, 198);
/* oklch */ color: oklch(62.9% 0.231 331.5);
Tailwind
colors: {
  custom: {
    50: '#e481d8',
    500: '#d240c6',
    950: '#000000',
  },
}
SCSS
$custom: #d240c6;
$custom-light: #e481d8;
$custom-dark: #000000;
JSON
{
  "hex": "#d240c6",
  "rgb": {
    "r": 210,
    "g": 64,
    "b": 198
  },
  "hsl": {
    "h": 304.932,
    "s": 61.864,
    "l": 53.725
  },
  "oklch": {
    "l": 0.62894,
    "c": 0.23085,
    "h": 331.5
  },
  "luminance": 0.21446
}

Semantic roles & 50–950 ramp

primary
#D240C6
secondary
#98D69D
accent
#E55043
background
#FEF8FD
surface
#FDF0FA
border
#D5CBD3
text
#160B14
muted
#847C83

Preview Lab

Preview with #D240C6

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

Preview Lab → · Contrast checker → · Palette generator →

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