#D240AF#D240AF

#D240AF is a mid, highly saturated pink. Relative luminance 0.205; OKLCH L 61.8% C 0.215 H 339.0°. Best body text is #000000 at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#D240AF
RGBrgb(210, 64, 175)
HSLhsl(314, 62%, 54%)
HSVhsv(314, 70%, 82%)
CMYKcmyk(0%, 69.5%, 16.7%, 17.6%)
CIE-LABlab(52.36, 67.61, -28.41)
CIE-LCHlch(52.36, 73.33, 337.21°)
OKLaboklab(61.77% 0.2006 -0.0768)
OKLCHoklch(61.77% 0.215 339)
XYZxyz(36.1504, 20.4670, 42.5958)
Luminance0.2046 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D240AF #40D263
analogous
#AC40D2 #D240AF #D24066
triadic
#D240AF #AFD240 #40AFD2
tetradic
#D240AF #D2AC40 #40D263 #4066D2
square
#D240AF #D2AC40 #40D263 #4066D2
split-complementary
#D240AF #66D240 #40D2AC
monochromatic
#7B1D64 #AC298D #D240AF #DE72C4 #E9A3D8

Accessibility & contrast

On white

4.12
#D240AF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.09
#D240AF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D240AF
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D240AF#FFFFFF#000000##000000
##D240AF1.004.125.095.09
#FFFFFF4.121.0021.0021.00
#0000005.0921.001.001.00
##0000005.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#486EB2
Deuteranopia (green-blind)
#7785AC
Tritanopia (blue-blind)
#DE4672
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #d240af;
/* rgb */ color: rgb(210, 64, 175);
/* oklch */ color: oklch(61.8% 0.215 339.0);
Tailwind
colors: {
  custom: {
    50: '#e481c7',
    500: '#d240af',
    950: '#000000',
  },
}
SCSS
$custom: #d240af;
$custom-light: #e481c7;
$custom-dark: #000000;
JSON
{
  "hex": "#d240af",
  "rgb": {
    "r": 210,
    "g": 64,
    "b": 175
  },
  "hsl": {
    "h": 314.384,
    "s": 61.864,
    "l": 53.725
  },
  "oklch": {
    "l": 0.61766,
    "c": 0.21477,
    "h": 339
  },
  "luminance": 0.20464
}

Semantic roles & 50–950 ramp

primary
#D240AF
secondary
#98D6A7
accent
#E56A43
background
#FEF8FC
surface
#FDEFF8
border
#D5CAD1
text
#160B13
muted
#847C82

Preview Lab

Preview with #D240AF

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

Preview Lab → · Contrast checker → · Palette generator →

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