#D040B9#D040B9

#D040B9 is a mid, highly saturated purple. Relative luminance 0.206; OKLCH L 61.9% C 0.220 H 335.1°. Best body text is #000000 at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#D040B9
RGBrgb(208, 64, 185)
HSLhsl(310, 61%, 53%)
HSVhsv(310, 69%, 82%)
CMYKcmyk(0%, 69.2%, 11.1%, 18.4%)
CIE-LABlab(52.49, 68.56, -34.06)
CIE-LCHlch(52.49, 76.55, 333.58°)
OKLaboklab(61.94% 0.1998 -0.093)
OKLCHoklch(61.94% 0.22 335.1)
XYZxyz(36.6032, 20.5826, 47.9346)
Luminance0.2058 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D040B9 #40D057
analogous
#9F40D0 #D040B9 #D04071
triadic
#D040B9 #B9D040 #40B9D0
tetradic
#D040B9 #D09F40 #40D057 #4071D0
square
#D040B9 #D09F40 #40D057 #4071D0
split-complementary
#D040B9 #71D040 #40D09F
monochromatic
#781E6A #A92A95 #D040B9 #DC71CB #E8A2DD

Accessibility & contrast

On white

4.10
#D040B9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.12
#D040B9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D040B9
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D040B9#FFFFFF#000000##000000
##D040B91.004.105.125.12
#FFFFFF4.101.0021.0021.00
#0000005.1221.001.001.00
##0000005.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#4070BC
Deuteranopia (green-blind)
#7185B5
Tritanopia (blue-blind)
#DA4B77
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #d040b9;
/* rgb */ color: rgb(208, 64, 185);
/* oklch */ color: oklch(61.9% 0.220 335.1);
Tailwind
colors: {
  custom: {
    50: '#e281ce',
    500: '#d040b9',
    950: '#000000',
  },
}
SCSS
$custom: #d040b9;
$custom-light: #e281ce;
$custom-dark: #000000;
JSON
{
  "hex": "#d040b9",
  "rgb": {
    "r": 208,
    "g": 64,
    "b": 185
  },
  "hsl": {
    "h": 309.583,
    "s": 60.504,
    "l": 53.333
  },
  "oklch": {
    "l": 0.61944,
    "c": 0.22039,
    "h": 335.1
  },
  "luminance": 0.20579
}

Semantic roles & 50–950 ramp

primary
#D040B9
secondary
#97D5A1
accent
#E45E44
background
#FEF8FC
surface
#FDEFF9
border
#D5CAD2
text
#160B13
muted
#847C82

Preview Lab

Preview with #D040B9

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

Preview Lab → · Contrast checker → · Palette generator →

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