#DC98EC#DC98EC

#DC98EC is a light, vivid purple. Relative luminance 0.437; OKLCH L 77.5% C 0.137 H 319.8°. Best body text is #000000 at 9.75:1 contrast (WCAG AA passes).

Color values

HEX#DC98EC
RGBrgb(220, 152, 236)
HSLhsl(289, 69%, 76%)
HSVhsv(289, 36%, 93%)
CMYKcmyk(6.8%, 35.6%, 0%, 7.5%)
CIE-LABlab(72.05, 39.36, -32.23)
CIE-LCHlch(72.05, 50.87, 320.68°)
OKLaboklab(77.48% 0.1045 -0.0882)
OKLCHoklch(77.48% 0.137 319.8)
XYZxyz(55.8818, 43.7299, 84.8376)
Luminance0.4373 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DC98EC #A8EC98
analogous
#B298EC #DC98EC #EC98D2
triadic
#DC98EC #ECDC98 #98ECDC
tetradic
#DC98EC #ECB298 #A8EC98 #98D2EC
square
#DC98EC #ECB298 #A8EC98 #98D2EC
split-complementary
#DC98EC #D2EC98 #98ECB2
monochromatic
#B931D9 #CA64E2 #DC98EC #EECCF6 #F6E5FA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##DC98EC#FFFFFF#000000##000000
##DC98EC1.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)
#8DACEF
Deuteranopia (green-blind)
#9EB3E9
Tritanopia (blue-blind)
#DDA2B7
Achromatopsia (no color)
#B1B1B1

Design tokens & code

CSS
--color: #dc98ec;
/* rgb */ color: rgb(220, 152, 236);
/* oklch */ color: oklch(77.5% 0.137 319.8);
Tailwind
colors: {
  custom: {
    50: '#e8b7f2',
    500: '#dc98ec',
    950: '#000000',
  },
}
SCSS
$custom: #dc98ec;
$custom-light: #e8b7f2;
$custom-dark: #000000;
JSON
{
  "hex": "#dc98ec",
  "rgb": {
    "r": 220,
    "g": 152,
    "b": 236
  },
  "hsl": {
    "h": 288.571,
    "s": 68.852,
    "l": 76.078
  },
  "oklch": {
    "l": 0.7748,
    "c": 0.13675,
    "h": 319.8
  },
  "luminance": 0.43728
}

Semantic roles & 50–950 ramp

primary
#DC98EC
secondary
#DEF2D9
accent
#D11539
background
#FEFBFE
surface
#FDF6FD
border
#D5D0D5
text
#161117
muted
#848085

Preview Lab

Preview with #DC98EC

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

Preview Lab → · Contrast checker → · Palette generator →

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