#DC97EF#DC97EF

#DC97EF is a light, vivid purple. Relative luminance 0.436; OKLCH L 77.4% C 0.142 H 318.8°. Best body text is #000000 at 9.72:1 contrast (WCAG AA passes).

Color values

HEX#DC97EF
RGBrgb(220, 151, 239)
HSLhsl(287, 73%, 76%)
HSVhsv(287, 37%, 94%)
CMYKcmyk(7.9%, 36.8%, 0%, 6.3%)
CIE-LABlab(71.95, 40.48, -34.02)
CIE-LCHlch(71.95, 52.88, 319.95°)
OKLaboklab(77.44% 0.1066 -0.0933)
OKLCHoklch(77.44% 0.142 318.8)
XYZxyz(56.1597, 43.5824, 87.0985)
Luminance0.4358 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DC97EF #AAEF97
analogous
#B097EF #DC97EF #EF97D6
triadic
#DC97EF #EFDC97 #97EFDC
tetradic
#DC97EF #EFB097 #AAEF97 #97D6EF
square
#DC97EF #EFB097 #AAEF97 #97D6EF
split-complementary
#DC97EF #D6EF97 #97EFB0
monochromatic
#B82DDF #CA62E7 #DC97EF #EECCF7 #F6E4FB

Accessibility & contrast

On white

2.16
#DC97EF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.72
#DC97EF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DC97EF
9.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DC97EF#FFFFFF#000000##000000
##DC97EF1.002.169.729.72
#FFFFFF2.161.0021.0021.00
#0000009.7221.001.001.00
##0000009.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#8BACF2
Deuteranopia (green-blind)
#9CB3EC
Tritanopia (blue-blind)
#DDA2B8
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #dc97ef;
/* rgb */ color: rgb(220, 151, 239);
/* oklch */ color: oklch(77.4% 0.142 318.8);
Tailwind
colors: {
  custom: {
    50: '#e8b6f4',
    500: '#dc97ef',
    950: '#000000',
  },
}
SCSS
$custom: #dc97ef;
$custom-light: #e8b6f4;
$custom-dark: #000000;
JSON
{
  "hex": "#dc97ef",
  "rgb": {
    "r": 220,
    "g": 151,
    "b": 239
  },
  "hsl": {
    "h": 287.045,
    "s": 73.333,
    "l": 76.471
  },
  "oklch": {
    "l": 0.77444,
    "c": 0.14168,
    "h": 318.8
  },
  "luminance": 0.43581
}

Semantic roles & 50–950 ramp

primary
#DC97EF
secondary
#DEF3D8
accent
#D5103B
background
#FEFBFE
surface
#FDF6FD
border
#D5D0D5
text
#161117
muted
#848085

Preview Lab

Preview with #DC97EF

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

Preview Lab → · Contrast checker → · Palette generator →

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