#DC98FC#DC98FC

#DC98FC is a light, vivid purple. Relative luminance 0.447; OKLCH L 78.2% C 0.154 H 314.4°. Best body text is #000000 at 9.94:1 contrast (WCAG AA passes).

Color values

HEX#DC98FC
RGBrgb(220, 152, 252)
HSLhsl(281, 94%, 79%)
HSVhsv(281, 40%, 99%)
CMYKcmyk(12.7%, 39.7%, 0%, 1.2%)
CIE-LABlab(72.69, 42.55, -39.94)
CIE-LCHlch(72.69, 58.36, 316.81°)
OKLaboklab(78.18% 0.1079 -0.1102)
OKLCHoklch(78.18% 0.154 314.4)
XYZxyz(58.3113, 44.7017, 97.6331)
Luminance0.4470 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DC98FC #B8FC98
analogous
#AA98FC #DC98FC #FC98EA
triadic
#DC98FC #FCDC98 #98FCDC
tetradic
#DC98FC #FCAA98 #B8FC98 #98EAFC
square
#DC98FC #FCAA98 #B8FC98 #98EAFC
split-complementary
#DC98FC #EAFC98 #98FCAA
monochromatic
#B421F9 #C85DFA #DC98FC #F0D3FE #F5E1FE

Accessibility & contrast

On white

2.11
#DC98FC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.94
#DC98FC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DC98FC
9.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DC98FC#FFFFFF#000000##000000
##DC98FC1.002.119.949.94
#FFFFFF2.111.0021.0021.00
#0000009.9421.001.001.00
##0000009.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#86AEFF
Deuteranopia (green-blind)
#97B4F9
Tritanopia (blue-blind)
#DAA6BE
Achromatopsia (no color)
#B2B2B2

Design tokens & code

CSS
--color: #dc98fc;
/* rgb */ color: rgb(220, 152, 252);
/* oklch */ color: oklch(78.2% 0.154 314.4);
Tailwind
colors: {
  custom: {
    50: '#e8b7fd',
    500: '#dc98fc',
    950: '#000000',
  },
}
SCSS
$custom: #dc98fc;
$custom-light: #e8b7fd;
$custom-dark: #000000;
JSON
{
  "hex": "#dc98fc",
  "rgb": {
    "r": 220,
    "g": 152,
    "b": 252
  },
  "hsl": {
    "h": 280.8,
    "s": 94.34,
    "l": 79.216
  },
  "oklch": {
    "l": 0.78181,
    "c": 0.15426,
    "h": 314.4
  },
  "luminance": 0.447
}

Semantic roles & 50–950 ramp

primary
#DC98FC
secondary
#DFF6D5
accent
#E60049
background
#FEFBFF
surface
#FDF6FF
border
#D5D0D7
text
#161117
muted
#848085

Preview Lab

Preview with #DC98FC

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

Preview Lab → · Contrast checker → · Palette generator →

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