#D940B4#D940B4

#D940B4 is a light, highly saturated pink. Relative luminance 0.217; OKLCH L 63.0% C 0.222 H 339.3°. Best body text is #000000 at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#D940B4
RGBrgb(217, 64, 180)
HSLhsl(315, 67%, 55%)
HSVhsv(315, 71%, 85%)
CMYKcmyk(0%, 70.5%, 17.1%, 14.9%)
CIE-LABlab(53.73, 70.01, -29.12)
CIE-LCHlch(53.73, 75.82, 337.42°)
OKLaboklab(63.05% 0.208 -0.0787)
OKLCHoklch(63.05% 0.222 339.3)
XYZxyz(38.6878, 21.7175, 45.3255)
Luminance0.2171 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D940B4 #40D965
analogous
#B240D9 #D940B4 #D94067
triadic
#D940B4 #B4D940 #40B4D9
tetradic
#D940B4 #D9B240 #40D965 #4067D9
square
#D940B4 #D9B240 #40D965 #4067D9
split-complementary
#D940B4 #67D940 #40D9B2
monochromatic
#841A6B #B72494 #D940B4 #E373C8 #EDA6DC

Accessibility & contrast

On white

3.93
#D940B4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.34
#D940B4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D940B4
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D940B4#FFFFFF#000000##000000
##D940B41.003.935.345.34
#FFFFFF3.931.0021.0021.00
#0000005.3421.001.001.00
##0000005.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#4971B7
Deuteranopia (green-blind)
#7A89B0
Tritanopia (blue-blind)
#E54675
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #d940b4;
/* rgb */ color: rgb(217, 64, 180);
/* oklch */ color: oklch(63.0% 0.222 339.3);
Tailwind
colors: {
  custom: {
    50: '#e982ca',
    500: '#d940b4',
    950: '#000000',
  },
}
SCSS
$custom: #d940b4;
$custom-light: #e982ca;
$custom-dark: #000000;
JSON
{
  "hex": "#d940b4",
  "rgb": {
    "r": 217,
    "g": 64,
    "b": 180
  },
  "hsl": {
    "h": 314.51,
    "s": 66.812,
    "l": 55.098
  },
  "oklch": {
    "l": 0.63046,
    "c": 0.22236,
    "h": 339.3
  },
  "luminance": 0.21714
}

Semantic roles & 50–950 ramp

primary
#D940B4
secondary
#9ADAAA
accent
#EA683E
background
#FEF8FC
surface
#FDF0F8
border
#D5CBD1
text
#170B13
muted
#857C82

Preview Lab

Preview with #D940B4

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

Preview Lab → · Contrast checker → · Palette generator →

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