#DC98FB#DC98FB

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

Color values

HEX#DC98FB
RGBrgb(220, 152, 251)
HSLhsl(281, 93%, 79%)
HSVhsv(281, 39%, 98%)
CMYKcmyk(12.4%, 39.4%, 0%, 1.6%)
CIE-LABlab(72.65, 42.35, -39.46)
CIE-LCHlch(72.65, 57.88, 317.02°)
OKLaboklab(78.14% 0.1077 -0.1089)
OKLCHoklch(78.14% 0.153 314.7)
XYZxyz(58.1533, 44.6385, 96.8007)
Luminance0.4464 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DC98FB #B7FB98
analogous
#AB98FB #DC98FB #FB98E9
triadic
#DC98FB #FBDC98 #98FBDC
tetradic
#DC98FB #FBAB98 #B7FB98 #98E9FB
square
#DC98FB #FBAB98 #B7FB98 #98E9FB
split-complementary
#DC98FB #E9FB98 #98FBAB
monochromatic
#B422F6 #C85DF9 #DC98FB #F0D3FD #F5E2FE

Accessibility & contrast

On white

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

On black

9.93
#DC98FB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DC98FB
9.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DC98FB#FFFFFF#000000##000000
##DC98FB1.002.129.939.93
#FFFFFF2.121.0021.0021.00
#0000009.9321.001.001.00
##0000009.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#87AEFF
Deuteranopia (green-blind)
#98B4F8
Tritanopia (blue-blind)
#DAA5BE
Achromatopsia (no color)
#B2B2B2

Design tokens & code

CSS
--color: #dc98fb;
/* rgb */ color: rgb(220, 152, 251);
/* oklch */ color: oklch(78.1% 0.153 314.7);
Tailwind
colors: {
  custom: {
    50: '#e8b7fd',
    500: '#dc98fb',
    950: '#000000',
  },
}
SCSS
$custom: #dc98fb;
$custom-light: #e8b7fd;
$custom-dark: #000000;
JSON
{
  "hex": "#dc98fb",
  "rgb": {
    "r": 220,
    "g": 152,
    "b": 251
  },
  "hsl": {
    "h": 281.212,
    "s": 92.523,
    "l": 79.02
  },
  "oklch": {
    "l": 0.78136,
    "c": 0.15315,
    "h": 314.7
  },
  "luminance": 0.44637
}

Semantic roles & 50–950 ramp

primary
#DC98FB
secondary
#DFF6D5
accent
#E60048
background
#FEFBFF
surface
#FDF6FF
border
#D5D0D7
text
#161117
muted
#848085

Preview Lab

Preview with #DC98FB

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

Preview Lab → · Contrast checker → · Palette generator →

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