#D240C3#D240C3

#D240C3 is a light, highly saturated purple. Relative luminance 0.213; OKLCH L 62.7% C 0.229 H 332.4°. Best body text is #000000 at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#D240C3
RGBrgb(210, 64, 195)
HSLhsl(306, 62%, 54%)
HSVhsv(306, 70%, 82%)
CMYKcmyk(0%, 69.5%, 7.1%, 17.6%)
CIE-LABlab(53.29, 70.53, -38.57)
CIE-LCHlch(53.29, 80.39, 331.33°)
OKLaboklab(62.74% 0.2027 -0.1059)
OKLCHoklch(62.74% 0.229 332.4)
XYZxyz(38.2622, 21.3116, 53.7175)
Luminance0.2131 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D240C3 #40D24F
analogous
#9840D2 #D240C3 #D2407A
triadic
#D240C3 #C3D240 #40C3D2
tetradic
#D240C3 #D29840 #40D24F #407AD2
square
#D240C3 #D29840 #40D24F #407AD2
split-complementary
#D240C3 #7AD240 #40D298
monochromatic
#7B1D71 #AC299F #D240C3 #DE72D3 #E9A3E2

Accessibility & contrast

On white

3.99
#D240C3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.26
#D240C3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D240C3
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D240C3#FFFFFF#000000##000000
##D240C31.003.995.265.26
#FFFFFF3.991.0021.0021.00
#0000005.2621.001.001.00
##0000005.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#3972C7
Deuteranopia (green-blind)
#6E87BF
Tritanopia (blue-blind)
#DB4F7D
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #d240c3;
/* rgb */ color: rgb(210, 64, 195);
/* oklch */ color: oklch(62.7% 0.229 332.4);
Tailwind
colors: {
  custom: {
    50: '#e481d5',
    500: '#d240c3',
    950: '#000000',
  },
}
SCSS
$custom: #d240c3;
$custom-light: #e481d5;
$custom-dark: #000000;
JSON
{
  "hex": "#d240c3",
  "rgb": {
    "r": 210,
    "g": 64,
    "b": 195
  },
  "hsl": {
    "h": 306.164,
    "s": 61.864,
    "l": 53.725
  },
  "oklch": {
    "l": 0.62739,
    "c": 0.22866,
    "h": 332.4
  },
  "luminance": 0.21309
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D240C3

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

Preview Lab → · Contrast checker → · Palette generator →

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