#CC98EA#CC98EA

#CC98EA is a light, vivid violet. Relative luminance 0.412; OKLCH L 75.8% C 0.127 H 312.6°. Best body text is #000000 at 9.25:1 contrast (WCAG AA passes).

Color values

HEX#CC98EA
RGBrgb(204, 152, 234)
HSLhsl(278, 66%, 76%)
HSVhsv(278, 35%, 92%)
CMYKcmyk(12.8%, 35%, 0%, 8.2%)
CIE-LABlab(70.34, 34.09, -33.91)
CIE-LCHlch(70.34, 48.08, 315.15°)
OKLaboklab(75.79% 0.0857 -0.0933)
OKLCHoklch(75.79% 0.127 312.6)
XYZxyz(50.9789, 41.2352, 83.0996)
Luminance0.4123 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC98EA #B6EA98
analogous
#A398EA #CC98EA #EA98DF
triadic
#CC98EA #EACC98 #98EACC
tetradic
#CC98EA #EAA398 #B6EA98 #98DFEA
square
#CC98EA #EAA398 #B6EA98 #98DFEA
split-complementary
#CC98EA #DFEA98 #98EAA3
monochromatic
#9A32D5 #B365E0 #CC98EA #E5CBF4 #F2E6FA

Accessibility & contrast

On white

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

On black

9.25
#CC98EA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CC98EA
9.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC98EA#FFFFFF#000000##000000
##CC98EA1.002.279.259.25
#FFFFFF2.271.0021.0021.00
#0000009.2521.001.001.00
##0000009.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#8AA9ED
Deuteranopia (green-blind)
#96ADE8
Tritanopia (blue-blind)
#C9A3B6
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #cc98ea;
/* rgb */ color: rgb(204, 152, 234);
/* oklch */ color: oklch(75.8% 0.127 312.6);
Tailwind
colors: {
  custom: {
    50: '#dcb7f1',
    500: '#cc98ea',
    950: '#000000',
  },
}
SCSS
$custom: #cc98ea;
$custom-light: #dcb7f1;
$custom-dark: #000000;
JSON
{
  "hex": "#cc98ea",
  "rgb": {
    "r": 204,
    "g": 152,
    "b": 234
  },
  "hsl": {
    "h": 278.049,
    "s": 66.129,
    "l": 75.686
  },
  "oklch": {
    "l": 0.7579,
    "c": 0.12668,
    "h": 312.6
  },
  "luminance": 0.41234
}

Semantic roles & 50–950 ramp

primary
#CC98EA
secondary
#E2F1DA
accent
#CE185A
background
#FDFBFE
surface
#FBF6FD
border
#D4D0D5
text
#151116
muted
#838084

Preview Lab

Preview with #CC98EA

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

Preview Lab → · Contrast checker → · Palette generator →

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