#CA97EC#CA97EC

#CA97EC is a light, vivid violet. Relative luminance 0.407; OKLCH L 75.5% C 0.130 H 311.0°. Best body text is #000000 at 9.15:1 contrast (WCAG AA passes).

Color values

HEX#CA97EC
RGBrgb(202, 151, 236)
HSLhsl(276, 69%, 76%)
HSVhsv(276, 36%, 93%)
CMYKcmyk(14.4%, 36%, 0%, 7.5%)
CIE-LABlab(70.00, 34.45, -35.55)
CIE-LCHlch(70.00, 49.51, 314.10°)
OKLaboklab(75.51% 0.0853 -0.098)
OKLCHoklch(75.51% 0.13 311)
XYZxyz(50.5614, 40.7466, 84.5419)
Luminance0.4075 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA97EC #B9EC97
analogous
#9F97EC #CA97EC #EC97E3
triadic
#CA97EC #ECCA97 #97ECCA
tetradic
#CA97EC #EC9F97 #B9EC97 #97E3EC
square
#CA97EC #EC9F97 #B9EC97 #97E3EC
split-complementary
#CA97EC #E3EC97 #97EC9F
monochromatic
#9530D9 #B063E3 #CA97EC #E4CBF5 #F2E5FA

Accessibility & contrast

On white

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

On black

9.15
#CA97EC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CA97EC
9.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA97EC#FFFFFF#000000##000000
##CA97EC1.002.309.159.15
#FFFFFF2.301.0021.0021.00
#0000009.1521.001.001.00
##0000009.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#87A9EF
Deuteranopia (green-blind)
#93ACEA
Tritanopia (blue-blind)
#C6A3B7
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #ca97ec;
/* rgb */ color: rgb(202, 151, 236);
/* oklch */ color: oklch(75.5% 0.130 311.0);
Tailwind
colors: {
  custom: {
    50: '#dbb6f2',
    500: '#ca97ec',
    950: '#000000',
  },
}
SCSS
$custom: #ca97ec;
$custom-light: #dbb6f2;
$custom-dark: #000000;
JSON
{
  "hex": "#ca97ec",
  "rgb": {
    "r": 202,
    "g": 151,
    "b": 236
  },
  "hsl": {
    "h": 276,
    "s": 69.106,
    "l": 75.882
  },
  "oklch": {
    "l": 0.75512,
    "c": 0.12992,
    "h": 311
  },
  "luminance": 0.40746
}

Semantic roles & 50–950 ramp

primary
#CA97EC
secondary
#E3F2D9
accent
#D11460
background
#FDFBFE
surface
#FBF6FD
border
#D4D0D5
text
#151117
muted
#838085

Preview Lab

Preview with #CA97EC

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

Preview Lab → · Contrast checker → · Palette generator →

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