#D240A6#D240A6

#D240A6 is a mid, highly saturated pink. Relative luminance 0.201; OKLCH L 61.4% C 0.209 H 342.3°. Best body text is #000000 at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#D240A6
RGBrgb(210, 64, 166)
HSLhsl(318, 62%, 54%)
HSVhsv(318, 70%, 82%)
CMYKcmyk(0%, 69.5%, 21%, 17.6%)
CIE-LABlab(51.98, 66.38, -23.72)
CIE-LCHlch(51.98, 70.49, 340.33°)
OKLaboklab(61.36% 0.1991 -0.0636)
OKLCHoklch(61.36% 0.209 342.3)
XYZxyz(35.2958, 20.1251, 38.0947)
Luminance0.2012 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D240A6 #40D26C
analogous
#B540D2 #D240A6 #D2405D
triadic
#D240A6 #A6D240 #40A6D2
tetradic
#D240A6 #D2B540 #40D26C #405DD2
square
#D240A6 #D2B540 #40D26C #405DD2
split-complementary
#D240A6 #5DD240 #40D2B5
monochromatic
#7B1D5E #AC2985 #D240A6 #DE72BD #E9A3D4

Accessibility & contrast

On white

4.18
#D240A6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.02
#D240A6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D240A6
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D240A6#FFFFFF#000000##000000
##D240A61.004.185.025.02
#FFFFFF4.181.0021.0021.00
#0000005.0221.001.001.00
##0000005.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#4D6DA9
Deuteranopia (green-blind)
#7A85A3
Tritanopia (blue-blind)
#DF416D
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #d240a6;
/* rgb */ color: rgb(210, 64, 166);
/* oklch */ color: oklch(61.4% 0.209 342.3);
Tailwind
colors: {
  custom: {
    50: '#e480c0',
    500: '#d240a6',
    950: '#000000',
  },
}
SCSS
$custom: #d240a6;
$custom-light: #e480c0;
$custom-dark: #000000;
JSON
{
  "hex": "#d240a6",
  "rgb": {
    "r": 210,
    "g": 64,
    "b": 166
  },
  "hsl": {
    "h": 318.082,
    "s": 61.864,
    "l": 53.725
  },
  "oklch": {
    "l": 0.61362,
    "c": 0.20901,
    "h": 342.3
  },
  "luminance": 0.20122
}

Semantic roles & 50–950 ramp

primary
#D240A6
secondary
#98D6AA
accent
#E57443
background
#FEF8FB
surface
#FDEFF7
border
#D5CAD0
text
#160B12
muted
#847C81

Preview Lab

Preview with #D240A6

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

Preview Lab → · Contrast checker → · Palette generator →

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