#CC98EC#CC98EC

#CC98EC is a light, vivid violet. Relative luminance 0.413; OKLCH L 75.9% C 0.129 H 311.9°. Best body text is #000000 at 9.27:1 contrast (WCAG AA passes).

Color values

HEX#CC98EC
RGBrgb(204, 152, 236)
HSLhsl(277, 69%, 76%)
HSVhsv(277, 36%, 93%)
CMYKcmyk(13.6%, 35.6%, 0%, 7.5%)
CIE-LABlab(70.42, 34.51, -34.88)
CIE-LCHlch(70.42, 49.06, 314.69°)
OKLaboklab(75.88% 0.0862 -0.096)
OKLCHoklch(75.88% 0.129 311.9)
XYZxyz(51.2678, 41.3508, 84.6213)
Luminance0.4135 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC98EC #B8EC98
analogous
#A298EC #CC98EC #EC98E2
triadic
#CC98EC #ECCC98 #98ECCC
tetradic
#CC98EC #ECA298 #B8EC98 #98E2EC
square
#CC98EC #ECA298 #B8EC98 #98E2EC
split-complementary
#CC98EC #E2EC98 #98ECA2
monochromatic
#9931D9 #B264E2 #CC98EC #E6CCF6 #F2E5FA

Accessibility & contrast

On white

2.27
#CC98EC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.27
#CC98EC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CC98EC
9.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC98EC#FFFFFF#000000##000000
##CC98EC1.002.279.279.27
#FFFFFF2.271.0021.0021.00
#0000009.2721.001.001.00
##0000009.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#89A9EF
Deuteranopia (green-blind)
#95ADEA
Tritanopia (blue-blind)
#C9A3B7
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #cc98ec;
/* rgb */ color: rgb(204, 152, 236);
/* oklch */ color: oklch(75.9% 0.129 311.9);
Tailwind
colors: {
  custom: {
    50: '#dcb7f2',
    500: '#cc98ec',
    950: '#000000',
  },
}
SCSS
$custom: #cc98ec;
$custom-light: #dcb7f2;
$custom-dark: #000000;
JSON
{
  "hex": "#cc98ec",
  "rgb": {
    "r": 204,
    "g": 152,
    "b": 236
  },
  "hsl": {
    "h": 277.143,
    "s": 68.852,
    "l": 76.078
  },
  "oklch": {
    "l": 0.75878,
    "c": 0.12904,
    "h": 311.9
  },
  "luminance": 0.4135
}

Semantic roles & 50–950 ramp

primary
#CC98EC
secondary
#E3F2D9
accent
#D1155C
background
#FDFBFE
surface
#FBF6FD
border
#D4D0D5
text
#151117
muted
#838085

Preview Lab

Preview with #CC98EC

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

Preview Lab → · Contrast checker → · Palette generator →

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