#CC98ED#CC98ED

#CC98ED is a light, vivid violet. Relative luminance 0.414; OKLCH L 75.9% C 0.130 H 311.6°. Best body text is #000000 at 9.28:1 contrast (WCAG AA passes).

Color values

HEX#CC98ED
RGBrgb(204, 152, 237)
HSLhsl(277, 70%, 76%)
HSVhsv(277, 36%, 93%)
CMYKcmyk(13.9%, 35.9%, 0%, 7.1%)
CIE-LABlab(70.46, 34.72, -35.36)
CIE-LCHlch(70.46, 49.56, 314.47°)
OKLaboklab(75.92% 0.0864 -0.0974)
OKLCHoklch(75.92% 0.13 311.6)
XYZxyz(51.4135, 41.4091, 85.3886)
Luminance0.4141 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC98ED #B9ED98
analogous
#A298ED #CC98ED #ED98E4
triadic
#CC98ED #EDCC98 #98EDCC
tetradic
#CC98ED #EDA298 #B9ED98 #98E4ED
square
#CC98ED #EDA298 #B9ED98 #98E4ED
split-complementary
#CC98ED #E4ED98 #98EDA2
monochromatic
#9830DB #B264E4 #CC98ED #E6CCF6 #F2E5FA

Accessibility & contrast

On white

2.26
#CC98ED on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.28
#CC98ED on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CC98ED
9.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC98ED#FFFFFF#000000##000000
##CC98ED1.002.269.289.28
#FFFFFF2.261.0021.0021.00
#0000009.2821.001.001.00
##0000009.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#89AAF0
Deuteranopia (green-blind)
#95ADEB
Tritanopia (blue-blind)
#C9A4B8
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #cc98ed;
/* rgb */ color: rgb(204, 152, 237);
/* oklch */ color: oklch(75.9% 0.130 311.6);
Tailwind
colors: {
  custom: {
    50: '#dcb7f3',
    500: '#cc98ed',
    950: '#000000',
  },
}
SCSS
$custom: #cc98ed;
$custom-light: #dcb7f3;
$custom-dark: #000000;
JSON
{
  "hex": "#cc98ed",
  "rgb": {
    "r": 204,
    "g": 152,
    "b": 237
  },
  "hsl": {
    "h": 276.706,
    "s": 70.248,
    "l": 76.275
  },
  "oklch": {
    "l": 0.75922,
    "c": 0.13023,
    "h": 311.6
  },
  "luminance": 0.41408
}

Semantic roles & 50–950 ramp

primary
#CC98ED
secondary
#E3F2D9
accent
#D2135D
background
#FDFBFE
surface
#FBF6FD
border
#D4D0D5
text
#151117
muted
#838085

Preview Lab

Preview with #CC98ED

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

Preview Lab → · Contrast checker → · Palette generator →

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