#CC98EE#CC98EE

#CC98EE is a light, vivid violet. Relative luminance 0.415; OKLCH L 76.0% C 0.131 H 311.2°. Best body text is #000000 at 9.29:1 contrast (WCAG AA passes).

Color values

HEX#CC98EE
RGBrgb(204, 152, 238)
HSLhsl(276, 72%, 76%)
HSVhsv(276, 36%, 93%)
CMYKcmyk(14.3%, 36.1%, 0%, 6.7%)
CIE-LABlab(70.50, 34.93, -35.85)
CIE-LCHlch(70.50, 50.05, 314.26°)
OKLaboklab(75.97% 0.0866 -0.0988)
OKLCHoklch(75.97% 0.131 311.2)
XYZxyz(51.5600, 41.4677, 86.1602)
Luminance0.4147 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC98EE #BAEE98
analogous
#A198EE #CC98EE #EE98E5
triadic
#CC98EE #EECC98 #98EECC
tetradic
#CC98EE #EEA198 #BAEE98 #98E5EE
square
#CC98EE #EEA198 #BAEE98 #98E5EE
split-complementary
#CC98EE #E5EE98 #98EEA1
monochromatic
#982FDD #B263E5 #CC98EE #E6CDF7 #F2E5FB

Accessibility & contrast

On white

2.26
#CC98EE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.29
#CC98EE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CC98EE
9.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC98EE#FFFFFF#000000##000000
##CC98EE1.002.269.299.29
#FFFFFF2.261.0021.0021.00
#0000009.2921.001.001.00
##0000009.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#88AAF1
Deuteranopia (green-blind)
#94AEEB
Tritanopia (blue-blind)
#C9A4B8
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #cc98ee;
/* rgb */ color: rgb(204, 152, 238);
/* oklch */ color: oklch(76.0% 0.131 311.2);
Tailwind
colors: {
  custom: {
    50: '#dcb7f4',
    500: '#cc98ee',
    950: '#000000',
  },
}
SCSS
$custom: #cc98ee;
$custom-light: #dcb7f4;
$custom-dark: #000000;
JSON
{
  "hex": "#cc98ee",
  "rgb": {
    "r": 204,
    "g": 152,
    "b": 238
  },
  "hsl": {
    "h": 276.279,
    "s": 71.667,
    "l": 76.471
  },
  "oklch": {
    "l": 0.75967,
    "c": 0.13141,
    "h": 311.2
  },
  "luminance": 0.41467
}

Semantic roles & 50–950 ramp

primary
#CC98EE
secondary
#E3F2D9
accent
#D4125E
background
#FDFBFE
surface
#FBF6FD
border
#D4D0D5
text
#151117
muted
#838085

Preview Lab

Preview with #CC98EE

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

Preview Lab → · Contrast checker → · Palette generator →

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