#CA96FB#CA96FB

#CA96FB is a light, vivid violet. Relative luminance 0.413; OKLCH L 76.0% C 0.150 H 306.9°. Best body text is #000000 at 9.27:1 contrast (WCAG AA passes).

Color values

HEX#CA96FB
RGBrgb(202, 150, 251)
HSLhsl(271, 93%, 79%)
HSVhsv(271, 40%, 98%)
CMYKcmyk(19.5%, 40.2%, 0%, 1.6%)
CIE-LABlab(70.41, 38.24, -43.10)
CIE-LCHlch(70.41, 57.62, 311.58°)
OKLaboklab(76.03% 0.0898 -0.1197)
OKLCHoklch(76.03% 0.15 306.9)
XYZxyz(52.6726, 41.3347, 96.4516)
Luminance0.4133 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA96FB #C7FB96
analogous
#9796FB #CA96FB #FB96FA
triadic
#CA96FB #FBCA96 #96FBCA
tetradic
#CA96FB #FB9796 #C7FB96 #96FAFB
square
#CA96FB #FB9796 #C7FB96 #96FAFB
split-complementary
#CA96FB #FAFB96 #96FB97
monochromatic
#8E20F7 #AC5BF9 #CA96FB #E8D1FD #F0E2FE

Accessibility & contrast

On white

2.27
#CA96FB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.27
#CA96FB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CA96FB
9.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA96FB#FFFFFF#000000##000000
##CA96FB1.002.279.279.27
#FFFFFF2.271.0021.0021.00
#0000009.2721.001.001.00
##0000009.2721.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #ca96fb;
/* rgb */ color: rgb(202, 150, 251);
/* oklch */ color: oklch(76.0% 0.150 306.9);
Tailwind
colors: {
  custom: {
    50: '#dcb5fd',
    500: '#ca96fb',
    950: '#000000',
  },
}
SCSS
$custom: #ca96fb;
$custom-light: #dcb5fd;
$custom-dark: #000000;
JSON
{
  "hex": "#ca96fb",
  "rgb": {
    "r": 202,
    "g": 150,
    "b": 251
  },
  "hsl": {
    "h": 270.891,
    "s": 92.661,
    "l": 78.627
  },
  "oklch": {
    "l": 0.76032,
    "c": 0.14962,
    "h": 306.9
  },
  "luminance": 0.41334
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CA96FB

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

Preview Lab → · Contrast checker → · Palette generator →

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