#D940B3#D940B3

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

Color values

HEX#D940B3
RGBrgb(217, 64, 179)
HSLhsl(315, 67%, 55%)
HSVhsv(315, 71%, 85%)
CMYKcmyk(0%, 70.5%, 17.5%, 14.9%)
CIE-LABlab(53.68, 69.87, -28.60)
CIE-LCHlch(53.68, 75.50, 337.74°)
OKLaboklab(63% 0.2078 -0.0772)
OKLCHoklch(63% 0.222 339.6)
XYZxyz(38.5863, 21.6769, 44.7910)
Luminance0.2167 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D940B3 #40D966
analogous
#B240D9 #D940B3 #D94066
triadic
#D940B3 #B3D940 #40B3D9
tetradic
#D940B3 #D9B240 #40D966 #4066D9
square
#D940B3 #D9B240 #40D966 #4066D9
split-complementary
#D940B3 #66D940 #40D9B2
monochromatic
#841A6A #B72493 #D940B3 #E373C7 #EDA6DC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##D940B3#FFFFFF#000000##000000
##D940B31.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)
#4971B6
Deuteranopia (green-blind)
#7A89AF
Tritanopia (blue-blind)
#E54574
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #d940b3;
/* rgb */ color: rgb(217, 64, 179);
/* oklch */ color: oklch(63.0% 0.222 339.6);
Tailwind
colors: {
  custom: {
    50: '#e982ca',
    500: '#d940b3',
    950: '#000000',
  },
}
SCSS
$custom: #d940b3;
$custom-light: #e982ca;
$custom-dark: #000000;
JSON
{
  "hex": "#d940b3",
  "rgb": {
    "r": 217,
    "g": 64,
    "b": 179
  },
  "hsl": {
    "h": 314.902,
    "s": 66.812,
    "l": 55.098
  },
  "oklch": {
    "l": 0.63,
    "c": 0.22171,
    "h": 339.6
  },
  "luminance": 0.21673
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D940B3

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

Preview Lab → · Contrast checker → · Palette generator →

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