#DC98ED#DC98ED

#DC98ED is a light, vivid purple. Relative luminance 0.438; OKLCH L 77.5% C 0.138 H 319.4°. Best body text is #000000 at 9.76:1 contrast (WCAG AA passes).

Color values

HEX#DC98ED
RGBrgb(220, 152, 237)
HSLhsl(288, 70%, 76%)
HSVhsv(288, 36%, 93%)
CMYKcmyk(7.2%, 35.9%, 0%, 7.1%)
CIE-LABlab(72.09, 39.55, -32.72)
CIE-LCHlch(72.09, 51.33, 320.40°)
OKLaboklab(77.52% 0.1047 -0.0896)
OKLCHoklch(77.52% 0.138 319.4)
XYZxyz(56.0275, 43.7881, 85.6049)
Luminance0.4379 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DC98ED #A9ED98
analogous
#B298ED #DC98ED #ED98D4
triadic
#DC98ED #EDDC98 #98EDDC
tetradic
#DC98ED #EDB298 #A9ED98 #98D4ED
square
#DC98ED #EDB298 #A9ED98 #98D4ED
split-complementary
#DC98ED #D4ED98 #98EDB2
monochromatic
#B930DB #CA64E4 #DC98ED #EECCF6 #F6E5FA

Accessibility & contrast

On white

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

On black

9.76
#DC98ED on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DC98ED
9.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DC98ED#FFFFFF#000000##000000
##DC98ED1.002.159.769.76
#FFFFFF2.151.0021.0021.00
#0000009.7621.001.001.00
##0000009.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#8DACF0
Deuteranopia (green-blind)
#9EB3EA
Tritanopia (blue-blind)
#DDA2B8
Achromatopsia (no color)
#B1B1B1

Design tokens & code

CSS
--color: #dc98ed;
/* rgb */ color: rgb(220, 152, 237);
/* oklch */ color: oklch(77.5% 0.138 319.4);
Tailwind
colors: {
  custom: {
    50: '#e8b7f3',
    500: '#dc98ed',
    950: '#000000',
  },
}
SCSS
$custom: #dc98ed;
$custom-light: #e8b7f3;
$custom-dark: #000000;
JSON
{
  "hex": "#dc98ed",
  "rgb": {
    "r": 220,
    "g": 152,
    "b": 237
  },
  "hsl": {
    "h": 288,
    "s": 70.248,
    "l": 76.275
  },
  "oklch": {
    "l": 0.77522,
    "c": 0.13782,
    "h": 319.4
  },
  "luminance": 0.43787
}

Semantic roles & 50–950 ramp

primary
#DC98ED
secondary
#DEF2D9
accent
#D21339
background
#FEFBFE
surface
#FDF6FD
border
#D5D0D5
text
#161117
muted
#848085

Preview Lab

Preview with #DC98ED

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

Preview Lab → · Contrast checker → · Palette generator →

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