#CC98FA#CC98FA

#CC98FA is a light, vivid violet. Relative luminance 0.422; OKLCH L 76.5% C 0.146 H 307.7°. Best body text is #000000 at 9.44:1 contrast (WCAG AA passes).

Color values

HEX#CC98FA
RGBrgb(204, 152, 250)
HSLhsl(272, 91%, 79%)
HSVhsv(272, 39%, 98%)
CMYKcmyk(18.4%, 39.2%, 0%, 2%)
CIE-LABlab(71.01, 37.50, -41.61)
CIE-LCHlch(71.01, 56.01, 312.03°)
OKLaboklab(76.51% 0.0891 -0.1154)
OKLCHoklch(76.51% 0.146 307.7)
XYZxyz(53.3821, 42.1965, 95.7565)
Luminance0.4220 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC98FA #C6FA98
analogous
#9B98FA #CC98FA #FA98F7
triadic
#CC98FA #FACC98 #98FACC
tetradic
#CC98FA #FA9B98 #C6FA98 #98F7FA
square
#CC98FA #FA9B98 #C6FA98 #98F7FA
split-complementary
#CC98FA #F7FA98 #98FA9B
monochromatic
#9223F4 #AF5EF7 #CC98FA #E9D2FD #F1E2FE

Accessibility & contrast

On white

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

On black

9.44
#CC98FA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CC98FA
9.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC98FA#FFFFFF#000000##000000
##CC98FA1.002.229.449.44
#FFFFFF2.221.0021.0021.00
#0000009.4421.001.001.00
##0000009.4421.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #cc98fa;
/* rgb */ color: rgb(204, 152, 250);
/* oklch */ color: oklch(76.5% 0.146 307.7);
Tailwind
colors: {
  custom: {
    50: '#ddb7fc',
    500: '#cc98fa',
    950: '#000000',
  },
}
SCSS
$custom: #cc98fa;
$custom-light: #ddb7fc;
$custom-dark: #000000;
JSON
{
  "hex": "#cc98fa",
  "rgb": {
    "r": 204,
    "g": 152,
    "b": 250
  },
  "hsl": {
    "h": 271.837,
    "s": 90.741,
    "l": 78.824
  },
  "oklch": {
    "l": 0.76513,
    "c": 0.14577,
    "h": 307.7
  },
  "luminance": 0.42196
}

Semantic roles & 50–950 ramp

primary
#CC98FA
secondary
#E5F6D5
accent
#E6006C
background
#FDFBFF
surface
#FBF6FF
border
#D4D0D7
text
#151117
muted
#838085

Preview Lab

Preview with #CC98FA

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

Preview Lab → · Contrast checker → · Palette generator →

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