#D240C5#D240C5

#D240C5 is a light, highly saturated purple. Relative luminance 0.214; OKLCH L 62.8% C 0.230 H 331.8°. Best body text is #000000 at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#D240C5
RGBrgb(210, 64, 197)
HSLhsl(305, 62%, 54%)
HSVhsv(305, 70%, 82%)
CMYKcmyk(0%, 69.5%, 6.2%, 17.6%)
CIE-LABlab(53.39, 70.83, -39.57)
CIE-LCHlch(53.39, 81.14, 330.81°)
OKLaboklab(62.84% 0.2028 -0.1087)
OKLCHoklch(62.84% 0.23 331.8)
XYZxyz(38.4898, 21.4027, 54.9164)
Luminance0.2140 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D240C5 #40D24D
analogous
#9640D2 #D240C5 #D2407C
triadic
#D240C5 #C5D240 #40C5D2
tetradic
#D240C5 #D29640 #40D24D #407CD2
square
#D240C5 #D29640 #40D24D #407CD2
split-complementary
#D240C5 #7CD240 #40D296
monochromatic
#7B1D72 #AC29A1 #D240C5 #DE72D4 #E9A3E3

Accessibility & contrast

On white

3.98
#D240C5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.28
#D240C5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D240C5
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D240C5#FFFFFF#000000##000000
##D240C51.003.985.285.28
#FFFFFF3.981.0021.0021.00
#0000005.2821.001.001.00
##0000005.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#3772C9
Deuteranopia (green-blind)
#6D87C1
Tritanopia (blue-blind)
#DB507E
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #d240c5;
/* rgb */ color: rgb(210, 64, 197);
/* oklch */ color: oklch(62.8% 0.230 331.8);
Tailwind
colors: {
  custom: {
    50: '#e481d7',
    500: '#d240c5',
    950: '#000000',
  },
}
SCSS
$custom: #d240c5;
$custom-light: #e481d7;
$custom-dark: #000000;
JSON
{
  "hex": "#d240c5",
  "rgb": {
    "r": 210,
    "g": 64,
    "b": 197
  },
  "hsl": {
    "h": 305.342,
    "s": 61.864,
    "l": 53.725
  },
  "oklch": {
    "l": 0.62842,
    "c": 0.23012,
    "h": 331.8
  },
  "luminance": 0.214
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D240C5

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

Preview Lab → · Contrast checker → · Palette generator →

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