#D240AC#D240AC

#D240AC is a mid, highly saturated pink. Relative luminance 0.203; OKLCH L 61.6% C 0.213 H 340.1°. Best body text is #000000 at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#D240AC
RGBrgb(210, 64, 172)
HSLhsl(316, 62%, 54%)
HSVhsv(316, 70%, 82%)
CMYKcmyk(0%, 69.5%, 18.1%, 17.6%)
CIE-LABlab(52.23, 67.19, -26.86)
CIE-LCHlch(52.23, 72.36, 338.21°)
OKLaboklab(61.63% 0.2001 -0.0724)
OKLCHoklch(61.63% 0.213 340.1)
XYZxyz(35.8591, 20.3504, 41.0612)
Luminance0.2035 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D240AC #40D266
analogous
#AF40D2 #D240AC #D24063
triadic
#D240AC #ACD240 #40ACD2
tetradic
#D240AC #D2AF40 #40D266 #4063D2
square
#D240AC #D2AF40 #40D266 #4063D2
split-complementary
#D240AC #63D240 #40D2AF
monochromatic
#7B1D62 #AC298A #D240AC #DE72C2 #E9A3D7

Accessibility & contrast

On white

4.14
#D240AC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.07
#D240AC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D240AC
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D240AC#FFFFFF#000000##000000
##D240AC1.004.145.075.07
#FFFFFF4.141.0021.0021.00
#0000005.0721.001.001.00
##0000005.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#4A6EAF
Deuteranopia (green-blind)
#7885A9
Tritanopia (blue-blind)
#DE4471
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #d240ac;
/* rgb */ color: rgb(210, 64, 172);
/* oklch */ color: oklch(61.6% 0.213 340.1);
Tailwind
colors: {
  custom: {
    50: '#e481c5',
    500: '#d240ac',
    950: '#000000',
  },
}
SCSS
$custom: #d240ac;
$custom-light: #e481c5;
$custom-dark: #000000;
JSON
{
  "hex": "#d240ac",
  "rgb": {
    "r": 210,
    "g": 64,
    "b": 172
  },
  "hsl": {
    "h": 315.616,
    "s": 61.864,
    "l": 53.725
  },
  "oklch": {
    "l": 0.61629,
    "c": 0.21281,
    "h": 340.1
  },
  "luminance": 0.20347
}

Semantic roles & 50–950 ramp

primary
#D240AC
secondary
#98D6A8
accent
#E56D43
background
#FEF8FC
surface
#FDEFF8
border
#D5CAD1
text
#160B13
muted
#847C82

Preview Lab

Preview with #D240AC

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

Preview Lab → · Contrast checker → · Palette generator →

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