#CA9DF2#CA9DF2

#CA9DF2 is a light, vivid violet. Relative luminance 0.431; OKLCH L 76.8% C 0.127 H 307.9°. Best body text is #000000 at 9.62:1 contrast (WCAG AA passes).

Color values

HEX#CA9DF2
RGBrgb(202, 157, 242)
HSLhsl(272, 77%, 78%)
HSVhsv(272, 35%, 95%)
CMYKcmyk(16.5%, 35.1%, 0%, 5.1%)
CIE-LABlab(71.61, 32.45, -36.32)
CIE-LCHlch(71.61, 48.71, 311.78°)
OKLaboklab(76.82% 0.0781 -0.1003)
OKLCHoklch(76.82% 0.127 307.9)
XYZxyz(52.4381, 43.0818, 89.5403)
Luminance0.4308 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA9DF2 #C5F29D
analogous
#9F9DF2 #CA9DF2 #F29DEF
triadic
#CA9DF2 #F2CA9D #9DF2CA
tetradic
#CA9DF2 #F29F9D #C5F29D #9DEFF2
square
#CA9DF2 #F29F9D #C5F29D #9DEFF2
split-complementary
#CA9DF2 #EFF29D #9DF29F
monochromatic
#9031E4 #AD67EB #CA9DF2 #E7D3F9 #F0E4FB

Accessibility & contrast

On white

2.18
#CA9DF2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.62
#CA9DF2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CA9DF2
9.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA9DF2#FFFFFF#000000##000000
##CA9DF21.002.189.629.62
#FFFFFF2.181.0021.0021.00
#0000009.6221.001.001.00
##0000009.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#8CAEF5
Deuteranopia (green-blind)
#96B0F0
Tritanopia (blue-blind)
#C5A9BC
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #ca9df2;
/* rgb */ color: rgb(202, 157, 242);
/* oklch */ color: oklch(76.8% 0.127 307.9);
Tailwind
colors: {
  custom: {
    50: '#dbbaf6',
    500: '#ca9df2',
    950: '#000000',
  },
}
SCSS
$custom: #ca9df2;
$custom-light: #dbbaf6;
$custom-dark: #000000;
JSON
{
  "hex": "#ca9df2",
  "rgb": {
    "r": 202,
    "g": 157,
    "b": 242
  },
  "hsl": {
    "h": 271.765,
    "s": 76.577,
    "l": 78.235
  },
  "oklch": {
    "l": 0.76816,
    "c": 0.12708,
    "h": 307.9
  },
  "luminance": 0.43081
}

Semantic roles & 50–950 ramp

primary
#CA9DF2
secondary
#E5F3D8
accent
#D90D6D
background
#FDFBFF
surface
#FBF6FE
border
#D4D0D6
text
#151117
muted
#838085

Preview Lab

Preview with #CA9DF2

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

Preview Lab → · Contrast checker → · Palette generator →

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