#DC98FE#DC98FE

#DC98FE is a light, vivid purple. Relative luminance 0.448; OKLCH L 78.3% C 0.156 H 313.8°. Best body text is #000000 at 9.97:1 contrast (WCAG AA passes).

Color values

HEX#DC98FE
RGBrgb(220, 152, 254)
HSLhsl(280, 98%, 80%)
HSVhsv(280, 40%, 100%)
CMYKcmyk(13.4%, 40.2%, 0%, 0.4%)
CIE-LABlab(72.78, 42.96, -40.89)
CIE-LCHlch(72.78, 59.31, 316.41°)
OKLaboklab(78.27% 0.1083 -0.113)
OKLCHoklch(78.27% 0.156 313.8)
XYZxyz(58.6299, 44.8291, 99.3110)
Luminance0.4483 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DC98FE #BAFE98
analogous
#A998FE #DC98FE #FE98ED
triadic
#DC98FE #FEDC98 #98FEDC
tetradic
#DC98FE #FEA998 #BAFE98 #98EDFE
square
#DC98FE #FEA998 #BAFE98 #98EDFE
split-complementary
#DC98FE #EDFE98 #98FEA9
monochromatic
#B31FFD #C75BFD #DC98FE #F1D5FF #F5E1FF

Accessibility & contrast

On white

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

On black

9.97
#DC98FE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DC98FE
9.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DC98FE#FFFFFF#000000##000000
##DC98FE1.002.119.979.97
#FFFFFF2.111.0021.0021.00
#0000009.9721.001.001.00
##0000009.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#85AFFF
Deuteranopia (green-blind)
#96B4FB
Tritanopia (blue-blind)
#D9A6BF
Achromatopsia (no color)
#B3B3B3

Design tokens & code

CSS
--color: #dc98fe;
/* rgb */ color: rgb(220, 152, 254);
/* oklch */ color: oklch(78.3% 0.156 313.8);
Tailwind
colors: {
  custom: {
    50: '#e8b7ff',
    500: '#dc98fe',
    950: '#000000',
  },
}
SCSS
$custom: #dc98fe;
$custom-light: #e8b7ff;
$custom-dark: #000000;
JSON
{
  "hex": "#dc98fe",
  "rgb": {
    "r": 220,
    "g": 152,
    "b": 254
  },
  "hsl": {
    "h": 280,
    "s": 98.077,
    "l": 79.608
  },
  "oklch": {
    "l": 0.78272,
    "c": 0.15649,
    "h": 313.8
  },
  "luminance": 0.44828
}

Semantic roles & 50–950 ramp

primary
#DC98FE
secondary
#E0F7D4
accent
#E6004C
background
#FEFBFF
surface
#FDF6FF
border
#D5D0D7
text
#161118
muted
#848086

Preview Lab

Preview with #DC98FE

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

Preview Lab → · Contrast checker → · Palette generator →

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