#DC97FC#DC97FC

#DC97FC is a light, vivid purple. Relative luminance 0.444; OKLCH L 78.0% C 0.156 H 314.5°. Best body text is #000000 at 9.88:1 contrast (WCAG AA passes).

Color values

HEX#DC97FC
RGBrgb(220, 151, 252)
HSLhsl(281, 94%, 79%)
HSVhsv(281, 40%, 99%)
CMYKcmyk(12.7%, 40.1%, 0%, 1.2%)
CIE-LABlab(72.48, 43.08, -40.27)
CIE-LCHlch(72.48, 58.97, 316.93°)
OKLaboklab(78.02% 0.1093 -0.1112)
OKLCHoklch(78.02% 0.156 314.5)
XYZxyz(58.1497, 44.3784, 97.5792)
Luminance0.4438 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DC97FC #B7FC97
analogous
#AA97FC #DC97FC #FC97EA
triadic
#DC97FC #FCDC97 #97FCDC
tetradic
#DC97FC #FCAA97 #B7FC97 #97EAFC
square
#DC97FC #FCAA97 #B7FC97 #97EAFC
split-complementary
#DC97FC #EAFC97 #97FCAA
monochromatic
#B420F9 #C85CFA #DC97FC #F0D2FE #F5E1FE

Accessibility & contrast

On white

2.13
#DC97FC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.88
#DC97FC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DC97FC
9.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DC97FC#FFFFFF#000000##000000
##DC97FC1.002.139.889.88
#FFFFFF2.131.0021.0021.00
#0000009.8821.001.001.00
##0000009.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#85AEFF
Deuteranopia (green-blind)
#97B4F9
Tritanopia (blue-blind)
#DAA5BE
Achromatopsia (no color)
#B2B2B2

Design tokens & code

CSS
--color: #dc97fc;
/* rgb */ color: rgb(220, 151, 252);
/* oklch */ color: oklch(78.0% 0.156 314.5);
Tailwind
colors: {
  custom: {
    50: '#e8b7fd',
    500: '#dc97fc',
    950: '#000000',
  },
}
SCSS
$custom: #dc97fc;
$custom-light: #e8b7fd;
$custom-dark: #000000;
JSON
{
  "hex": "#dc97fc",
  "rgb": {
    "r": 220,
    "g": 151,
    "b": 252
  },
  "hsl": {
    "h": 280.99,
    "s": 94.393,
    "l": 79.02
  },
  "oklch": {
    "l": 0.7802,
    "c": 0.15592,
    "h": 314.5
  },
  "luminance": 0.44377
}

Semantic roles & 50–950 ramp

primary
#DC97FC
secondary
#DFF6D5
accent
#E60049
background
#FEFBFF
surface
#FDF6FF
border
#D5D0D7
text
#161117
muted
#848085

Preview Lab

Preview with #DC97FC

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

Preview Lab → · Contrast checker → · Palette generator →

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