#DB40C7#DB40C7

#DB40C7 is a light, highly saturated purple. Relative luminance 0.229; OKLCH L 64.3% C 0.236 H 333.7°. Best body text is #000000 at 5.57:1 contrast (WCAG AA passes).

Color values

HEX#DB40C7
RGBrgb(219, 64, 199)
HSLhsl(308, 68%, 55%)
HSVhsv(308, 71%, 86%)
CMYKcmyk(0%, 70.8%, 9.1%, 14.1%)
CIE-LABlab(54.92, 73.18, -38.20)
CIE-LCHlch(54.92, 82.56, 332.43°)
OKLaboklab(64.26% 0.2119 -0.1046)
OKLCHoklch(64.26% 0.236 333.7)
XYZxyz(41.3559, 22.8539, 56.2549)
Luminance0.2285 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DB40C7 #40DB54
analogous
#A140DB #DB40C7 #DB4079
triadic
#DB40C7 #C7DB40 #40C7DB
tetradic
#DB40C7 #DBA140 #40DB54 #4079DB
square
#DB40C7 #DBA140 #40DB54 #4079DB
split-complementary
#DB40C7 #79DB40 #40DBA1
monochromatic
#871979 #BB23A7 #DB40C7 #E573D6 #EEA7E5

Accessibility & contrast

On white

3.77
#DB40C7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.57
#DB40C7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #DB40C7
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DB40C7#FFFFFF#000000##000000
##DB40C71.003.775.575.57
#FFFFFF3.771.0021.0021.00
#0000005.5721.001.001.00
##0000005.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#3C75CB
Deuteranopia (green-blind)
#748BC3
Tritanopia (blue-blind)
#E54E7F
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #db40c7;
/* rgb */ color: rgb(219, 64, 199);
/* oklch */ color: oklch(64.3% 0.236 333.7);
Tailwind
colors: {
  custom: {
    50: '#ea83d8',
    500: '#db40c7',
    950: '#000000',
  },
}
SCSS
$custom: #db40c7;
$custom-light: #ea83d8;
$custom-dark: #000000;
JSON
{
  "hex": "#db40c7",
  "rgb": {
    "r": 219,
    "g": 64,
    "b": 199
  },
  "hsl": {
    "h": 307.742,
    "s": 68.282,
    "l": 55.49
  },
  "oklch": {
    "l": 0.64256,
    "c": 0.23636,
    "h": 333.7
  },
  "luminance": 0.2285
}

Semantic roles & 50–950 ramp

primary
#DB40C7
secondary
#9BDCA3
accent
#EB533D
background
#FEF8FD
surface
#FDF0FA
border
#D5CBD3
text
#170C14
muted
#857D83

Preview Lab

Preview with #DB40C7

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

Preview Lab → · Contrast checker → · Palette generator →

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