#D240C7#D240C7

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

Color values

HEX#D240C7
RGBrgb(210, 64, 199)
HSLhsl(305, 62%, 54%)
HSVhsv(305, 70%, 82%)
CMYKcmyk(0%, 69.5%, 5.2%, 17.6%)
CIE-LABlab(53.49, 71.14, -40.56)
CIE-LCHlch(53.49, 81.89, 330.31°)
OKLaboklab(62.95% 0.2029 -0.1116)
OKLCHoklch(62.95% 0.232 331.2)
XYZxyz(38.7205, 21.4950, 56.1313)
Luminance0.2149 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D240C7 #40D24B
analogous
#9440D2 #D240C7 #D2407E
triadic
#D240C7 #C7D240 #40C7D2
tetradic
#D240C7 #D29440 #40D24B #407ED2
square
#D240C7 #D29440 #40D24B #407ED2
split-complementary
#D240C7 #7ED240 #40D294
monochromatic
#7B1D74 #AC29A2 #D240C7 #DE72D6 #E9A3E4

Accessibility & contrast

On white

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

On black

5.30
#D240C7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D240C7
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D240C7#FFFFFF#000000##000000
##D240C71.003.965.305.30
#FFFFFF3.961.0021.0021.00
#0000005.3021.001.001.00
##0000005.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#3573CB
Deuteranopia (green-blind)
#6C87C3
Tritanopia (blue-blind)
#DA517F
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #d240c7;
/* rgb */ color: rgb(210, 64, 199);
/* oklch */ color: oklch(62.9% 0.232 331.2);
Tailwind
colors: {
  custom: {
    50: '#e481d8',
    500: '#d240c7',
    950: '#000000',
  },
}
SCSS
$custom: #d240c7;
$custom-light: #e481d8;
$custom-dark: #000000;
JSON
{
  "hex": "#d240c7",
  "rgb": {
    "r": 210,
    "g": 64,
    "b": 199
  },
  "hsl": {
    "h": 304.521,
    "s": 61.864,
    "l": 53.725
  },
  "oklch": {
    "l": 0.62946,
    "c": 0.23158,
    "h": 331.2
  },
  "luminance": 0.21492
}

Semantic roles & 50–950 ramp

primary
#D240C7
secondary
#98D69C
accent
#E54F43
background
#FEF8FD
surface
#FDF0FA
border
#D5CBD3
text
#160B14
muted
#847C83

Preview Lab

Preview with #D240C7

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

Preview Lab → · Contrast checker → · Palette generator →

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