#D240C4#D240C4

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

Color values

HEX#D240C4
RGBrgb(210, 64, 196)
HSLhsl(306, 62%, 54%)
HSVhsv(306, 70%, 82%)
CMYKcmyk(0%, 69.5%, 6.7%, 17.6%)
CIE-LABlab(53.34, 70.68, -39.07)
CIE-LCHlch(53.34, 80.76, 331.07°)
OKLaboklab(62.79% 0.2027 -0.1073)
OKLCHoklch(62.79% 0.229 332.1)
XYZxyz(38.3756, 21.3570, 54.3150)
Luminance0.2135 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D240C4 #40D24E
analogous
#9740D2 #D240C4 #D2407B
triadic
#D240C4 #C4D240 #40C4D2
tetradic
#D240C4 #D29740 #40D24E #407BD2
square
#D240C4 #D29740 #40D24E #407BD2
split-complementary
#D240C4 #7BD240 #40D297
monochromatic
#7B1D72 #AC29A0 #D240C4 #DE72D3 #E9A3E3

Accessibility & contrast

On white

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

On black

5.27
#D240C4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D240C4
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D240C4#FFFFFF#000000##000000
##D240C41.003.985.275.27
#FFFFFF3.981.0021.0021.00
#0000005.2721.001.001.00
##0000005.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#3872C8
Deuteranopia (green-blind)
#6E87C0
Tritanopia (blue-blind)
#DB4F7D
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #d240c4;
/* rgb */ color: rgb(210, 64, 196);
/* oklch */ color: oklch(62.8% 0.229 332.1);
Tailwind
colors: {
  custom: {
    50: '#e481d6',
    500: '#d240c4',
    950: '#000000',
  },
}
SCSS
$custom: #d240c4;
$custom-light: #e481d6;
$custom-dark: #000000;
JSON
{
  "hex": "#d240c4",
  "rgb": {
    "r": 210,
    "g": 64,
    "b": 196
  },
  "hsl": {
    "h": 305.753,
    "s": 61.864,
    "l": 53.725
  },
  "oklch": {
    "l": 0.62791,
    "c": 0.22939,
    "h": 332.1
  },
  "luminance": 0.21354
}

Semantic roles & 50–950 ramp

primary
#D240C4
secondary
#98D69E
accent
#E55243
background
#FEF8FD
surface
#FDF0FA
border
#D5CBD3
text
#160B14
muted
#847C83

Preview Lab

Preview with #D240C4

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

Preview Lab → · Contrast checker → · Palette generator →

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