#DB40C6#DB40C6

#DB40C6 is a light, highly saturated purple. Relative luminance 0.228; OKLCH L 64.2% C 0.236 H 334.0°. Best body text is #000000 at 5.56:1 contrast (WCAG AA passes).

Color values

HEX#DB40C6
RGBrgb(219, 64, 198)
HSLhsl(308, 68%, 55%)
HSVhsv(308, 71%, 86%)
CMYKcmyk(0%, 70.8%, 9.6%, 14.1%)
CIE-LABlab(54.87, 73.04, -37.71)
CIE-LCHlch(54.87, 82.20, 332.69°)
OKLaboklab(64.21% 0.2119 -0.1032)
OKLCHoklch(64.21% 0.236 334)
XYZxyz(41.2402, 22.8076, 55.6454)
Luminance0.2280 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DB40C6 #40DB55
analogous
#A240DB #DB40C6 #DB4078
triadic
#DB40C6 #C6DB40 #40C6DB
tetradic
#DB40C6 #DBA240 #40DB55 #4078DB
square
#DB40C6 #DBA240 #40DB55 #4078DB
split-complementary
#DB40C6 #78DB40 #40DBA2
monochromatic
#871978 #BB23A6 #DB40C6 #E573D5 #EEA7E5

Accessibility & contrast

On white

3.78
#DB40C6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.56
#DB40C6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #DB40C6
5.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DB40C6#FFFFFF#000000##000000
##DB40C61.003.785.565.56
#FFFFFF3.781.0021.0021.00
#0000005.5621.001.001.00
##0000005.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#3D75CA
Deuteranopia (green-blind)
#748BC2
Tritanopia (blue-blind)
#E54E7E
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #db40c6;
/* rgb */ color: rgb(219, 64, 198);
/* oklch */ color: oklch(64.2% 0.236 334.0);
Tailwind
colors: {
  custom: {
    50: '#ea82d7',
    500: '#db40c6',
    950: '#000000',
  },
}
SCSS
$custom: #db40c6;
$custom-light: #ea82d7;
$custom-dark: #000000;
JSON
{
  "hex": "#db40c6",
  "rgb": {
    "r": 219,
    "g": 64,
    "b": 198
  },
  "hsl": {
    "h": 308.129,
    "s": 68.282,
    "l": 55.49
  },
  "oklch": {
    "l": 0.64206,
    "c": 0.23566,
    "h": 334
  },
  "luminance": 0.22804
}

Semantic roles & 50–950 ramp

primary
#DB40C6
secondary
#9BDCA4
accent
#EB543D
background
#FEF8FD
surface
#FDF0FA
border
#D5CBD3
text
#170C14
muted
#857D83

Preview Lab

Preview with #DB40C6

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

Preview Lab → · Contrast checker → · Palette generator →

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