#CA97FD#CA97FD

#CA97FD is a light, vivid violet. Relative luminance 0.418; OKLCH L 76.3% C 0.150 H 306.2°. Best body text is #000000 at 9.36:1 contrast (WCAG AA passes).

Color values

HEX#CA97FD
RGBrgb(202, 151, 253)
HSLhsl(270, 96%, 79%)
HSVhsv(270, 40%, 99%)
CMYKcmyk(20.2%, 40.3%, 0%, 0.8%)
CIE-LABlab(70.72, 38.14, -43.70)
CIE-LCHlch(70.72, 58.00, 311.11°)
OKLaboklab(76.3% 0.0888 -0.1214)
OKLCHoklch(76.3% 0.15 306.2)
XYZxyz(53.1498, 41.7820, 98.1742)
Luminance0.4178 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA97FD #CAFD97
analogous
#9797FD #CA97FD #FD97FD
triadic
#CA97FD #FDCA97 #97FDCA
tetradic
#CA97FD #FD9797 #CAFD97 #97FDFD
square
#CA97FD #FD9797 #CAFD97 #97FDFD
split-complementary
#CA97FD #FDFD97 #97FD97
monochromatic
#8D1FFB #AB5BFC #CA97FD #E9D3FE #F0E1FE

Accessibility & contrast

On white

2.24
#CA97FD on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.36
#CA97FD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CA97FD
9.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA97FD#FFFFFF#000000##000000
##CA97FD1.002.249.369.36
#FFFFFF2.241.0021.0021.00
#0000009.3621.001.001.00
##0000009.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#80ABFF
Deuteranopia (green-blind)
#8BADFA
Tritanopia (blue-blind)
#C2A7BE
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #ca97fd;
/* rgb */ color: rgb(202, 151, 253);
/* oklch */ color: oklch(76.3% 0.150 306.2);
Tailwind
colors: {
  custom: {
    50: '#dcb6fe',
    500: '#ca97fd',
    950: '#000000',
  },
}
SCSS
$custom: #ca97fd;
$custom-light: #dcb6fe;
$custom-dark: #000000;
JSON
{
  "hex": "#ca97fd",
  "rgb": {
    "r": 202,
    "g": 151,
    "b": 253
  },
  "hsl": {
    "h": 270,
    "s": 96.226,
    "l": 79.216
  },
  "oklch": {
    "l": 0.76296,
    "c": 0.15041,
    "h": 306.2
  },
  "luminance": 0.41782
}

Semantic roles & 50–950 ramp

primary
#CA97FD
secondary
#E6F7D4
accent
#E60073
background
#FDFBFF
surface
#FBF6FF
border
#D4D0D7
text
#151118
muted
#838086

Preview Lab

Preview with #CA97FD

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

Preview Lab → · Contrast checker → · Palette generator →

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