#CA97E7#CA97E7

#CA97E7 is a light, vivid violet. Relative luminance 0.405; OKLCH L 75.3% C 0.124 H 312.7°. Best body text is #000000 at 9.09:1 contrast (WCAG AA passes).

Color values

HEX#CA97E7
RGBrgb(202, 151, 231)
HSLhsl(278, 63%, 75%)
HSVhsv(278, 35%, 91%)
CMYKcmyk(12.6%, 34.6%, 0%, 9.4%)
CIE-LABlab(69.80, 33.40, -33.12)
CIE-LCHlch(69.80, 47.04, 315.24°)
OKLaboklab(75.29% 0.0842 -0.0911)
OKLCHoklch(75.29% 0.124 312.7)
XYZxyz(49.8451, 40.4601, 80.7696)
Luminance0.4046 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA97E7 #B4E797
analogous
#A297E7 #CA97E7 #E797DC
triadic
#CA97E7 #E7CA97 #97E7CA
tetradic
#CA97E7 #E7A297 #B4E797 #97DCE7
square
#CA97E7 #E7A297 #B4E797 #97DCE7
split-complementary
#CA97E7 #DCE797 #97E7A2
monochromatic
#9734D0 #B165DC #CA97E7 #E3C9F2 #F2E6F9

Accessibility & contrast

On white

2.31
#CA97E7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.09
#CA97E7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CA97E7
9.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA97E7#FFFFFF#000000##000000
##CA97E71.002.319.099.09
#FFFFFF2.311.0021.0021.00
#0000009.0921.001.001.00
##0000009.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#89A8EA
Deuteranopia (green-blind)
#95ACE5
Tritanopia (blue-blind)
#C8A2B5
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #ca97e7;
/* rgb */ color: rgb(202, 151, 231);
/* oklch */ color: oklch(75.3% 0.124 312.7);
Tailwind
colors: {
  custom: {
    50: '#dbb6ef',
    500: '#ca97e7',
    950: '#000000',
  },
}
SCSS
$custom: #ca97e7;
$custom-light: #dbb6ef;
$custom-dark: #000000;
JSON
{
  "hex": "#ca97e7",
  "rgb": {
    "r": 202,
    "g": 151,
    "b": 231
  },
  "hsl": {
    "h": 278.25,
    "s": 62.5,
    "l": 74.902
  },
  "oklch": {
    "l": 0.75292,
    "c": 0.124,
    "h": 312.7
  },
  "luminance": 0.40459
}

Semantic roles & 50–950 ramp

primary
#CA97E7
secondary
#E2F1DA
accent
#CA1B5B
background
#FDFBFE
surface
#FBF6FD
border
#D4D0D5
text
#151116
muted
#838084

Preview Lab

Preview with #CA97E7

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

Preview Lab → · Contrast checker → · Palette generator →

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