#DC98EF#DC98EF

#DC98EF is a light, vivid purple. Relative luminance 0.439; OKLCH L 77.6% C 0.140 H 318.7°. Best body text is #000000 at 9.78:1 contrast (WCAG AA passes).

Color values

HEX#DC98EF
RGBrgb(220, 152, 239)
HSLhsl(287, 73%, 77%)
HSVhsv(287, 36%, 94%)
CMYKcmyk(7.9%, 36.4%, 0%, 6.3%)
CIE-LABlab(72.17, 39.94, -33.69)
CIE-LCHlch(72.17, 52.25, 319.86°)
OKLaboklab(77.61% 0.1052 -0.0924)
OKLCHoklch(77.61% 0.14 318.7)
XYZxyz(56.3213, 43.9057, 87.1524)
Luminance0.4390 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DC98EF #ABEF98
analogous
#B198EF #DC98EF #EF98D6
triadic
#DC98EF #EFDC98 #98EFDC
tetradic
#DC98EF #EFB198 #ABEF98 #98D6EF
square
#DC98EF #EFB198 #ABEF98 #98D6EF
split-complementary
#DC98EF #D6EF98 #98EFB1
monochromatic
#B82EDF #CA63E7 #DC98EF #EECDF7 #F6E5FB

Accessibility & contrast

On white

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

On black

9.78
#DC98EF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DC98EF
9.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DC98EF#FFFFFF#000000##000000
##DC98EF1.002.159.789.78
#FFFFFF2.151.0021.0021.00
#0000009.7821.001.001.00
##0000009.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#8CACF2
Deuteranopia (green-blind)
#9DB3EC
Tritanopia (blue-blind)
#DDA2B9
Achromatopsia (no color)
#B1B1B1

Design tokens & code

CSS
--color: #dc98ef;
/* rgb */ color: rgb(220, 152, 239);
/* oklch */ color: oklch(77.6% 0.140 318.7);
Tailwind
colors: {
  custom: {
    50: '#e8b7f4',
    500: '#dc98ef',
    950: '#000000',
  },
}
SCSS
$custom: #dc98ef;
$custom-light: #e8b7f4;
$custom-dark: #000000;
JSON
{
  "hex": "#dc98ef",
  "rgb": {
    "r": 220,
    "g": 152,
    "b": 239
  },
  "hsl": {
    "h": 286.897,
    "s": 73.109,
    "l": 76.667
  },
  "oklch": {
    "l": 0.77608,
    "c": 0.13997,
    "h": 318.7
  },
  "luminance": 0.43904
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #DC98EF

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

Preview Lab → · Contrast checker → · Palette generator →

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