#DB97EC#DB97EC

#DB97EC is a light, vivid purple. Relative luminance 0.432; OKLCH L 77.2% C 0.138 H 319.4°. Best body text is #000000 at 9.65:1 contrast (WCAG AA passes).

Color values

HEX#DB97EC
RGBrgb(219, 151, 236)
HSLhsl(288, 69%, 76%)
HSVhsv(288, 36%, 93%)
CMYKcmyk(7.2%, 36%, 0%, 7.5%)
CIE-LABlab(71.72, 39.59, -32.74)
CIE-LCHlch(71.72, 51.37, 320.41°)
OKLaboklab(77.21% 0.1048 -0.0897)
OKLCHoklch(77.21% 0.138 319.4)
XYZxyz(55.4184, 43.2510, 84.7696)
Luminance0.4325 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DB97EC #A8EC97
analogous
#B097EC #DB97EC #EC97D2
triadic
#DB97EC #ECDB97 #97ECDB
tetradic
#DB97EC #ECB097 #A8EC97 #97D2EC
square
#DB97EC #ECB097 #A8EC97 #97D2EC
split-complementary
#DB97EC #D2EC97 #97ECB0
monochromatic
#B730D9 #C963E3 #DB97EC #EDCBF5 #F6E5FA

Accessibility & contrast

On white

2.18
#DB97EC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.65
#DB97EC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DB97EC
9.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DB97EC#FFFFFF#000000##000000
##DB97EC1.002.189.659.65
#FFFFFF2.181.0021.0021.00
#0000009.6521.001.001.00
##0000009.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#8CABEF
Deuteranopia (green-blind)
#9DB2E9
Tritanopia (blue-blind)
#DCA1B7
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #db97ec;
/* rgb */ color: rgb(219, 151, 236);
/* oklch */ color: oklch(77.2% 0.138 319.4);
Tailwind
colors: {
  custom: {
    50: '#e7b6f2',
    500: '#db97ec',
    950: '#000000',
  },
}
SCSS
$custom: #db97ec;
$custom-light: #e7b6f2;
$custom-dark: #000000;
JSON
{
  "hex": "#db97ec",
  "rgb": {
    "r": 219,
    "g": 151,
    "b": 236
  },
  "hsl": {
    "h": 288,
    "s": 69.106,
    "l": 75.882
  },
  "oklch": {
    "l": 0.77212,
    "c": 0.13793,
    "h": 319.4
  },
  "luminance": 0.43249
}

Semantic roles & 50–950 ramp

primary
#DB97EC
secondary
#DEF2D9
accent
#D1143A
background
#FEFBFE
surface
#FDF6FD
border
#D5D0D5
text
#161117
muted
#848085

Preview Lab

Preview with #DB97EC

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

Preview Lab → · Contrast checker → · Palette generator →

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