#CA97DB#CA97DB

#CA97DB is a light, moderate purple. Relative luminance 0.398; OKLCH L 74.8% C 0.110 H 317.5°. Best body text is #000000 at 8.96:1 contrast (WCAG AA passes).

Color values

HEX#CA97DB
RGBrgb(202, 151, 219)
HSLhsl(285, 49%, 73%)
HSVhsv(285, 31%, 86%)
CMYKcmyk(7.8%, 31.1%, 0%, 14.1%)
CIE-LABlab(69.33, 30.94, -27.24)
CIE-LCHlch(69.33, 41.22, 318.64°)
OKLaboklab(74.79% 0.0812 -0.0744)
OKLCHoklch(74.79% 0.11 317.5)
XYZxyz(48.2081, 39.8053, 72.1478)
Luminance0.3980 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA97DB #A8DB97
analogous
#A897DB #CA97DB #DB97CA
triadic
#CA97DB #DBCA97 #97DBCA
tetradic
#CA97DB #DBA897 #A8DB97 #97CADB
square
#CA97DB #DBA897 #A8DB97 #97CADB
split-complementary
#CA97DB #CADB97 #97DBA8
monochromatic
#9A40B8 #B36ACB #CA97DB #E1C4EB #F3E8F7

Accessibility & contrast

On white

2.34
#CA97DB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.96
#CA97DB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CA97DB
8.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA97DB#FFFFFF#000000##000000
##CA97DB1.002.348.968.96
#FFFFFF2.341.0021.0021.00
#0000008.9621.001.001.00
##0000008.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#8EA6DE
Deuteranopia (green-blind)
#9AABD9
Tritanopia (blue-blind)
#CA9FB0
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #ca97db;
/* rgb */ color: rgb(202, 151, 219);
/* oklch */ color: oklch(74.8% 0.110 317.5);
Tailwind
colors: {
  custom: {
    50: '#dbb6e6',
    500: '#ca97db',
    950: '#000000',
  },
}
SCSS
$custom: #ca97db;
$custom-light: #dbb6e6;
$custom-dark: #000000;
JSON
{
  "hex": "#ca97db",
  "rgb": {
    "r": 202,
    "g": 151,
    "b": 219
  },
  "hsl": {
    "h": 285,
    "s": 48.571,
    "l": 72.549
  },
  "oklch": {
    "l": 0.74785,
    "c": 0.11007,
    "h": 317.5
  },
  "luminance": 0.39804
}

Semantic roles & 50–950 ramp

primary
#CA97DB
secondary
#E1EEDD
accent
#BC2A4E
background
#FDFBFE
surface
#FBF6FC
border
#D4D0D5
text
#151116
muted
#838084

Preview Lab

Preview with #CA97DB

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

Preview Lab → · Contrast checker → · Palette generator →

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