#DB40C5#DB40C5

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

Color values

HEX#DB40C5
RGBrgb(219, 64, 197)
HSLhsl(309, 68%, 55%)
HSVhsv(309, 71%, 86%)
CMYKcmyk(0%, 70.8%, 10%, 14.1%)
CIE-LABlab(54.83, 72.89, -37.21)
CIE-LCHlch(54.83, 81.84, 332.96°)
OKLaboklab(64.16% 0.2118 -0.1018)
OKLCHoklch(64.16% 0.235 334.3)
XYZxyz(41.1252, 22.7616, 55.0400)
Luminance0.2276 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DB40C5 #40DB56
analogous
#A340DB #DB40C5 #DB4077
triadic
#DB40C5 #C5DB40 #40C5DB
tetradic
#DB40C5 #DBA340 #40DB56 #4077DB
square
#DB40C5 #DBA340 #40DB56 #4077DB
split-complementary
#DB40C5 #77DB40 #40DBA3
monochromatic
#871978 #BB23A5 #DB40C5 #E573D5 #EEA7E4

Accessibility & contrast

On white

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

On black

5.55
#DB40C5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #DB40C5
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DB40C5#FFFFFF#000000##000000
##DB40C51.003.785.555.55
#FFFFFF3.781.0021.0021.00
#0000005.5521.001.001.00
##0000005.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#3E75C9
Deuteranopia (green-blind)
#758BC1
Tritanopia (blue-blind)
#E54D7E
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #db40c5;
/* rgb */ color: rgb(219, 64, 197);
/* oklch */ color: oklch(64.2% 0.235 334.3);
Tailwind
colors: {
  custom: {
    50: '#ea82d7',
    500: '#db40c5',
    950: '#000000',
  },
}
SCSS
$custom: #db40c5;
$custom-light: #ea82d7;
$custom-dark: #000000;
JSON
{
  "hex": "#db40c5",
  "rgb": {
    "r": 219,
    "g": 64,
    "b": 197
  },
  "hsl": {
    "h": 308.516,
    "s": 68.282,
    "l": 55.49
  },
  "oklch": {
    "l": 0.64156,
    "c": 0.23496,
    "h": 334.3
  },
  "luminance": 0.22758
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #DB40C5

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

Preview Lab → · Contrast checker → · Palette generator →

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