#CA97EB#CA97EB

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

Color values

HEX#CA97EB
RGBrgb(202, 151, 235)
HSLhsl(276, 68%, 76%)
HSVhsv(276, 36%, 92%)
CMYKcmyk(14%, 35.7%, 0%, 7.8%)
CIE-LABlab(69.96, 34.24, -35.07)
CIE-LCHlch(69.96, 49.01, 314.32°)
OKLaboklab(75.47% 0.0851 -0.0966)
OKLCHoklch(75.47% 0.129 311.4)
XYZxyz(50.4165, 40.6887, 83.7789)
Luminance0.4069 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA97EB #B8EB97
analogous
#A097EB #CA97EB #EB97E2
triadic
#CA97EB #EBCA97 #97EBCA
tetradic
#CA97EB #EBA097 #B8EB97 #97E2EB
square
#CA97EB #EBA097 #B8EB97 #97E2EB
split-complementary
#CA97EB #E2EB97 #97EBA0
monochromatic
#9630D7 #B064E1 #CA97EB #E4CAF5 #F2E5FA

Accessibility & contrast

On white

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

On black

9.14
#CA97EB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CA97EB
9.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA97EB#FFFFFF#000000##000000
##CA97EB1.002.309.149.14
#FFFFFF2.301.0021.0021.00
#0000009.1421.001.001.00
##0000009.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#88A8EE
Deuteranopia (green-blind)
#93ACE9
Tritanopia (blue-blind)
#C7A3B6
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #ca97eb;
/* rgb */ color: rgb(202, 151, 235);
/* oklch */ color: oklch(75.5% 0.129 311.4);
Tailwind
colors: {
  custom: {
    50: '#dbb6f1',
    500: '#ca97eb',
    950: '#000000',
  },
}
SCSS
$custom: #ca97eb;
$custom-light: #dbb6f1;
$custom-dark: #000000;
JSON
{
  "hex": "#ca97eb",
  "rgb": {
    "r": 202,
    "g": 151,
    "b": 235
  },
  "hsl": {
    "h": 276.429,
    "s": 67.742,
    "l": 75.686
  },
  "oklch": {
    "l": 0.75468,
    "c": 0.12874,
    "h": 311.4
  },
  "luminance": 0.40688
}

Semantic roles & 50–950 ramp

primary
#CA97EB
secondary
#E3F2D9
accent
#D0165F
background
#FDFBFE
surface
#FBF6FD
border
#D4D0D5
text
#151117
muted
#838085

Preview Lab

Preview with #CA97EB

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

Preview Lab → · Contrast checker → · Palette generator →

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