#CA96FC#CA96FC

#CA96FC is a light, vivid violet. Relative luminance 0.414; OKLCH L 76.1% C 0.151 H 306.6°. Best body text is #000000 at 9.28:1 contrast (WCAG AA passes).

Color values

HEX#CA96FC
RGBrgb(202, 150, 252)
HSLhsl(271, 94%, 79%)
HSVhsv(271, 40%, 99%)
CMYKcmyk(19.8%, 40.5%, 0%, 1.2%)
CIE-LABlab(70.45, 38.46, -43.57)
CIE-LCHlch(70.45, 58.12, 311.43°)
OKLaboklab(76.08% 0.09 -0.1211)
OKLCHoklch(76.08% 0.151 306.6)
XYZxyz(52.8307, 41.3979, 97.2840)
Luminance0.4140 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA96FC #C8FC96
analogous
#9796FC #CA96FC #FC96FB
triadic
#CA96FC #FCCA96 #96FCCA
tetradic
#CA96FC #FC9796 #C8FC96 #96FBFC
square
#CA96FC #FC9796 #C8FC96 #96FBFC
split-complementary
#CA96FC #FBFC96 #96FC97
monochromatic
#8E1FF9 #AC5BFA #CA96FC #E8D2FE #F0E1FE

Accessibility & contrast

On white

2.26
#CA96FC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.28
#CA96FC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CA96FC
9.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA96FC#FFFFFF#000000##000000
##CA96FC1.002.269.289.28
#FFFFFF2.261.0021.0021.00
#0000009.2821.001.001.00
##0000009.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#7FAAFF
Deuteranopia (green-blind)
#8BADF9
Tritanopia (blue-blind)
#C3A6BD
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #ca96fc;
/* rgb */ color: rgb(202, 150, 252);
/* oklch */ color: oklch(76.1% 0.151 306.6);
Tailwind
colors: {
  custom: {
    50: '#dcb5fd',
    500: '#ca96fc',
    950: '#000000',
  },
}
SCSS
$custom: #ca96fc;
$custom-light: #dcb5fd;
$custom-dark: #000000;
JSON
{
  "hex": "#ca96fc",
  "rgb": {
    "r": 202,
    "g": 150,
    "b": 252
  },
  "hsl": {
    "h": 270.588,
    "s": 94.444,
    "l": 78.824
  },
  "oklch": {
    "l": 0.7608,
    "c": 0.15083,
    "h": 306.6
  },
  "luminance": 0.41398
}

Semantic roles & 50–950 ramp

primary
#CA96FC
secondary
#E5F6D5
accent
#E60071
background
#FDFBFF
surface
#FBF6FF
border
#D4D0D7
text
#151118
muted
#838086

Preview Lab

Preview with #CA96FC

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

Preview Lab → · Contrast checker → · Palette generator →

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