#CA97FE#CA97FE

#CA97FE is a light, vivid violet. Relative luminance 0.418; OKLCH L 76.3% C 0.152 H 305.9°. Best body text is #000000 at 9.37:1 contrast (WCAG AA passes).

Color values

HEX#CA97FE
RGBrgb(202, 151, 254)
HSLhsl(270, 98%, 79%)
HSVhsv(270, 41%, 100%)
CMYKcmyk(20.5%, 40.6%, 0%, 0.4%)
CIE-LABlab(70.76, 38.36, -44.17)
CIE-LCHlch(70.76, 58.50, 310.97°)
OKLaboklab(76.34% 0.089 -0.1228)
OKLCHoklch(76.34% 0.152 305.9)
XYZxyz(53.3095, 41.8459, 99.0154)
Luminance0.4185 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA97FE #CBFE97
analogous
#9798FE #CA97FE #FE97FE
triadic
#CA97FE #FECA97 #97FECA
tetradic
#CA97FE #FE9798 #CBFE97 #97FEFE
square
#CA97FE #FE9798 #CBFE97 #97FEFE
split-complementary
#CA97FE #FEFE97 #98FE97
monochromatic
#8C1EFD #AB5AFD #CA97FE #E9D4FF #F0E1FF

Accessibility & contrast

On white

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

On black

9.37
#CA97FE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CA97FE
9.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA97FE#FFFFFF#000000##000000
##CA97FE1.002.249.379.37
#FFFFFF2.241.0021.0021.00
#0000009.3721.001.001.00
##0000009.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#7FABFF
Deuteranopia (green-blind)
#8BADFB
Tritanopia (blue-blind)
#C2A7BE
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #ca97fe;
/* rgb */ color: rgb(202, 151, 254);
/* oklch */ color: oklch(76.3% 0.152 305.9);
Tailwind
colors: {
  custom: {
    50: '#dcb6ff',
    500: '#ca97fe',
    950: '#000000',
  },
}
SCSS
$custom: #ca97fe;
$custom-light: #dcb6ff;
$custom-dark: #000000;
JSON
{
  "hex": "#ca97fe",
  "rgb": {
    "r": 202,
    "g": 151,
    "b": 254
  },
  "hsl": {
    "h": 269.709,
    "s": 98.095,
    "l": 79.412
  },
  "oklch": {
    "l": 0.76343,
    "c": 0.15163,
    "h": 305.9
  },
  "luminance": 0.41846
}

Semantic roles & 50–950 ramp

primary
#CA97FE
secondary
#E6F7D4
accent
#E60074
background
#FDFBFF
surface
#FBF6FF
border
#D4D0D7
text
#151118
muted
#838086

Preview Lab

Preview with #CA97FE

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

Preview Lab → · Contrast checker → · Palette generator →

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