#CA97F2#CA97F2

#CA97F2 is a light, vivid violet. Relative luminance 0.411; OKLCH L 75.8% C 0.137 H 309.2°. Best body text is #000000 at 9.22:1 contrast (WCAG AA passes).

Color values

HEX#CA97F2
RGBrgb(202, 151, 242)
HSLhsl(274, 78%, 77%)
HSVhsv(274, 38%, 95%)
CMYKcmyk(16.5%, 37.6%, 0%, 5.1%)
CIE-LABlab(70.25, 35.73, -38.45)
CIE-LCHlch(70.25, 52.49, 312.91°)
OKLaboklab(75.78% 0.0866 -0.1063)
OKLCHoklch(75.78% 0.137 309.2)
XYZxyz(51.4478, 41.1012, 89.2102)
Luminance0.4110 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA97F2 #BFF297
analogous
#9D97F2 #CA97F2 #F297ED
triadic
#CA97F2 #F2CA97 #97F2CA
tetradic
#CA97F2 #F29D97 #BFF297 #97EDF2
square
#CA97F2 #F29D97 #BFF297 #97EDF2
split-complementary
#CA97F2 #EDF297 #97F29D
monochromatic
#932AE4 #AE61EB #CA97F2 #E6CDF9 #F1E4FC

Accessibility & contrast

On white

2.28
#CA97F2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.22
#CA97F2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CA97F2
9.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA97F2#FFFFFF#000000##000000
##CA97F21.002.289.229.22
#FFFFFF2.281.0021.0021.00
#0000009.2221.001.001.00
##0000009.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#85A9F5
Deuteranopia (green-blind)
#90ADEF
Tritanopia (blue-blind)
#C5A4B9
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #ca97f2;
/* rgb */ color: rgb(202, 151, 242);
/* oklch */ color: oklch(75.8% 0.137 309.2);
Tailwind
colors: {
  custom: {
    50: '#dbb6f6',
    500: '#ca97f2',
    950: '#000000',
  },
}
SCSS
$custom: #ca97f2;
$custom-light: #dbb6f6;
$custom-dark: #000000;
JSON
{
  "hex": "#ca97f2",
  "rgb": {
    "r": 202,
    "g": 151,
    "b": 242
  },
  "hsl": {
    "h": 273.626,
    "s": 77.778,
    "l": 77.059
  },
  "oklch": {
    "l": 0.75782,
    "c": 0.13711,
    "h": 309.2
  },
  "luminance": 0.41101
}

Semantic roles & 50–950 ramp

primary
#CA97F2
secondary
#E4F3D8
accent
#DA0B66
background
#FDFBFF
surface
#FBF6FE
border
#D4D0D6
text
#151117
muted
#838085

Preview Lab

Preview with #CA97F2

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

Preview Lab → · Contrast checker → · Palette generator →

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