#D240AB#D240AB

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

Color values

HEX#D240AB
RGBrgb(210, 64, 171)
HSLhsl(316, 62%, 54%)
HSVhsv(316, 70%, 82%)
CMYKcmyk(0%, 69.5%, 18.6%, 17.6%)
CIE-LABlab(52.19, 67.05, -26.34)
CIE-LCHlch(52.19, 72.04, 338.56°)
OKLaboklab(61.58% 0.2 -0.0709)
OKLCHoklch(61.58% 0.212 340.5)
XYZxyz(35.7634, 20.3121, 40.5573)
Luminance0.2031 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D240AB #40D267
analogous
#B040D2 #D240AB #D24062
triadic
#D240AB #ABD240 #40ABD2
tetradic
#D240AB #D2B040 #40D267 #4062D2
square
#D240AB #D2B040 #40D267 #4062D2
split-complementary
#D240AB #62D240 #40D2B0
monochromatic
#7B1D62 #AC2989 #D240AB #DE72C1 #E9A3D7

Accessibility & contrast

On white

4.15
#D240AB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.06
#D240AB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D240AB
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D240AB#FFFFFF#000000##000000
##D240AB1.004.155.065.06
#FFFFFF4.151.0021.0021.00
#0000005.0621.001.001.00
##0000005.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#4A6EAE
Deuteranopia (green-blind)
#7885A8
Tritanopia (blue-blind)
#DE4470
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #d240ab;
/* rgb */ color: rgb(210, 64, 171);
/* oklch */ color: oklch(61.6% 0.212 340.5);
Tailwind
colors: {
  custom: {
    50: '#e481c4',
    500: '#d240ab',
    950: '#000000',
  },
}
SCSS
$custom: #d240ab;
$custom-light: #e481c4;
$custom-dark: #000000;
JSON
{
  "hex": "#d240ab",
  "rgb": {
    "r": 210,
    "g": 64,
    "b": 171
  },
  "hsl": {
    "h": 316.027,
    "s": 61.864,
    "l": 53.725
  },
  "oklch": {
    "l": 0.61584,
    "c": 0.21216,
    "h": 340.5
  },
  "luminance": 0.20309
}

Semantic roles & 50–950 ramp

primary
#D240AB
secondary
#98D6A8
accent
#E56E43
background
#FEF8FC
surface
#FDEFF8
border
#D5CAD1
text
#160B12
muted
#847C81

Preview Lab

Preview with #D240AB

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

Preview Lab → · Contrast checker → · Palette generator →

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