#DC97EC#DC97EC

#DC97EC is a light, vivid purple. Relative luminance 0.434; OKLCH L 77.3% C 0.138 H 319.9°. Best body text is #000000 at 9.68:1 contrast (WCAG AA passes).

Color values

HEX#DC97EC
RGBrgb(220, 151, 236)
HSLhsl(289, 69%, 76%)
HSVhsv(289, 36%, 93%)
CMYKcmyk(6.8%, 36%, 0%, 7.5%)
CIE-LABlab(71.83, 39.89, -32.57)
CIE-LCHlch(71.83, 51.50, 320.77°)
OKLaboklab(77.32% 0.1059 -0.0892)
OKLCHoklch(77.32% 0.138 319.9)
XYZxyz(55.7202, 43.4066, 84.7838)
Luminance0.4340 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DC97EC #A7EC97
analogous
#B197EC #DC97EC #EC97D1
triadic
#DC97EC #ECDC97 #97ECDC
tetradic
#DC97EC #ECB197 #A7EC97 #97D1EC
square
#DC97EC #ECB197 #A7EC97 #97D1EC
split-complementary
#DC97EC #D1EC97 #97ECB1
monochromatic
#B930D9 #CB63E3 #DC97EC #EDCBF5 #F6E5FA

Accessibility & contrast

On white

2.17
#DC97EC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.68
#DC97EC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DC97EC
9.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DC97EC#FFFFFF#000000##000000
##DC97EC1.002.179.689.68
#FFFFFF2.171.0021.0021.00
#0000009.6821.001.001.00
##0000009.6821.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #dc97ec;
/* rgb */ color: rgb(220, 151, 236);
/* oklch */ color: oklch(77.3% 0.138 319.9);
Tailwind
colors: {
  custom: {
    50: '#e8b6f2',
    500: '#dc97ec',
    950: '#000000',
  },
}
SCSS
$custom: #dc97ec;
$custom-light: #e8b6f2;
$custom-dark: #000000;
JSON
{
  "hex": "#dc97ec",
  "rgb": {
    "r": 220,
    "g": 151,
    "b": 236
  },
  "hsl": {
    "h": 288.706,
    "s": 69.106,
    "l": 75.882
  },
  "oklch": {
    "l": 0.77316,
    "c": 0.13847,
    "h": 319.9
  },
  "luminance": 0.43405
}

Semantic roles & 50–950 ramp

primary
#DC97EC
secondary
#DEF2D9
accent
#D11438
background
#FEFBFE
surface
#FDF6FD
border
#D5D0D5
text
#161117
muted
#848085

Preview Lab

Preview with #DC97EC

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

Preview Lab → · Contrast checker → · Palette generator →

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