#CA9DEF#CA9DEF

#CA9DEF is a light, vivid violet. Relative luminance 0.429; OKLCH L 76.7% C 0.123 H 308.8°. Best body text is #000000 at 9.58:1 contrast (WCAG AA passes).

Color values

HEX#CA9DEF
RGBrgb(202, 157, 239)
HSLhsl(273, 72%, 78%)
HSVhsv(273, 34%, 94%)
CMYKcmyk(15.5%, 34.3%, 0%, 6.3%)
CIE-LABlab(71.49, 31.81, -34.88)
CIE-LCHlch(71.49, 47.20, 312.36°)
OKLaboklab(76.68% 0.0774 -0.0961)
OKLCHoklch(76.68% 0.123 308.8)
XYZxyz(51.9912, 42.9030, 87.1868)
Luminance0.4290 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA9DEF #C2EF9D
analogous
#A19DEF #CA9DEF #EF9DEB
triadic
#CA9DEF #EFCA9D #9DEFCA
tetradic
#CA9DEF #EFA19D #C2EF9D #9DEBEF
square
#CA9DEF #EFA19D #C2EF9D #9DEBEF
split-complementary
#CA9DEF #EBEF9D #9DEFA1
monochromatic
#9134DE #AE68E6 #CA9DEF #E6D2F8 #F1E5FB

Accessibility & contrast

On white

2.19
#CA9DEF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.58
#CA9DEF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CA9DEF
9.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA9DEF#FFFFFF#000000##000000
##CA9DEF1.002.199.589.58
#FFFFFF2.191.0021.0021.00
#0000009.5821.001.001.00
##0000009.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#8DADF2
Deuteranopia (green-blind)
#97B0ED
Tritanopia (blue-blind)
#C5A9BB
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #ca9def;
/* rgb */ color: rgb(202, 157, 239);
/* oklch */ color: oklch(76.7% 0.123 308.8);
Tailwind
colors: {
  custom: {
    50: '#dbbaf4',
    500: '#ca9def',
    950: '#000000',
  },
}
SCSS
$custom: #ca9def;
$custom-light: #dbbaf4;
$custom-dark: #000000;
JSON
{
  "hex": "#ca9def",
  "rgb": {
    "r": 202,
    "g": 157,
    "b": 239
  },
  "hsl": {
    "h": 272.927,
    "s": 71.93,
    "l": 77.647
  },
  "oklch": {
    "l": 0.76684,
    "c": 0.12341,
    "h": 308.8
  },
  "luminance": 0.42902
}

Semantic roles & 50–950 ramp

primary
#CA9DEF
secondary
#E4F2D9
accent
#D41269
background
#FDFBFE
surface
#FBF6FD
border
#D4D0D5
text
#151117
muted
#838085

Preview Lab

Preview with #CA9DEF

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

Preview Lab → · Contrast checker → · Palette generator →

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