#CA97EA#CA97EA

#CA97EA is a light, vivid violet. Relative luminance 0.406; OKLCH L 75.4% C 0.128 H 311.7°. Best body text is #000000 at 9.13:1 contrast (WCAG AA passes).

Color values

HEX#CA97EA
RGBrgb(202, 151, 234)
HSLhsl(277, 66%, 75%)
HSVhsv(277, 35%, 92%)
CMYKcmyk(13.7%, 35.5%, 0%, 8.2%)
CIE-LABlab(69.92, 34.03, -34.58)
CIE-LCHlch(69.92, 48.52, 314.54°)
OKLaboklab(75.42% 0.0849 -0.0952)
OKLCHoklch(75.42% 0.128 311.7)
XYZxyz(50.2725, 40.6311, 83.0202)
Luminance0.4063 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA97EA #B7EA97
analogous
#A097EA #CA97EA #EA97E1
triadic
#CA97EA #EACA97 #97EACA
tetradic
#CA97EA #EAA097 #B7EA97 #97E1EA
square
#CA97EA #EAA097 #B7EA97 #97E1EA
split-complementary
#CA97EA #E1EA97 #97EAA0
monochromatic
#9631D5 #B064E0 #CA97EA #E4CAF4 #F2E6FA

Accessibility & contrast

On white

2.30
#CA97EA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.13
#CA97EA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CA97EA
9.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA97EA#FFFFFF#000000##000000
##CA97EA1.002.309.139.13
#FFFFFF2.301.0021.0021.00
#0000009.1321.001.001.00
##0000009.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#88A8ED
Deuteranopia (green-blind)
#94ACE8
Tritanopia (blue-blind)
#C7A2B6
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #ca97ea;
/* rgb */ color: rgb(202, 151, 234);
/* oklch */ color: oklch(75.4% 0.128 311.7);
Tailwind
colors: {
  custom: {
    50: '#dbb6f1',
    500: '#ca97ea',
    950: '#000000',
  },
}
SCSS
$custom: #ca97ea;
$custom-light: #dbb6f1;
$custom-dark: #000000;
JSON
{
  "hex": "#ca97ea",
  "rgb": {
    "r": 202,
    "g": 151,
    "b": 234
  },
  "hsl": {
    "h": 276.867,
    "s": 66.4,
    "l": 75.49
  },
  "oklch": {
    "l": 0.75424,
    "c": 0.12755,
    "h": 311.7
  },
  "luminance": 0.4063
}

Semantic roles & 50–950 ramp

primary
#CA97EA
secondary
#E3F1DA
accent
#CE175E
background
#FDFBFE
surface
#FBF6FD
border
#D4D0D5
text
#151116
muted
#838084

Preview Lab

Preview with #CA97EA

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

Preview Lab → · Contrast checker → · Palette generator →

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