#CC98FF#CC98FF

#CC98FF is a light, vivid violet. Relative luminance 0.425; OKLCH L 76.7% C 0.152 H 306.4°. Best body text is #000000 at 9.50:1 contrast (WCAG AA passes).

Color values

HEX#CC98FF
RGBrgb(204, 152, 255)
HSLhsl(270, 100%, 80%)
HSVhsv(270, 40%, 100%)
CMYKcmyk(20%, 40.4%, 0%, 0%)
CIE-LABlab(71.22, 38.60, -43.98)
CIE-LCHlch(71.22, 58.52, 311.27°)
OKLaboklab(76.75% 0.0901 -0.1222)
OKLCHoklch(76.75% 0.152 306.4)
XYZxyz(54.1765, 42.5142, 99.9403)
Luminance0.4251 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC98FF #CBFF98
analogous
#9898FF #CC98FF #FF98FF
triadic
#CC98FF #FFCC98 #98FFCC
tetradic
#CC98FF #FF9898 #CBFF98 #98FFFF
square
#CC98FF #FF9898 #CBFF98 #98FFFF
split-complementary
#CC98FF #FFFF98 #98FF98
monochromatic
#8F1EFF #AE5BFF #CC98FF #EAD5FF #F0E0FF

Accessibility & contrast

On white

2.21
#CC98FF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.50
#CC98FF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CC98FF
9.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC98FF#FFFFFF#000000##000000
##CC98FF1.002.219.509.50
#FFFFFF2.211.0021.0021.00
#0000009.5021.001.001.00
##0000009.5021.001.001.00

Color blindness preview

Protanopia (red-blind)
#80ADFF
Deuteranopia (green-blind)
#8CAFFC
Tritanopia (blue-blind)
#C5A8BF
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #cc98ff;
/* rgb */ color: rgb(204, 152, 255);
/* oklch */ color: oklch(76.7% 0.152 306.4);
Tailwind
colors: {
  custom: {
    50: '#ddb7ff',
    500: '#cc98ff',
    950: '#000000',
  },
}
SCSS
$custom: #cc98ff;
$custom-light: #ddb7ff;
$custom-dark: #000000;
JSON
{
  "hex": "#cc98ff",
  "rgb": {
    "r": 204,
    "g": 152,
    "b": 255
  },
  "hsl": {
    "h": 270.291,
    "s": 100,
    "l": 79.804
  },
  "oklch": {
    "l": 0.76749,
    "c": 0.15181,
    "h": 306.4
  },
  "luminance": 0.42514
}

Semantic roles & 50–950 ramp

primary
#CC98FF
secondary
#E5F7D4
accent
#E60072
background
#FDFBFF
surface
#FBF6FF
border
#D4D0D7
text
#151118
muted
#838086

Preview Lab

Preview with #CC98FF

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

Preview Lab → · Contrast checker → · Palette generator →

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