#D240A7#D240A7

#D240A7 is a mid, highly saturated pink. Relative luminance 0.202; OKLCH L 61.4% C 0.210 H 341.9°. Best body text is #000000 at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#D240A7
RGBrgb(210, 64, 167)
HSLhsl(318, 62%, 54%)
HSVhsv(318, 70%, 82%)
CMYKcmyk(0%, 69.5%, 20.5%, 17.6%)
CIE-LABlab(52.02, 66.51, -24.25)
CIE-LCHlch(52.02, 70.79, 339.97°)
OKLaboklab(61.41% 0.1993 -0.0651)
OKLCHoklch(61.41% 0.21 341.9)
XYZxyz(35.3879, 20.1619, 38.5797)
Luminance0.2016 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D240A7 #40D26B
analogous
#B440D2 #D240A7 #D2405E
triadic
#D240A7 #A7D240 #40A7D2
tetradic
#D240A7 #D2B440 #40D26B #405ED2
square
#D240A7 #D2B440 #40D26B #405ED2
split-complementary
#D240A7 #5ED240 #40D2B4
monochromatic
#7B1D5F #AC2985 #D240A7 #DE72BE #E9A3D5

Accessibility & contrast

On white

4.17
#D240A7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.03
#D240A7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D240A7
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D240A7#FFFFFF#000000##000000
##D240A71.004.175.035.03
#FFFFFF4.171.0021.0021.00
#0000005.0321.001.001.00
##0000005.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#4C6DAA
Deuteranopia (green-blind)
#7985A4
Tritanopia (blue-blind)
#DF426E
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #d240a7;
/* rgb */ color: rgb(210, 64, 167);
/* oklch */ color: oklch(61.4% 0.210 341.9);
Tailwind
colors: {
  custom: {
    50: '#e480c1',
    500: '#d240a7',
    950: '#000000',
  },
}
SCSS
$custom: #d240a7;
$custom-light: #e480c1;
$custom-dark: #000000;
JSON
{
  "hex": "#d240a7",
  "rgb": {
    "r": 210,
    "g": 64,
    "b": 167
  },
  "hsl": {
    "h": 317.671,
    "s": 61.864,
    "l": 53.725
  },
  "oklch": {
    "l": 0.61406,
    "c": 0.20963,
    "h": 341.9
  },
  "luminance": 0.20158
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D240A7

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

Preview Lab → · Contrast checker → · Palette generator →

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