#CA97FF#CA97FF

#CA97FF is a light, vivid violet. Relative luminance 0.419; OKLCH L 76.4% C 0.153 H 305.7°. Best body text is #000000 at 9.38:1 contrast (WCAG AA passes).

Color values

HEX#CA97FF
RGBrgb(202, 151, 255)
HSLhsl(269, 100%, 80%)
HSVhsv(269, 41%, 100%)
CMYKcmyk(20.8%, 40.8%, 0%, 0%)
CIE-LABlab(70.81, 38.58, -44.65)
CIE-LCHlch(70.81, 59.01, 310.83°)
OKLaboklab(76.39% 0.0891 -0.1242)
OKLCHoklch(76.39% 0.153 305.7)
XYZxyz(53.4701, 41.9101, 99.8609)
Luminance0.4191 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA97FF #CCFF97
analogous
#9798FF #CA97FF #FE97FF
triadic
#CA97FF #FFCA97 #97FFCA
tetradic
#CA97FF #FF9798 #CCFF97 #97FFFE
square
#CA97FF #FF9798 #CCFF97 #97FFFE
split-complementary
#CA97FF #FFFE97 #98FF97
monochromatic
#8C1DFF #AB5AFF #CA97FF #E9D4FF #EFE0FF

Accessibility & contrast

On white

2.24
#CA97FF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.38
#CA97FF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CA97FF
9.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA97FF#FFFFFF#000000##000000
##CA97FF1.002.249.389.38
#FFFFFF2.241.0021.0021.00
#0000009.3821.001.001.00
##0000009.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#7FACFF
Deuteranopia (green-blind)
#8AAEFC
Tritanopia (blue-blind)
#C2A8BF
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #ca97ff;
/* rgb */ color: rgb(202, 151, 255);
/* oklch */ color: oklch(76.4% 0.153 305.7);
Tailwind
colors: {
  custom: {
    50: '#dcb6ff',
    500: '#ca97ff',
    950: '#000000',
  },
}
SCSS
$custom: #ca97ff;
$custom-light: #dcb6ff;
$custom-dark: #000000;
JSON
{
  "hex": "#ca97ff",
  "rgb": {
    "r": 202,
    "g": 151,
    "b": 255
  },
  "hsl": {
    "h": 269.423,
    "s": 100,
    "l": 79.608
  },
  "oklch": {
    "l": 0.76391,
    "c": 0.15283,
    "h": 305.7
  },
  "luminance": 0.4191
}

Semantic roles & 50–950 ramp

primary
#CA97FF
secondary
#E6F7D4
accent
#E60075
background
#FDFBFF
surface
#FBF6FF
border
#D4D0D7
text
#151118
muted
#838086

Preview Lab

Preview with #CA97FF

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

Preview Lab → · Contrast checker → · Palette generator →

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