#CC98DC#CC98DC

#CC98DC is a light, moderate purple. Relative luminance 0.405; OKLCH L 75.2% C 0.111 H 318.1°. Best body text is #000000 at 9.09:1 contrast (WCAG AA passes).

Color values

HEX#CC98DC
RGBrgb(204, 152, 220)
HSLhsl(286, 49%, 73%)
HSVhsv(286, 31%, 86%)
CMYKcmyk(7.3%, 30.9%, 0%, 13.7%)
CIE-LABlab(69.80, 31.23, -27.06)
CIE-LCHlch(69.80, 41.32, 319.09°)
OKLaboklab(75.2% 0.0822 -0.0738)
OKLCHoklch(75.2% 0.111 318.1)
XYZxyz(49.0465, 40.4623, 72.9226)
Luminance0.4046 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC98DC #A8DC98
analogous
#AA98DC #CC98DC #DC98CA
triadic
#CC98DC #DCCC98 #98DCCC
tetradic
#CC98DC #DCAA98 #A8DC98 #98CADC
square
#CC98DC #DCAA98 #A8DC98 #98CADC
split-complementary
#CC98DC #CADC98 #98DCAA
monochromatic
#9D3FBA #B56ACC #CC98DC #E3C6EC #F4E8F7

Accessibility & contrast

On white

2.31
#CC98DC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.09
#CC98DC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CC98DC
9.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC98DC#FFFFFF#000000##000000
##CC98DC1.002.319.099.09
#FFFFFF2.311.0021.0021.00
#0000009.0921.001.001.00
##0000009.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#8FA7DF
Deuteranopia (green-blind)
#9BACDA
Tritanopia (blue-blind)
#CCA0B1
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #cc98dc;
/* rgb */ color: rgb(204, 152, 220);
/* oklch */ color: oklch(75.2% 0.111 318.1);
Tailwind
colors: {
  custom: {
    50: '#dcb7e7',
    500: '#cc98dc',
    950: '#000000',
  },
}
SCSS
$custom: #cc98dc;
$custom-light: #dcb7e7;
$custom-dark: #000000;
JSON
{
  "hex": "#cc98dc",
  "rgb": {
    "r": 204,
    "g": 152,
    "b": 220
  },
  "hsl": {
    "h": 285.882,
    "s": 49.275,
    "l": 72.941
  },
  "oklch": {
    "l": 0.75199,
    "c": 0.1105,
    "h": 318.1
  },
  "luminance": 0.40461
}

Semantic roles & 50–950 ramp

primary
#CC98DC
secondary
#E1EEDD
accent
#BD294C
background
#FDFBFE
surface
#FBF6FC
border
#D4D0D5
text
#151116
muted
#838084

Preview Lab

Preview with #CC98DC

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

Preview Lab → · Contrast checker → · Palette generator →

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