#CA97FC#CA97FC

#CA97FC is a light, vivid violet. Relative luminance 0.417; OKLCH L 76.2% C 0.149 H 306.4°. Best body text is #000000 at 9.34:1 contrast (WCAG AA passes).

Color values

HEX#CA97FC
RGBrgb(202, 151, 252)
HSLhsl(270, 94%, 79%)
HSVhsv(270, 40%, 99%)
CMYKcmyk(19.8%, 40.1%, 0%, 1.2%)
CIE-LABlab(70.68, 37.92, -43.22)
CIE-LCHlch(70.68, 57.50, 311.26°)
OKLaboklab(76.25% 0.0886 -0.1201)
OKLCHoklch(76.25% 0.149 306.4)
XYZxyz(52.9909, 41.7184, 97.3374)
Luminance0.4172 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA97FC #C9FC97
analogous
#9897FC #CA97FC #FC97FC
triadic
#CA97FC #FCCA97 #97FCCA
tetradic
#CA97FC #FC9897 #C9FC97 #97FCFC
square
#CA97FC #FC9897 #C9FC97 #97FCFC
split-complementary
#CA97FC #FCFC97 #97FC98
monochromatic
#8D20F9 #AC5CFA #CA97FC #E8D2FE #F0E1FE

Accessibility & contrast

On white

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

On black

9.34
#CA97FC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CA97FC
9.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA97FC#FFFFFF#000000##000000
##CA97FC1.002.259.349.34
#FFFFFF2.251.0021.0021.00
#0000009.3421.001.001.00
##0000009.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#80ABFF
Deuteranopia (green-blind)
#8CADF9
Tritanopia (blue-blind)
#C3A7BE
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #ca97fc;
/* rgb */ color: rgb(202, 151, 252);
/* oklch */ color: oklch(76.2% 0.149 306.4);
Tailwind
colors: {
  custom: {
    50: '#dcb6fd',
    500: '#ca97fc',
    950: '#000000',
  },
}
SCSS
$custom: #ca97fc;
$custom-light: #dcb6fd;
$custom-dark: #000000;
JSON
{
  "hex": "#ca97fc",
  "rgb": {
    "r": 202,
    "g": 151,
    "b": 252
  },
  "hsl": {
    "h": 270.297,
    "s": 94.393,
    "l": 79.02
  },
  "oklch": {
    "l": 0.76248,
    "c": 0.1492,
    "h": 306.4
  },
  "luminance": 0.41718
}

Semantic roles & 50–950 ramp

primary
#CA97FC
secondary
#E5F6D5
accent
#E60072
background
#FDFBFF
surface
#FBF6FF
border
#D4D0D7
text
#151118
muted
#838086

Preview Lab

Preview with #CA97FC

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

Preview Lab → · Contrast checker → · Palette generator →

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