#CC98FC#CC98FC

#CC98FC is a light, vivid violet. Relative luminance 0.423; OKLCH L 76.6% C 0.148 H 307.2°. Best body text is #000000 at 9.46:1 contrast (WCAG AA passes).

Color values

HEX#CC98FC
RGBrgb(204, 152, 252)
HSLhsl(271, 94%, 79%)
HSVhsv(271, 40%, 99%)
CMYKcmyk(19%, 39.7%, 0%, 1.2%)
CIE-LABlab(71.09, 37.94, -42.56)
CIE-LCHlch(71.09, 57.01, 311.72°)
OKLaboklab(76.61% 0.0895 -0.1181)
OKLCHoklch(76.61% 0.148 307.2)
XYZxyz(53.6973, 42.3226, 97.4168)
Luminance0.4232 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC98FC #C8FC98
analogous
#9A98FC #CC98FC #FC98FA
triadic
#CC98FC #FCCC98 #98FCCC
tetradic
#CC98FC #FC9A98 #C8FC98 #98FAFC
square
#CC98FC #FC9A98 #C8FC98 #98FAFC
split-complementary
#CC98FC #FAFC98 #98FC9A
monochromatic
#9121F9 #AF5DFA #CC98FC #E9D3FE #F0E1FE

Accessibility & contrast

On white

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

On black

9.46
#CC98FC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CC98FC
9.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC98FC#FFFFFF#000000##000000
##CC98FC1.002.229.469.46
#FFFFFF2.221.0021.0021.00
#0000009.4621.001.001.00
##0000009.4621.001.001.00

Color blindness preview

Protanopia (red-blind)
#82ACFF
Deuteranopia (green-blind)
#8EAFF9
Tritanopia (blue-blind)
#C5A7BE
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #cc98fc;
/* rgb */ color: rgb(204, 152, 252);
/* oklch */ color: oklch(76.6% 0.148 307.2);
Tailwind
colors: {
  custom: {
    50: '#ddb7fd',
    500: '#cc98fc',
    950: '#000000',
  },
}
SCSS
$custom: #cc98fc;
$custom-light: #ddb7fd;
$custom-dark: #000000;
JSON
{
  "hex": "#cc98fc",
  "rgb": {
    "r": 204,
    "g": 152,
    "b": 252
  },
  "hsl": {
    "h": 271.2,
    "s": 94.34,
    "l": 79.216
  },
  "oklch": {
    "l": 0.76607,
    "c": 0.14818,
    "h": 307.2
  },
  "luminance": 0.42322
}

Semantic roles & 50–950 ramp

primary
#CC98FC
secondary
#E5F6D5
accent
#E6006E
background
#FDFBFF
surface
#FBF6FF
border
#D4D0D7
text
#151118
muted
#838086

Preview Lab

Preview with #CC98FC

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

Preview Lab → · Contrast checker → · Palette generator →

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