#CC98FB#CC98FB

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

Color values

HEX#CC98FB
RGBrgb(204, 152, 251)
HSLhsl(272, 93%, 79%)
HSVhsv(272, 39%, 98%)
CMYKcmyk(18.7%, 39.4%, 0%, 1.6%)
CIE-LABlab(71.05, 37.72, -42.08)
CIE-LCHlch(71.05, 56.51, 311.87°)
OKLaboklab(76.56% 0.0893 -0.1167)
OKLCHoklch(76.56% 0.147 307.4)
XYZxyz(53.5393, 42.2594, 96.5845)
Luminance0.4226 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC98FB #C7FB98
analogous
#9B98FB #CC98FB #FB98F9
triadic
#CC98FB #FBCC98 #98FBCC
tetradic
#CC98FB #FB9B98 #C7FB98 #98F9FB
square
#CC98FB #FB9B98 #C7FB98 #98F9FB
split-complementary
#CC98FB #F9FB98 #98FB9B
monochromatic
#9222F6 #AF5DF9 #CC98FB #E9D3FD #F0E2FE

Accessibility & contrast

On white

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

On black

9.45
#CC98FB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CC98FB
9.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC98FB#FFFFFF#000000##000000
##CC98FB1.002.229.459.45
#FFFFFF2.221.0021.0021.00
#0000009.4521.001.001.00
##0000009.4521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #cc98fb;
/* rgb */ color: rgb(204, 152, 251);
/* oklch */ color: oklch(76.6% 0.147 307.4);
Tailwind
colors: {
  custom: {
    50: '#ddb7fd',
    500: '#cc98fb',
    950: '#000000',
  },
}
SCSS
$custom: #cc98fb;
$custom-light: #ddb7fd;
$custom-dark: #000000;
JSON
{
  "hex": "#cc98fb",
  "rgb": {
    "r": 204,
    "g": 152,
    "b": 251
  },
  "hsl": {
    "h": 271.515,
    "s": 92.523,
    "l": 79.02
  },
  "oklch": {
    "l": 0.7656,
    "c": 0.14698,
    "h": 307.4
  },
  "luminance": 0.42259
}

Semantic roles & 50–950 ramp

primary
#CC98FB
secondary
#E5F6D5
accent
#E6006D
background
#FDFBFF
surface
#FBF6FF
border
#D4D0D7
text
#151117
muted
#838085

Preview Lab

Preview with #CC98FB

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

Preview Lab → · Contrast checker → · Palette generator →

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