#DB40C2#DB40C2

#DB40C2 is a light, highly saturated purple. Relative luminance 0.226; OKLCH L 64.0% C 0.233 H 335.3°. Best body text is #000000 at 5.52:1 contrast (WCAG AA passes).

Color values

HEX#DB40C2
RGBrgb(219, 64, 194)
HSLhsl(310, 68%, 55%)
HSVhsv(310, 71%, 86%)
CMYKcmyk(0%, 70.8%, 11.4%, 14.1%)
CIE-LABlab(54.68, 72.45, -35.70)
CIE-LCHlch(54.68, 80.77, 333.77°)
OKLaboklab(64.01% 0.2115 -0.0974)
OKLCHoklch(64.01% 0.233 335.3)
XYZxyz(40.7849, 22.6255, 53.2476)
Luminance0.2262 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DB40C2 #40DB59
analogous
#A640DB #DB40C2 #DB4075
triadic
#DB40C2 #C2DB40 #40C2DB
tetradic
#DB40C2 #DBA640 #40DB59 #4075DB
square
#DB40C2 #DBA640 #40DB59 #4075DB
split-complementary
#DB40C2 #75DB40 #40DBA6
monochromatic
#871975 #BB23A2 #DB40C2 #E573D2 #EEA7E3

Accessibility & contrast

On white

3.80
#DB40C2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.52
#DB40C2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #DB40C2
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DB40C2#FFFFFF#000000##000000
##DB40C21.003.805.525.52
#FFFFFF3.801.0021.0021.00
#0000005.5221.001.001.00
##0000005.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#4074C6
Deuteranopia (green-blind)
#768BBE
Tritanopia (blue-blind)
#E64C7C
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #db40c2;
/* rgb */ color: rgb(219, 64, 194);
/* oklch */ color: oklch(64.0% 0.233 335.3);
Tailwind
colors: {
  custom: {
    50: '#ea82d5',
    500: '#db40c2',
    950: '#000000',
  },
}
SCSS
$custom: #db40c2;
$custom-light: #ea82d5;
$custom-dark: #000000;
JSON
{
  "hex": "#db40c2",
  "rgb": {
    "r": 219,
    "g": 64,
    "b": 194
  },
  "hsl": {
    "h": 309.677,
    "s": 68.282,
    "l": 55.49
  },
  "oklch": {
    "l": 0.64008,
    "c": 0.23289,
    "h": 335.3
  },
  "luminance": 0.22622
}

Semantic roles & 50–950 ramp

primary
#DB40C2
secondary
#9BDCA6
accent
#EB593D
background
#FEF8FD
surface
#FDF0FA
border
#D5CBD3
text
#170C14
muted
#857D83

Preview Lab

Preview with #DB40C2

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

Preview Lab → · Contrast checker → · Palette generator →

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