#DB40C4#DB40C4

#DB40C4 is a light, highly saturated purple. Relative luminance 0.227; OKLCH L 64.1% C 0.234 H 334.6°. Best body text is #000000 at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#DB40C4
RGBrgb(219, 64, 196)
HSLhsl(309, 68%, 55%)
HSVhsv(309, 71%, 86%)
CMYKcmyk(0%, 70.8%, 10.5%, 14.1%)
CIE-LABlab(54.78, 72.75, -36.71)
CIE-LCHlch(54.78, 81.48, 333.23°)
OKLaboklab(64.11% 0.2117 -0.1003)
OKLCHoklch(64.11% 0.234 334.6)
XYZxyz(41.0110, 22.7159, 54.4385)
Luminance0.2271 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DB40C4 #40DB57
analogous
#A440DB #DB40C4 #DB4076
triadic
#DB40C4 #C4DB40 #40C4DB
tetradic
#DB40C4 #DBA440 #40DB57 #4076DB
square
#DB40C4 #DBA440 #40DB57 #4076DB
split-complementary
#DB40C4 #76DB40 #40DBA4
monochromatic
#871977 #BB23A4 #DB40C4 #E573D4 #EEA7E4

Accessibility & contrast

On white

3.79
#DB40C4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.54
#DB40C4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #DB40C4
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DB40C4#FFFFFF#000000##000000
##DB40C41.003.795.545.54
#FFFFFF3.791.0021.0021.00
#0000005.5421.001.001.00
##0000005.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#3E74C8
Deuteranopia (green-blind)
#758BC0
Tritanopia (blue-blind)
#E54D7D
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #db40c4;
/* rgb */ color: rgb(219, 64, 196);
/* oklch */ color: oklch(64.1% 0.234 334.6);
Tailwind
colors: {
  custom: {
    50: '#ea82d6',
    500: '#db40c4',
    950: '#000000',
  },
}
SCSS
$custom: #db40c4;
$custom-light: #ea82d6;
$custom-dark: #000000;
JSON
{
  "hex": "#db40c4",
  "rgb": {
    "r": 219,
    "g": 64,
    "b": 196
  },
  "hsl": {
    "h": 308.903,
    "s": 68.282,
    "l": 55.49
  },
  "oklch": {
    "l": 0.64107,
    "c": 0.23427,
    "h": 334.6
  },
  "luminance": 0.22712
}

Semantic roles & 50–950 ramp

primary
#DB40C4
secondary
#9BDCA5
accent
#EB573D
background
#FEF8FD
surface
#FDF0FA
border
#D5CBD3
text
#170C14
muted
#857D83

Preview Lab

Preview with #DB40C4

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

Preview Lab → · Contrast checker → · Palette generator →

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