#DC98FA#DC98FA

#DC98FA is a light, vivid purple. Relative luminance 0.446; OKLCH L 78.1% C 0.152 H 315.0°. Best body text is #000000 at 9.91:1 contrast (WCAG AA passes).

Color values

HEX#DC98FA
RGBrgb(220, 152, 250)
HSLhsl(282, 91%, 79%)
HSVhsv(282, 39%, 98%)
CMYKcmyk(12%, 39.2%, 0%, 2%)
CIE-LABlab(72.61, 42.14, -38.98)
CIE-LCHlch(72.61, 57.41, 317.23°)
OKLaboklab(78.09% 0.1075 -0.1075)
OKLCHoklch(78.09% 0.152 315)
XYZxyz(57.9961, 44.5756, 95.9727)
Luminance0.4457 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DC98FA #B6FA98
analogous
#AB98FA #DC98FA #FA98E7
triadic
#DC98FA #FADC98 #98FADC
tetradic
#DC98FA #FAAB98 #B6FA98 #98E7FA
square
#DC98FA #FAAB98 #B6FA98 #98E7FA
split-complementary
#DC98FA #E7FA98 #98FAAB
monochromatic
#B423F4 #C85EF7 #DC98FA #F0D2FD #F5E2FE

Accessibility & contrast

On white

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

On black

9.91
#DC98FA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DC98FA
9.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DC98FA#FFFFFF#000000##000000
##DC98FA1.002.129.919.91
#FFFFFF2.121.0021.0021.00
#0000009.9121.001.001.00
##0000009.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#87AEFE
Deuteranopia (green-blind)
#98B4F7
Tritanopia (blue-blind)
#DAA5BD
Achromatopsia (no color)
#B2B2B2

Design tokens & code

CSS
--color: #dc98fa;
/* rgb */ color: rgb(220, 152, 250);
/* oklch */ color: oklch(78.1% 0.152 315.0);
Tailwind
colors: {
  custom: {
    50: '#e8b7fc',
    500: '#dc98fa',
    950: '#000000',
  },
}
SCSS
$custom: #dc98fa;
$custom-light: #e8b7fc;
$custom-dark: #000000;
JSON
{
  "hex": "#dc98fa",
  "rgb": {
    "r": 220,
    "g": 152,
    "b": 250
  },
  "hsl": {
    "h": 281.633,
    "s": 90.741,
    "l": 78.824
  },
  "oklch": {
    "l": 0.78091,
    "c": 0.15204,
    "h": 315
  },
  "luminance": 0.44574
}

Semantic roles & 50–950 ramp

primary
#DC98FA
secondary
#DFF6D5
accent
#E60046
background
#FEFBFF
surface
#FDF6FF
border
#D5D0D7
text
#161117
muted
#848085

Preview Lab

Preview with #DC98FA

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

Preview Lab → · Contrast checker → · Palette generator →

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