#D240A3#D240A3

#D240A3 is a mid, highly saturated pink. Relative luminance 0.200; OKLCH L 61.2% C 0.207 H 343.4°. Best body text is #000000 at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#D240A3
RGBrgb(210, 64, 163)
HSLhsl(319, 62%, 54%)
HSVhsv(319, 70%, 82%)
CMYKcmyk(0%, 69.5%, 22.4%, 17.6%)
CIE-LABlab(51.86, 65.98, -22.15)
CIE-LCHlch(51.86, 69.60, 341.45°)
OKLaboklab(61.23% 0.1985 -0.0592)
OKLCHoklch(61.23% 0.207 343.4)
XYZxyz(35.0238, 20.0163, 36.6623)
Luminance0.2001 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D240A3 #40D26F
analogous
#B840D2 #D240A3 #D2405A
triadic
#D240A3 #A3D240 #40A3D2
tetradic
#D240A3 #D2B840 #40D26F #405AD2
square
#D240A3 #D2B840 #40D26F #405AD2
split-complementary
#D240A3 #5AD240 #40D2B8
monochromatic
#7B1D5D #AC2982 #D240A3 #DE72BB #E9A3D3

Accessibility & contrast

On white

4.20
#D240A3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.00
#D240A3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D240A3
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D240A3#FFFFFF#000000##000000
##D240A31.004.205.005.00
#FFFFFF4.201.0021.0021.00
#0000005.0021.001.001.00
##0000005.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#4E6CA6
Deuteranopia (green-blind)
#7B84A0
Tritanopia (blue-blind)
#DF406C
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #d240a3;
/* rgb */ color: rgb(210, 64, 163);
/* oklch */ color: oklch(61.2% 0.207 343.4);
Tailwind
colors: {
  custom: {
    50: '#e480be',
    500: '#d240a3',
    950: '#000000',
  },
}
SCSS
$custom: #d240a3;
$custom-light: #e480be;
$custom-dark: #000000;
JSON
{
  "hex": "#d240a3",
  "rgb": {
    "r": 210,
    "g": 64,
    "b": 163
  },
  "hsl": {
    "h": 319.315,
    "s": 61.864,
    "l": 53.725
  },
  "oklch": {
    "l": 0.61233,
    "c": 0.20717,
    "h": 343.4
  },
  "luminance": 0.20013
}

Semantic roles & 50–950 ramp

primary
#D240A3
secondary
#98D6AC
accent
#E57743
background
#FEF8FB
surface
#FDEFF6
border
#D5CAD0
text
#160B12
muted
#847C81

Preview Lab

Preview with #D240A3

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

Preview Lab → · Contrast checker → · Palette generator →

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