#CA9EF2#CA9EF2

#CA9EF2 is a light, vivid violet. Relative luminance 0.434; OKLCH L 77.0% C 0.125 H 307.7°. Best body text is #000000 at 9.68:1 contrast (WCAG AA passes).

Color values

HEX#CA9EF2
RGBrgb(202, 158, 242)
HSLhsl(271, 76%, 78%)
HSVhsv(271, 35%, 95%)
CMYKcmyk(16.5%, 34.7%, 0%, 5.1%)
CIE-LABlab(71.84, 31.91, -35.97)
CIE-LCHlch(71.84, 48.08, 311.57°)
OKLaboklab(76.99% 0.0767 -0.0992)
OKLCHoklch(76.99% 0.125 307.7)
XYZxyz(52.6080, 43.4215, 89.5969)
Luminance0.4342 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA9EF2 #C6F29E
analogous
#A09EF2 #CA9EF2 #F29EF0
triadic
#CA9EF2 #F2CA9E #9EF2CA
tetradic
#CA9EF2 #F2A09E #C6F29E #9EF0F2
square
#CA9EF2 #F2A09E #C6F29E #9EF0F2
split-complementary
#CA9EF2 #F0F29E #9EF2A0
monochromatic
#8F32E4 #AD68EB #CA9EF2 #E7D4F9 #F0E4FB

Accessibility & contrast

On white

2.17
#CA9EF2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.68
#CA9EF2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CA9EF2
9.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA9EF2#FFFFFF#000000##000000
##CA9EF21.002.179.689.68
#FFFFFF2.171.0021.0021.00
#0000009.6821.001.001.00
##0000009.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#8DAEF5
Deuteranopia (green-blind)
#97B1F0
Tritanopia (blue-blind)
#C5AABD
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #ca9ef2;
/* rgb */ color: rgb(202, 158, 242);
/* oklch */ color: oklch(77.0% 0.125 307.7);
Tailwind
colors: {
  custom: {
    50: '#dbbbf6',
    500: '#ca9ef2',
    950: '#000000',
  },
}
SCSS
$custom: #ca9ef2;
$custom-light: #dbbbf6;
$custom-dark: #000000;
JSON
{
  "hex": "#ca9ef2",
  "rgb": {
    "r": 202,
    "g": 158,
    "b": 242
  },
  "hsl": {
    "h": 271.429,
    "s": 76.364,
    "l": 78.431
  },
  "oklch": {
    "l": 0.76991,
    "c": 0.12541,
    "h": 307.7
  },
  "luminance": 0.43421
}

Semantic roles & 50–950 ramp

primary
#CA9EF2
secondary
#E5F3D8
accent
#D90D6E
background
#FDFBFF
surface
#FBF6FE
border
#D4D0D6
text
#151217
muted
#838185

Preview Lab

Preview with #CA9EF2

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

Preview Lab → · Contrast checker → · Palette generator →

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