#CA96F2#CA96F2

#CA96F2 is a light, vivid violet. Relative luminance 0.408; OKLCH L 75.6% C 0.139 H 309.4°. Best body text is #000000 at 9.16:1 contrast (WCAG AA passes).

Color values

HEX#CA96F2
RGBrgb(202, 150, 242)
HSLhsl(274, 78%, 77%)
HSVhsv(274, 38%, 95%)
CMYKcmyk(16.5%, 38%, 0%, 5.1%)
CIE-LABlab(70.02, 36.28, -38.80)
CIE-LCHlch(70.02, 53.11, 313.08°)
OKLaboklab(75.61% 0.088 -0.1073)
OKLCHoklch(75.61% 0.139 309.4)
XYZxyz(51.2875, 40.7807, 89.1568)
Luminance0.4078 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA96F2 #BEF296
analogous
#9C96F2 #CA96F2 #F296EC
triadic
#CA96F2 #F2CA96 #96F2CA
tetradic
#CA96F2 #F29C96 #BEF296 #96ECF2
square
#CA96F2 #F29C96 #BEF296 #96ECF2
split-complementary
#CA96F2 #ECF296 #96F29C
monochromatic
#9329E5 #AF60EB #CA96F2 #E5CCF9 #F1E4FC

Accessibility & contrast

On white

2.29
#CA96F2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.16
#CA96F2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CA96F2
9.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA96F2#FFFFFF#000000##000000
##CA96F21.002.299.169.16
#FFFFFF2.291.0021.0021.00
#0000009.1621.001.001.00
##0000009.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#84A9F5
Deuteranopia (green-blind)
#90ACEF
Tritanopia (blue-blind)
#C5A3B9
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #ca96f2;
/* rgb */ color: rgb(202, 150, 242);
/* oklch */ color: oklch(75.6% 0.139 309.4);
Tailwind
colors: {
  custom: {
    50: '#dbb5f6',
    500: '#ca96f2',
    950: '#000000',
  },
}
SCSS
$custom: #ca96f2;
$custom-light: #dbb5f6;
$custom-dark: #000000;
JSON
{
  "hex": "#ca96f2",
  "rgb": {
    "r": 202,
    "g": 150,
    "b": 242
  },
  "hsl": {
    "h": 273.913,
    "s": 77.966,
    "l": 76.863
  },
  "oklch": {
    "l": 0.75612,
    "c": 0.13878,
    "h": 309.4
  },
  "luminance": 0.4078
}

Semantic roles & 50–950 ramp

primary
#CA96F2
secondary
#E4F3D8
accent
#DA0B65
background
#FDFBFF
surface
#FBF6FE
border
#D4D0D6
text
#151117
muted
#838085

Preview Lab

Preview with #CA96F2

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

Preview Lab → · Contrast checker → · Palette generator →

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