#CA97FB#CA97FB

#CA97FB is a light, vivid violet. Relative luminance 0.417; OKLCH L 76.2% C 0.148 H 306.7°. Best body text is #000000 at 9.33:1 contrast (WCAG AA passes).

Color values

HEX#CA97FB
RGBrgb(202, 151, 251)
HSLhsl(271, 93%, 79%)
HSVhsv(271, 40%, 98%)
CMYKcmyk(19.5%, 39.8%, 0%, 1.6%)
CIE-LABlab(70.63, 37.69, -42.75)
CIE-LCHlch(70.63, 56.99, 311.41°)
OKLaboklab(76.2% 0.0884 -0.1187)
OKLCHoklch(76.2% 0.148 306.7)
XYZxyz(52.8329, 41.6552, 96.5050)
Luminance0.4165 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA97FB #C8FB97
analogous
#9897FB #CA97FB #FB97FA
triadic
#CA97FB #FBCA97 #97FBCA
tetradic
#CA97FB #FB9897 #C8FB97 #97FAFB
square
#CA97FB #FB9897 #C8FB97 #97FAFB
split-complementary
#CA97FB #FAFB97 #97FB98
monochromatic
#8E21F6 #AC5CF9 #CA97FB #E8D2FD #F0E2FE

Accessibility & contrast

On white

2.25
#CA97FB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.33
#CA97FB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CA97FB
9.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA97FB#FFFFFF#000000##000000
##CA97FB1.002.259.339.33
#FFFFFF2.251.0021.0021.00
#0000009.3321.001.001.00
##0000009.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#81ABFF
Deuteranopia (green-blind)
#8CADF8
Tritanopia (blue-blind)
#C3A7BD
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #ca97fb;
/* rgb */ color: rgb(202, 151, 251);
/* oklch */ color: oklch(76.2% 0.148 306.7);
Tailwind
colors: {
  custom: {
    50: '#dbb6fd',
    500: '#ca97fb',
    950: '#000000',
  },
}
SCSS
$custom: #ca97fb;
$custom-light: #dbb6fd;
$custom-dark: #000000;
JSON
{
  "hex": "#ca97fb",
  "rgb": {
    "r": 202,
    "g": 151,
    "b": 251
  },
  "hsl": {
    "h": 270.6,
    "s": 92.593,
    "l": 78.824
  },
  "oklch": {
    "l": 0.762,
    "c": 0.14798,
    "h": 306.7
  },
  "luminance": 0.41655
}

Semantic roles & 50–950 ramp

primary
#CA97FB
secondary
#E5F6D5
accent
#E60070
background
#FDFBFF
surface
#FBF6FF
border
#D4D0D7
text
#151117
muted
#838085

Preview Lab

Preview with #CA97FB

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

Preview Lab → · Contrast checker → · Palette generator →

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