#CA97FA#CA97FA

#CA97FA is a light, vivid violet. Relative luminance 0.416; OKLCH L 76.2% C 0.147 H 306.9°. Best body text is #000000 at 9.32:1 contrast (WCAG AA passes).

Color values

HEX#CA97FA
RGBrgb(202, 151, 250)
HSLhsl(271, 91%, 79%)
HSVhsv(271, 40%, 98%)
CMYKcmyk(19.2%, 39.6%, 0%, 2%)
CIE-LABlab(70.59, 37.47, -42.27)
CIE-LCHlch(70.59, 56.49, 311.56°)
OKLaboklab(76.15% 0.0882 -0.1173)
OKLCHoklch(76.15% 0.147 306.9)
XYZxyz(52.6757, 41.5923, 95.6771)
Luminance0.4159 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA97FA #C7FA97
analogous
#9897FA #CA97FA #FA97F9
triadic
#CA97FA #FACA97 #97FACA
tetradic
#CA97FA #FA9897 #C7FA97 #97F9FA
square
#CA97FA #FA9897 #C7FA97 #97F9FA
split-complementary
#CA97FA #F9FA97 #97FA98
monochromatic
#8E22F4 #AC5DF7 #CA97FA #E8D1FD #F0E2FE

Accessibility & contrast

On white

2.25
#CA97FA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.32
#CA97FA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CA97FA
9.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA97FA#FFFFFF#000000##000000
##CA97FA1.002.259.329.32
#FFFFFF2.251.0021.0021.00
#0000009.3221.001.001.00
##0000009.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#81ABFE
Deuteranopia (green-blind)
#8DADF7
Tritanopia (blue-blind)
#C3A6BD
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #ca97fa;
/* rgb */ color: rgb(202, 151, 250);
/* oklch */ color: oklch(76.2% 0.147 306.9);
Tailwind
colors: {
  custom: {
    50: '#dbb6fc',
    500: '#ca97fa',
    950: '#000000',
  },
}
SCSS
$custom: #ca97fa;
$custom-light: #dbb6fc;
$custom-dark: #000000;
JSON
{
  "hex": "#ca97fa",
  "rgb": {
    "r": 202,
    "g": 151,
    "b": 250
  },
  "hsl": {
    "h": 270.909,
    "s": 90.826,
    "l": 78.627
  },
  "oklch": {
    "l": 0.76153,
    "c": 0.14677,
    "h": 306.9
  },
  "luminance": 0.41592
}

Semantic roles & 50–950 ramp

primary
#CA97FA
secondary
#E5F6D5
accent
#E6006F
background
#FDFBFF
surface
#FBF6FF
border
#D4D0D7
text
#151117
muted
#838085

Preview Lab

Preview with #CA97FA

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

Preview Lab → · Contrast checker → · Palette generator →

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