#DB97F8#DB97F8

#DB97F8 is a light, vivid purple. Relative luminance 0.440; OKLCH L 77.7% C 0.151 H 315.3°. Best body text is #000000 at 9.79:1 contrast (WCAG AA passes).

Color values

HEX#DB97F8
RGBrgb(219, 151, 248)
HSLhsl(282, 87%, 78%)
HSVhsv(282, 39%, 97%)
CMYKcmyk(11.7%, 39.1%, 0%, 2.7%)
CIE-LABlab(72.21, 41.98, -38.53)
CIE-LCHlch(72.21, 56.98, 317.45°)
OKLaboklab(77.74% 0.1074 -0.1062)
OKLCHoklch(77.74% 0.151 315.3)
XYZxyz(57.2207, 43.9719, 94.2619)
Luminance0.4397 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DB97F8 #B4F897
analogous
#AA97F8 #DB97F8 #F897E4
triadic
#DB97F8 #F8DB97 #97F8DB
tetradic
#DB97F8 #F8AA97 #B4F897 #97E4F8
square
#DB97F8 #F8AA97 #B4F897 #97E4F8
split-complementary
#DB97F8 #E4F897 #97F8AA
monochromatic
#B324F0 #C75EF4 #DB97F8 #EFD0FC #F5E2FD

Accessibility & contrast

On white

2.14
#DB97F8 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.79
#DB97F8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DB97F8
9.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DB97F8#FFFFFF#000000##000000
##DB97F81.002.149.799.79
#FFFFFF2.141.0021.0021.00
#0000009.7921.001.001.00
##0000009.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#87ADFC
Deuteranopia (green-blind)
#98B3F5
Tritanopia (blue-blind)
#DAA4BC
Achromatopsia (no color)
#B1B1B1

Design tokens & code

CSS
--color: #db97f8;
/* rgb */ color: rgb(219, 151, 248);
/* oklch */ color: oklch(77.7% 0.151 315.3);
Tailwind
colors: {
  custom: {
    50: '#e7b7fb',
    500: '#db97f8',
    950: '#000000',
  },
}
SCSS
$custom: #db97f8;
$custom-light: #e7b7fb;
$custom-dark: #000000;
JSON
{
  "hex": "#db97f8",
  "rgb": {
    "r": 219,
    "g": 151,
    "b": 248
  },
  "hsl": {
    "h": 282.062,
    "s": 87.387,
    "l": 78.235
  },
  "oklch": {
    "l": 0.77738,
    "c": 0.15103,
    "h": 315.3
  },
  "luminance": 0.43971
}

Semantic roles & 50–950 ramp

primary
#DB97F8
secondary
#DFF5D6
accent
#E40245
background
#FEFBFF
surface
#FDF6FF
border
#D5D0D7
text
#161117
muted
#848085

Preview Lab

Preview with #DB97F8

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

Preview Lab → · Contrast checker → · Palette generator →

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