#CA97DC#CA97DC

#CA97DC is a light, moderate purple. Relative luminance 0.399; OKLCH L 74.8% C 0.111 H 317.1°. Best body text is #000000 at 8.97:1 contrast (WCAG AA passes).

Color values

HEX#CA97DC
RGBrgb(202, 151, 220)
HSLhsl(284, 50%, 73%)
HSVhsv(284, 31%, 86%)
CMYKcmyk(8.2%, 31.4%, 0%, 13.7%)
CIE-LABlab(69.37, 31.14, -27.73)
CIE-LCHlch(69.37, 41.70, 318.31°)
OKLaboklab(74.83% 0.0814 -0.0758)
OKLCHoklch(74.83% 0.111 317.1)
XYZxyz(48.3401, 39.8581, 72.8432)
Luminance0.3986 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA97DC #A9DC97
analogous
#A797DC #CA97DC #DC97CB
triadic
#CA97DC #DCCA97 #97DCCA
tetradic
#CA97DC #DCA797 #A9DC97 #97CBDC
square
#CA97DC #DCA797 #A9DC97 #97CBDC
split-complementary
#CA97DC #CBDC97 #97DCA7
monochromatic
#9A3FBA #B369CD #CA97DC #E1C5EB #F3E8F7

Accessibility & contrast

On white

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

On black

8.97
#CA97DC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CA97DC
8.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA97DC#FFFFFF#000000##000000
##CA97DC1.002.348.978.97
#FFFFFF2.341.0021.0021.00
#0000008.9721.001.001.00
##0000008.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#8EA6DF
Deuteranopia (green-blind)
#99ABDA
Tritanopia (blue-blind)
#CA9FB0
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #ca97dc;
/* rgb */ color: rgb(202, 151, 220);
/* oklch */ color: oklch(74.8% 0.111 317.1);
Tailwind
colors: {
  custom: {
    50: '#dbb6e7',
    500: '#ca97dc',
    950: '#000000',
  },
}
SCSS
$custom: #ca97dc;
$custom-light: #dbb6e7;
$custom-dark: #000000;
JSON
{
  "hex": "#ca97dc",
  "rgb": {
    "r": 202,
    "g": 151,
    "b": 220
  },
  "hsl": {
    "h": 284.348,
    "s": 49.64,
    "l": 72.745
  },
  "oklch": {
    "l": 0.74826,
    "c": 0.11122,
    "h": 317.1
  },
  "luminance": 0.39857
}

Semantic roles & 50–950 ramp

primary
#CA97DC
secondary
#E1EEDD
accent
#BD294F
background
#FDFBFE
surface
#FBF6FC
border
#D4D0D5
text
#151116
muted
#838084

Preview Lab

Preview with #CA97DC

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

Preview Lab → · Contrast checker → · Palette generator →

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