#D940B2#D940B2

#D940B2 is a light, highly saturated pink. Relative luminance 0.216; OKLCH L 63.0% C 0.221 H 339.9°. Best body text is #000000 at 5.33:1 contrast (WCAG AA passes).

Color values

HEX#D940B2
RGBrgb(217, 64, 178)
HSLhsl(315, 67%, 55%)
HSVhsv(315, 71%, 85%)
CMYKcmyk(0%, 70.5%, 18%, 14.9%)
CIE-LABlab(53.64, 69.74, -28.09)
CIE-LCHlch(53.64, 75.18, 338.06°)
OKLaboklab(62.96% 0.2077 -0.0758)
OKLCHoklch(62.96% 0.221 339.9)
XYZxyz(38.4856, 21.6366, 44.2603)
Luminance0.2163 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D940B2 #40D967
analogous
#B340D9 #D940B2 #D94066
triadic
#D940B2 #B2D940 #40B2D9
tetradic
#D940B2 #D9B340 #40D967 #4066D9
square
#D940B2 #D9B340 #40D967 #4066D9
split-complementary
#D940B2 #66D940 #40D9B3
monochromatic
#841A69 #B72492 #D940B2 #E373C7 #EDA6DB

Accessibility & contrast

On white

3.94
#D940B2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.33
#D940B2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D940B2
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D940B2#FFFFFF#000000##000000
##D940B21.003.945.335.33
#FFFFFF3.941.0021.0021.00
#0000005.3321.001.001.00
##0000005.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#4A71B5
Deuteranopia (green-blind)
#7B89AE
Tritanopia (blue-blind)
#E64574
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #d940b2;
/* rgb */ color: rgb(217, 64, 178);
/* oklch */ color: oklch(63.0% 0.221 339.9);
Tailwind
colors: {
  custom: {
    50: '#e982c9',
    500: '#d940b2',
    950: '#000000',
  },
}
SCSS
$custom: #d940b2;
$custom-light: #e982c9;
$custom-dark: #000000;
JSON
{
  "hex": "#d940b2",
  "rgb": {
    "r": 217,
    "g": 64,
    "b": 178
  },
  "hsl": {
    "h": 315.294,
    "s": 66.812,
    "l": 55.098
  },
  "oklch": {
    "l": 0.62955,
    "c": 0.22107,
    "h": 339.9
  },
  "luminance": 0.21633
}

Semantic roles & 50–950 ramp

primary
#D940B2
secondary
#9ADAAB
accent
#EA6A3E
background
#FEF8FC
surface
#FDF0F8
border
#D5CBD1
text
#170B13
muted
#857C82

Preview Lab

Preview with #D940B2

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

Preview Lab → · Contrast checker → · Palette generator →

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