#CC98F9#CC98F9

#CC98F9 is a light, vivid violet. Relative luminance 0.421; OKLCH L 76.5% C 0.145 H 308.0°. Best body text is #000000 at 9.43:1 contrast (WCAG AA passes).

Color values

HEX#CC98F9
RGBrgb(204, 152, 249)
HSLhsl(272, 89%, 79%)
HSVhsv(272, 39%, 98%)
CMYKcmyk(18.1%, 39%, 0%, 2.4%)
CIE-LABlab(70.96, 37.29, -41.13)
CIE-LCHlch(70.96, 55.51, 312.19°)
OKLaboklab(76.47% 0.0889 -0.114)
OKLCHoklch(76.47% 0.145 308)
XYZxyz(53.2257, 42.1339, 94.9329)
Luminance0.4213 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC98F9 #C5F998
analogous
#9B98F9 #CC98F9 #F998F5
triadic
#CC98F9 #F9CC98 #98F9CC
tetradic
#CC98F9 #F99B98 #C5F998 #98F5F9
square
#CC98F9 #F99B98 #C5F998 #98F5F9
split-complementary
#CC98F9 #F5F998 #98F99B
monochromatic
#9324F2 #AF5EF6 #CC98F9 #E9D2FC #F1E2FD

Accessibility & contrast

On white

2.23
#CC98F9 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.43
#CC98F9 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CC98F9
9.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC98F9#FFFFFF#000000##000000
##CC98F91.002.239.439.43
#FFFFFF2.231.0021.0021.00
#0000009.4321.001.001.00
##0000009.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#83ACFD
Deuteranopia (green-blind)
#8FAEF6
Tritanopia (blue-blind)
#C6A7BD
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #cc98f9;
/* rgb */ color: rgb(204, 152, 249);
/* oklch */ color: oklch(76.5% 0.145 308.0);
Tailwind
colors: {
  custom: {
    50: '#ddb7fb',
    500: '#cc98f9',
    950: '#000000',
  },
}
SCSS
$custom: #cc98f9;
$custom-light: #ddb7fb;
$custom-dark: #000000;
JSON
{
  "hex": "#cc98f9",
  "rgb": {
    "r": 204,
    "g": 152,
    "b": 249
  },
  "hsl": {
    "h": 272.165,
    "s": 88.991,
    "l": 78.627
  },
  "oklch": {
    "l": 0.76467,
    "c": 0.14456,
    "h": 308
  },
  "luminance": 0.42133
}

Semantic roles & 50–950 ramp

primary
#CC98F9
secondary
#E4F5D6
accent
#E6006A
background
#FDFBFF
surface
#FBF6FF
border
#D4D0D7
text
#151117
muted
#838085

Preview Lab

Preview with #CC98F9

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

Preview Lab → · Contrast checker → · Palette generator →

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