#DC97F2#DC97F2

#DC97F2 is a light, vivid purple. Relative luminance 0.438; OKLCH L 77.6% C 0.145 H 317.7°. Best body text is #000000 at 9.75:1 contrast (WCAG AA passes).

Color values

HEX#DC97F2
RGBrgb(220, 151, 242)
HSLhsl(285, 78%, 77%)
HSVhsv(285, 38%, 95%)
CMYKcmyk(9.1%, 37.6%, 0%, 5.1%)
CIE-LABlab(72.07, 41.07, -35.47)
CIE-LCHlch(72.07, 54.27, 319.18°)
OKLaboklab(77.57% 0.1073 -0.0975)
OKLCHoklch(77.57% 0.145 317.7)
XYZxyz(56.6066, 43.7612, 89.4520)
Luminance0.4376 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DC97F2 #ADF297
analogous
#AF97F2 #DC97F2 #F297DA
triadic
#DC97F2 #F2DC97 #97F2DC
tetradic
#DC97F2 #F2AF97 #ADF297 #97DAF2
square
#DC97F2 #F2AF97 #ADF297 #97DAF2
split-complementary
#DC97F2 #DAF297 #97F2AF
monochromatic
#B72AE4 #CA61EB #DC97F2 #EECDF9 #F6E4FC

Accessibility & contrast

On white

2.15
#DC97F2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.75
#DC97F2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DC97F2
9.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DC97F2#FFFFFF#000000##000000
##DC97F21.002.159.759.75
#FFFFFF2.151.0021.0021.00
#0000009.7521.001.001.00
##0000009.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#8AACF5
Deuteranopia (green-blind)
#9BB3EF
Tritanopia (blue-blind)
#DCA2B9
Achromatopsia (no color)
#B1B1B1

Design tokens & code

CSS
--color: #dc97f2;
/* rgb */ color: rgb(220, 151, 242);
/* oklch */ color: oklch(77.6% 0.145 317.7);
Tailwind
colors: {
  custom: {
    50: '#e8b6f6',
    500: '#dc97f2',
    950: '#000000',
  },
}
SCSS
$custom: #dc97f2;
$custom-light: #e8b6f6;
$custom-dark: #000000;
JSON
{
  "hex": "#dc97f2",
  "rgb": {
    "r": 220,
    "g": 151,
    "b": 242
  },
  "hsl": {
    "h": 285.495,
    "s": 77.778,
    "l": 77.059
  },
  "oklch": {
    "l": 0.77574,
    "c": 0.14492,
    "h": 317.7
  },
  "luminance": 0.4376
}

Semantic roles & 50–950 ramp

primary
#DC97F2
secondary
#DEF3D8
accent
#DA0B3D
background
#FEFBFF
surface
#FDF6FE
border
#D5D0D6
text
#161117
muted
#848085

Preview Lab

Preview with #DC97F2

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

Preview Lab → · Contrast checker → · Palette generator →

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