#D240A2#D240A2

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

Color values

HEX#D240A2
RGBrgb(210, 64, 162)
HSLhsl(320, 62%, 54%)
HSVhsv(320, 70%, 82%)
CMYKcmyk(0%, 69.5%, 22.9%, 17.6%)
CIE-LABlab(51.82, 65.85, -21.62)
CIE-LCHlch(51.82, 69.31, 341.82°)
OKLaboklab(61.19% 0.1984 -0.0577)
OKLCHoklch(61.19% 0.207 343.8)
XYZxyz(34.9346, 19.9806, 36.1923)
Luminance0.1998 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D240A2 #40D270
analogous
#B940D2 #D240A2 #D24059
triadic
#D240A2 #A2D240 #40A2D2
tetradic
#D240A2 #D2B940 #40D270 #4059D2
square
#D240A2 #D2B940 #40D270 #4059D2
split-complementary
#D240A2 #59D240 #40D2B9
monochromatic
#7B1D5C #AC2981 #D240A2 #DE72BA #E9A3D2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##D240A2#FFFFFF#000000##000000
##D240A21.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)
#4F6CA5
Deuteranopia (green-blind)
#7B849F
Tritanopia (blue-blind)
#DF406B
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #d240a2;
/* rgb */ color: rgb(210, 64, 162);
/* oklch */ color: oklch(61.2% 0.207 343.8);
Tailwind
colors: {
  custom: {
    50: '#e480bd',
    500: '#d240a2',
    950: '#000000',
  },
}
SCSS
$custom: #d240a2;
$custom-light: #e480bd;
$custom-dark: #000000;
JSON
{
  "hex": "#d240a2",
  "rgb": {
    "r": 210,
    "g": 64,
    "b": 162
  },
  "hsl": {
    "h": 319.726,
    "s": 61.864,
    "l": 53.725
  },
  "oklch": {
    "l": 0.6119,
    "c": 0.20657,
    "h": 343.8
  },
  "luminance": 0.19977
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D240A2

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

Preview Lab → · Contrast checker → · Palette generator →

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