#CC98FE#CC98FE

#CC98FE is a light, vivid violet. Relative luminance 0.424; OKLCH L 76.7% C 0.151 H 306.6°. Best body text is #000000 at 9.49:1 contrast (WCAG AA passes).

Color values

HEX#CC98FE
RGBrgb(204, 152, 254)
HSLhsl(271, 98%, 80%)
HSVhsv(271, 40%, 100%)
CMYKcmyk(19.7%, 40.2%, 0%, 0.4%)
CIE-LABlab(71.18, 38.38, -43.51)
CIE-LCHlch(71.18, 58.02, 311.42°)
OKLaboklab(76.7% 0.0899 -0.1208)
OKLCHoklch(76.7% 0.151 306.6)
XYZxyz(54.0159, 42.4500, 99.0948)
Luminance0.4245 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC98FE #CAFE98
analogous
#9998FE #CC98FE #FE98FD
triadic
#CC98FE #FECC98 #98FECC
tetradic
#CC98FE #FE9998 #CAFE98 #98FDFE
square
#CC98FE #FE9998 #CAFE98 #98FDFE
split-complementary
#CC98FE #FDFE98 #98FE99
monochromatic
#901FFD #AE5BFD #CC98FE #EAD5FF #F0E1FF

Accessibility & contrast

On white

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

On black

9.49
#CC98FE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CC98FE
9.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC98FE#FFFFFF#000000##000000
##CC98FE1.002.219.499.49
#FFFFFF2.211.0021.0021.00
#0000009.4921.001.001.00
##0000009.4921.001.001.00

Color blindness preview

Protanopia (red-blind)
#81ACFF
Deuteranopia (green-blind)
#8DAFFB
Tritanopia (blue-blind)
#C5A8BF
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #cc98fe;
/* rgb */ color: rgb(204, 152, 254);
/* oklch */ color: oklch(76.7% 0.151 306.6);
Tailwind
colors: {
  custom: {
    50: '#ddb7ff',
    500: '#cc98fe',
    950: '#000000',
  },
}
SCSS
$custom: #cc98fe;
$custom-light: #ddb7ff;
$custom-dark: #000000;
JSON
{
  "hex": "#cc98fe",
  "rgb": {
    "r": 204,
    "g": 152,
    "b": 254
  },
  "hsl": {
    "h": 270.588,
    "s": 98.077,
    "l": 79.608
  },
  "oklch": {
    "l": 0.76702,
    "c": 0.1506,
    "h": 306.6
  },
  "luminance": 0.4245
}

Semantic roles & 50–950 ramp

primary
#CC98FE
secondary
#E5F7D4
accent
#E60071
background
#FDFBFF
surface
#FBF6FF
border
#D4D0D7
text
#151118
muted
#838086

Preview Lab

Preview with #CC98FE

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

Preview Lab → · Contrast checker → · Palette generator →

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