#D940B0#D940B0

#D940B0 is a light, highly saturated pink. Relative luminance 0.216; OKLCH L 62.9% C 0.220 H 340.6°. Best body text is #000000 at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#D940B0
RGBrgb(217, 64, 176)
HSLhsl(316, 67%, 55%)
HSVhsv(316, 71%, 85%)
CMYKcmyk(0%, 70.5%, 18.9%, 14.9%)
CIE-LABlab(53.55, 69.47, -27.05)
CIE-LCHlch(53.55, 74.55, 338.72°)
OKLaboklab(62.87% 0.2074 -0.0729)
OKLCHoklch(62.87% 0.22 340.6)
XYZxyz(38.2862, 21.5568, 43.2104)
Luminance0.2155 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D940B0 #40D969
analogous
#B540D9 #D940B0 #D94064
triadic
#D940B0 #B0D940 #40B0D9
tetradic
#D940B0 #D9B540 #40D969 #4064D9
square
#D940B0 #D9B540 #40D969 #4064D9
split-complementary
#D940B0 #64D940 #40D9B5
monochromatic
#841A68 #B72490 #D940B0 #E373C5 #EDA6DA

Accessibility & contrast

On white

3.95
#D940B0 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.31
#D940B0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D940B0
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D940B0#FFFFFF#000000##000000
##D940B01.003.955.315.31
#FFFFFF3.951.0021.0021.00
#0000005.3121.001.001.00
##0000005.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#4B70B3
Deuteranopia (green-blind)
#7C89AC
Tritanopia (blue-blind)
#E64473
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #d940b0;
/* rgb */ color: rgb(217, 64, 176);
/* oklch */ color: oklch(62.9% 0.220 340.6);
Tailwind
colors: {
  custom: {
    50: '#e982c8',
    500: '#d940b0',
    950: '#000000',
  },
}
SCSS
$custom: #d940b0;
$custom-light: #e982c8;
$custom-dark: #000000;
JSON
{
  "hex": "#d940b0",
  "rgb": {
    "r": 217,
    "g": 64,
    "b": 176
  },
  "hsl": {
    "h": 316.078,
    "s": 66.812,
    "l": 55.098
  },
  "oklch": {
    "l": 0.62865,
    "c": 0.2198,
    "h": 340.6
  },
  "luminance": 0.21553
}

Semantic roles & 50–950 ramp

primary
#D940B0
secondary
#9ADAAC
accent
#EA6C3E
background
#FEF8FC
surface
#FDF0F8
border
#D5CBD1
text
#170B13
muted
#857C82

Preview Lab

Preview with #D940B0

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

Preview Lab → · Contrast checker → · Palette generator →

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