#CC98DB#CC98DB

#CC98DB is a light, moderate purple. Relative luminance 0.404; OKLCH L 75.2% C 0.109 H 318.5°. Best body text is #000000 at 9.08:1 contrast (WCAG AA passes).

Color values

HEX#CC98DB
RGBrgb(204, 152, 219)
HSLhsl(287, 48%, 73%)
HSVhsv(287, 31%, 86%)
CMYKcmyk(6.8%, 30.6%, 0%, 14.1%)
CIE-LABlab(69.76, 31.03, -26.56)
CIE-LCHlch(69.76, 40.85, 319.43°)
OKLaboklab(75.16% 0.082 -0.0724)
OKLCHoklch(75.16% 0.109 318.5)
XYZxyz(48.9145, 40.4094, 72.2272)
Luminance0.4041 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC98DB #A7DB98
analogous
#AA98DB #CC98DB #DB98C8
triadic
#CC98DB #DBCC98 #98DBCC
tetradic
#CC98DB #DBAA98 #A7DB98 #98C8DB
square
#CC98DB #DBAA98 #A7DB98 #98C8DB
split-complementary
#CC98DB #C8DB98 #98DBAA
monochromatic
#9D40B8 #B66BCB #CC98DB #E2C5EB #F4E8F7

Accessibility & contrast

On white

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

On black

9.08
#CC98DB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CC98DB
9.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC98DB#FFFFFF#000000##000000
##CC98DB1.002.319.089.08
#FFFFFF2.311.0021.0021.00
#0000009.0821.001.001.00
##0000009.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#90A7DE
Deuteranopia (green-blind)
#9CACD9
Tritanopia (blue-blind)
#CDA0B0
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #cc98db;
/* rgb */ color: rgb(204, 152, 219);
/* oklch */ color: oklch(75.2% 0.109 318.5);
Tailwind
colors: {
  custom: {
    50: '#dcb7e6',
    500: '#cc98db',
    950: '#000000',
  },
}
SCSS
$custom: #cc98db;
$custom-light: #dcb7e6;
$custom-dark: #000000;
JSON
{
  "hex": "#cc98db",
  "rgb": {
    "r": 204,
    "g": 152,
    "b": 219
  },
  "hsl": {
    "h": 286.567,
    "s": 48.201,
    "l": 72.745
  },
  "oklch": {
    "l": 0.75158,
    "c": 0.10938,
    "h": 318.5
  },
  "luminance": 0.40408
}

Semantic roles & 50–950 ramp

primary
#CC98DB
secondary
#E1EEDD
accent
#BB2A4B
background
#FDFBFE
surface
#FBF6FC
border
#D4D0D5
text
#151116
muted
#838084

Preview Lab

Preview with #CC98DB

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

Preview Lab → · Contrast checker → · Palette generator →

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