#CA96F8#CA96F8

#CA96F8 is a light, vivid violet. Relative luminance 0.411; OKLCH L 75.9% C 0.146 H 307.7°. Best body text is #000000 at 9.23:1 contrast (WCAG AA passes).

Color values

HEX#CA96F8
RGBrgb(202, 150, 248)
HSLhsl(272, 88%, 78%)
HSVhsv(272, 40%, 97%)
CMYKcmyk(18.5%, 39.5%, 0%, 2.7%)
CIE-LABlab(70.28, 37.58, -41.67)
CIE-LCHlch(70.28, 56.11, 312.05°)
OKLaboklab(75.89% 0.0892 -0.1156)
OKLCHoklch(75.89% 0.146 307.7)
XYZxyz(52.2035, 41.1471, 93.9808)
Luminance0.4115 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA96F8 #C4F896
analogous
#9996F8 #CA96F8 #F896F5
triadic
#CA96F8 #F8CA96 #96F8CA
tetradic
#CA96F8 #F89996 #C4F896 #96F5F8
square
#CA96F8 #F89996 #C4F896 #96F5F8
split-complementary
#CA96F8 #F5F896 #96F899
monochromatic
#9023F0 #AD5DF4 #CA96F8 #E7CFFC #F1E2FD

Accessibility & contrast

On white

2.28
#CA96F8 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.23
#CA96F8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CA96F8
9.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA96F8#FFFFFF#000000##000000
##CA96F81.002.289.239.23
#FFFFFF2.281.0021.0021.00
#0000009.2321.001.001.00
##0000009.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#81AAFC
Deuteranopia (green-blind)
#8DACF5
Tritanopia (blue-blind)
#C4A5BB
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #ca96f8;
/* rgb */ color: rgb(202, 150, 248);
/* oklch */ color: oklch(75.9% 0.146 307.7);
Tailwind
colors: {
  custom: {
    50: '#dbb5fb',
    500: '#ca96f8',
    950: '#000000',
  },
}
SCSS
$custom: #ca96f8;
$custom-light: #dbb5fb;
$custom-dark: #000000;
JSON
{
  "hex": "#ca96f8",
  "rgb": {
    "r": 202,
    "g": 150,
    "b": 248
  },
  "hsl": {
    "h": 271.837,
    "s": 87.5,
    "l": 78.039
  },
  "oklch": {
    "l": 0.75891,
    "c": 0.146,
    "h": 307.7
  },
  "luminance": 0.41147
}

Semantic roles & 50–950 ramp

primary
#CA96F8
secondary
#E5F5D6
accent
#E4016C
background
#FDFBFF
surface
#FBF6FF
border
#D4D0D7
text
#151117
muted
#838085

Preview Lab

Preview with #CA96F8

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

Preview Lab → · Contrast checker → · Palette generator →

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