#CC98FD#CC98FD

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

Color values

HEX#CC98FD
RGBrgb(204, 152, 253)
HSLhsl(271, 96%, 79%)
HSVhsv(271, 40%, 99%)
CMYKcmyk(19.4%, 39.9%, 0%, 0.8%)
CIE-LABlab(71.14, 38.16, -43.03)
CIE-LCHlch(71.14, 57.52, 311.57°)
OKLaboklab(76.65% 0.0897 -0.1195)
OKLCHoklch(76.65% 0.149 306.9)
XYZxyz(53.8562, 42.3861, 98.2536)
Luminance0.4239 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC98FD #C9FD98
analogous
#9A98FD #CC98FD #FD98FB
triadic
#CC98FD #FDCC98 #98FDCC
tetradic
#CC98FD #FD9A98 #C9FD98 #98FBFD
square
#CC98FD #FD9A98 #C9FD98 #98FBFD
split-complementary
#CC98FD #FBFD98 #98FD9A
monochromatic
#9120FB #AE5CFC #CC98FD #EAD4FE #F0E1FE

Accessibility & contrast

On white

2.22
#CC98FD on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.48
#CC98FD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CC98FD
9.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC98FD#FFFFFF#000000##000000
##CC98FD1.002.229.489.48
#FFFFFF2.221.0021.0021.00
#0000009.4821.001.001.00
##0000009.4821.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #cc98fd;
/* rgb */ color: rgb(204, 152, 253);
/* oklch */ color: oklch(76.7% 0.149 306.9);
Tailwind
colors: {
  custom: {
    50: '#ddb7fe',
    500: '#cc98fd',
    950: '#000000',
  },
}
SCSS
$custom: #cc98fd;
$custom-light: #ddb7fe;
$custom-dark: #000000;
JSON
{
  "hex": "#cc98fd",
  "rgb": {
    "r": 204,
    "g": 152,
    "b": 253
  },
  "hsl": {
    "h": 270.891,
    "s": 96.19,
    "l": 79.412
  },
  "oklch": {
    "l": 0.76654,
    "c": 0.14939,
    "h": 306.9
  },
  "luminance": 0.42386
}

Semantic roles & 50–950 ramp

primary
#CC98FD
secondary
#E5F7D4
accent
#E6006F
background
#FDFBFF
surface
#FBF6FF
border
#D4D0D7
text
#151118
muted
#838086

Preview Lab

Preview with #CC98FD

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

Preview Lab → · Contrast checker → · Palette generator →

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