#D240A8#D240A8

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

Color values

HEX#D240A8
RGBrgb(210, 64, 168)
HSLhsl(317, 62%, 54%)
HSVhsv(317, 70%, 82%)
CMYKcmyk(0%, 69.5%, 20%, 17.6%)
CIE-LABlab(52.06, 66.65, -24.77)
CIE-LCHlch(52.06, 71.10, 339.61°)
OKLaboklab(61.45% 0.1994 -0.0665)
OKLCHoklch(61.45% 0.21 341.6)
XYZxyz(35.4807, 20.1991, 39.0684)
Luminance0.2020 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D240A8 #40D26A
analogous
#B340D2 #D240A8 #D2405F
triadic
#D240A8 #A8D240 #40A8D2
tetradic
#D240A8 #D2B340 #40D26A #405FD2
square
#D240A8 #D2B340 #40D26A #405FD2
split-complementary
#D240A8 #5FD240 #40D2B3
monochromatic
#7B1D60 #AC2986 #D240A8 #DE72BF #E9A3D5

Accessibility & contrast

On white

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

On black

5.04
#D240A8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D240A8
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D240A8#FFFFFF#000000##000000
##D240A81.004.175.045.04
#FFFFFF4.171.0021.0021.00
#0000005.0421.001.001.00
##0000005.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#4C6DAB
Deuteranopia (green-blind)
#7985A5
Tritanopia (blue-blind)
#DF426F
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #d240a8;
/* rgb */ color: rgb(210, 64, 168);
/* oklch */ color: oklch(61.5% 0.210 341.6);
Tailwind
colors: {
  custom: {
    50: '#e480c2',
    500: '#d240a8',
    950: '#000000',
  },
}
SCSS
$custom: #d240a8;
$custom-light: #e480c2;
$custom-dark: #000000;
JSON
{
  "hex": "#d240a8",
  "rgb": {
    "r": 210,
    "g": 64,
    "b": 168
  },
  "hsl": {
    "h": 317.26,
    "s": 61.864,
    "l": 53.725
  },
  "oklch": {
    "l": 0.6145,
    "c": 0.21026,
    "h": 341.6
  },
  "luminance": 0.20196
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D240A8

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

Preview Lab → · Contrast checker → · Palette generator →

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