#DC98F8#DC98F8

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

Color values

HEX#DC98F8
RGBrgb(220, 152, 248)
HSLhsl(283, 87%, 78%)
HSVhsv(283, 39%, 97%)
CMYKcmyk(11.3%, 38.7%, 0%, 2.7%)
CIE-LABlab(72.53, 41.74, -38.02)
CIE-LCHlch(72.53, 56.46, 317.67°)
OKLaboklab(78% 0.1071 -0.1048)
OKLCHoklch(78% 0.15 315.6)
XYZxyz(57.6841, 44.4508, 94.3299)
Luminance0.4445 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DC98F8 #B4F898
analogous
#AC98F8 #DC98F8 #F898E4
triadic
#DC98F8 #F8DC98 #98F8DC
tetradic
#DC98F8 #F8AC98 #B4F898 #98E4F8
square
#DC98F8 #F8AC98 #B4F898 #98E4F8
split-complementary
#DC98F8 #E4F898 #98F8AC
monochromatic
#B525F0 #C95FF4 #DC98F8 #EFD1FC #F5E2FD

Accessibility & contrast

On white

2.12
#DC98F8 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.89
#DC98F8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DC98F8
9.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DC98F8#FFFFFF#000000##000000
##DC98F81.002.129.899.89
#FFFFFF2.121.0021.0021.00
#0000009.8921.001.001.00
##0000009.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#88AEFC
Deuteranopia (green-blind)
#99B4F5
Tritanopia (blue-blind)
#DBA5BC
Achromatopsia (no color)
#B2B2B2

Design tokens & code

CSS
--color: #dc98f8;
/* rgb */ color: rgb(220, 152, 248);
/* oklch */ color: oklch(78.0% 0.150 315.6);
Tailwind
colors: {
  custom: {
    50: '#e8b7fb',
    500: '#dc98f8',
    950: '#000000',
  },
}
SCSS
$custom: #dc98f8;
$custom-light: #e8b7fb;
$custom-dark: #000000;
JSON
{
  "hex": "#dc98f8",
  "rgb": {
    "r": 220,
    "g": 152,
    "b": 248
  },
  "hsl": {
    "h": 282.5,
    "s": 87.273,
    "l": 78.431
  },
  "oklch": {
    "l": 0.78001,
    "c": 0.14982,
    "h": 315.6
  },
  "luminance": 0.44449
}

Semantic roles & 50–950 ramp

primary
#DC98F8
secondary
#DFF5D6
accent
#E40244
background
#FEFBFF
surface
#FDF6FF
border
#D5D0D7
text
#161117
muted
#848085

Preview Lab

Preview with #DC98F8

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

Preview Lab → · Contrast checker → · Palette generator →

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