#D040AF#D040AF

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

Color values

HEX#D040AF
RGBrgb(208, 64, 175)
HSLhsl(314, 61%, 53%)
HSVhsv(314, 69%, 82%)
CMYKcmyk(0%, 69.2%, 15.9%, 18.4%)
CIE-LABlab(52.03, 67.11, -28.94)
CIE-LCHlch(52.03, 73.09, 336.67°)
OKLaboklab(61.47% 0.1986 -0.0784)
OKLCHoklch(61.47% 0.214 338.5)
XYZxyz(35.5844, 20.1751, 42.5692)
Luminance0.2017 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D040AF #40D061
analogous
#A940D0 #D040AF #D04067
triadic
#D040AF #AFD040 #40AFD0
tetradic
#D040AF #D0A940 #40D061 #4067D0
square
#D040AF #D0A940 #40D061 #4067D0
split-complementary
#D040AF #67D040 #40D0A9
monochromatic
#781E63 #A92A8C #D040AF #DC71C4 #E8A2D8

Accessibility & contrast

On white

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

On black

5.03
#D040AF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D040AF
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D040AF#FFFFFF#000000##000000
##D040AF1.004.175.035.03
#FFFFFF4.171.0021.0021.00
#0000005.0321.001.001.00
##0000005.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#476EB2
Deuteranopia (green-blind)
#7584AC
Tritanopia (blue-blind)
#DB4672
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #d040af;
/* rgb */ color: rgb(208, 64, 175);
/* oklch */ color: oklch(61.5% 0.214 338.5);
Tailwind
colors: {
  custom: {
    50: '#e280c7',
    500: '#d040af',
    950: '#000000',
  },
}
SCSS
$custom: #d040af;
$custom-light: #e280c7;
$custom-dark: #000000;
JSON
{
  "hex": "#d040af",
  "rgb": {
    "r": 208,
    "g": 64,
    "b": 175
  },
  "hsl": {
    "h": 313.75,
    "s": 60.504,
    "l": 53.333
  },
  "oklch": {
    "l": 0.61466,
    "c": 0.21352,
    "h": 338.5
  },
  "luminance": 0.20172
}

Semantic roles & 50–950 ramp

primary
#D040AF
secondary
#97D5A5
accent
#E46944
background
#FEF8FC
surface
#FDEFF8
border
#D5CAD1
text
#160B13
muted
#847C82

Preview Lab

Preview with #D040AF

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

Preview Lab → · Contrast checker → · Palette generator →

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