#CC98CC#CC98CC

#CC98CC is a light, moderate purple. Relative luminance 0.397; OKLCH L 74.6% C 0.093 H 326.5°. Best body text is #000000 at 8.93:1 contrast (WCAG AA passes).

Color values

HEX#CC98CC
RGBrgb(204, 152, 204)
HSLhsl(300, 34%, 70%)
HSVhsv(300, 25%, 80%)
CMYKcmyk(0%, 25.5%, 0%, 20%)
CIE-LABlab(69.22, 28.13, -19.09)
CIE-LCHlch(69.22, 33.99, 325.83°)
OKLaboklab(74.57% 0.0777 -0.0515)
OKLCHoklch(74.57% 0.093 326.5)
XYZxyz(47.0280, 39.6549, 62.2919)
Luminance0.3965 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC98CC #98CC98
analogous
#B298CC #CC98CC #CC98B2
triadic
#CC98CC #CCCC98 #98CCCC
tetradic
#CC98CC #CCB298 #98CC98 #98B2CC
square
#CC98CC #CCB298 #98CC98 #98B2CC
split-complementary
#CC98CC #B2CC98 #98CCB2
monochromatic
#9C4D9C #B86FB8 #CC98CC #E0C1E0 #F5EAF5

Accessibility & contrast

On white

2.35
#CC98CC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.93
#CC98CC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CC98CC
8.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC98CC#FFFFFF#000000##000000
##CC98CC1.002.358.938.93
#FFFFFF2.351.0021.0021.00
#0000008.9321.001.001.00
##0000008.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#95A5CE
Deuteranopia (green-blind)
#A1ABCA
Tritanopia (blue-blind)
#CF9CAA
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #cc98cc;
/* rgb */ color: rgb(204, 152, 204);
/* oklch */ color: oklch(74.6% 0.093 326.5);
Tailwind
colors: {
  custom: {
    50: '#dcb7db',
    500: '#cc98cc',
    950: '#000000',
  },
}
SCSS
$custom: #cc98cc;
$custom-light: #dcb7db;
$custom-dark: #000000;
JSON
{
  "hex": "#cc98cc",
  "rgb": {
    "r": 204,
    "g": 152,
    "b": 204
  },
  "hsl": {
    "h": 300,
    "s": 33.766,
    "l": 69.804
  },
  "oklch": {
    "l": 0.74571,
    "c": 0.09321,
    "h": 326.5
  },
  "luminance": 0.39653
}

Semantic roles & 50–950 ramp

primary
#CC98CC
secondary
#D9E7D9
accent
#AD3939
background
#FDFBFD
surface
#FBF6FB
border
#D4D0D4
text
#151115
muted
#838083

Preview Lab

Preview with #CC98CC

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

Preview Lab → · Contrast checker → · Palette generator →

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