#CC98DD#CC98DD

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

Color values

HEX#CC98DD
RGBrgb(204, 152, 221)
HSLhsl(285, 50%, 73%)
HSVhsv(285, 31%, 87%)
CMYKcmyk(7.7%, 31.2%, 0%, 13.3%)
CIE-LABlab(69.84, 31.43, -27.55)
CIE-LCHlch(69.84, 41.79, 318.76°)
OKLaboklab(75.24% 0.0825 -0.0752)
OKLCHoklch(75.24% 0.112 317.6)
XYZxyz(49.1794, 40.5154, 73.6222)
Luminance0.4051 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC98DD #A9DD98
analogous
#A998DD #CC98DD #DD98CB
triadic
#CC98DD #DDCC98 #98DDCC
tetradic
#CC98DD #DDA998 #A9DD98 #98CBDD
square
#CC98DD #DDA998 #A9DD98 #98CBDD
split-complementary
#CC98DD #CBDD98 #98DDA9
monochromatic
#9D3EBC #B56ACE #CC98DD #E3C6EC #F4E8F7

Accessibility & contrast

On white

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

On black

9.10
#CC98DD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CC98DD
9.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC98DD#FFFFFF#000000##000000
##CC98DD1.002.319.109.10
#FFFFFF2.311.0021.0021.00
#0000009.1021.001.001.00
##0000009.1021.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #cc98dd;
/* rgb */ color: rgb(204, 152, 221);
/* oklch */ color: oklch(75.2% 0.112 317.6);
Tailwind
colors: {
  custom: {
    50: '#dcb7e7',
    500: '#cc98dd',
    950: '#000000',
  },
}
SCSS
$custom: #cc98dd;
$custom-light: #dcb7e7;
$custom-dark: #000000;
JSON
{
  "hex": "#cc98dd",
  "rgb": {
    "r": 204,
    "g": 152,
    "b": 221
  },
  "hsl": {
    "h": 285.217,
    "s": 50.365,
    "l": 73.137
  },
  "oklch": {
    "l": 0.7524,
    "c": 0.11164,
    "h": 317.6
  },
  "luminance": 0.40514
}

Semantic roles & 50–950 ramp

primary
#CC98DD
secondary
#E1EEDD
accent
#BE284D
background
#FDFBFE
surface
#FBF6FC
border
#D4D0D5
text
#151116
muted
#838084

Preview Lab

Preview with #CC98DD

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

Preview Lab → · Contrast checker → · Palette generator →

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