#CA7AFE#CA7AFE

#CA7AFE is a light, vivid violet. Relative luminance 0.336; OKLCH L 71.8% C 0.198 H 310.3°. Best body text is #000000 at 7.73:1 contrast (WCAG AA passes).

Color values

HEX#CA7AFE
RGBrgb(202, 122, 254)
HSLhsl(276, 99%, 74%)
HSVhsv(276, 52%, 100%)
CMYKcmyk(20.5%, 52%, 0%, 0.4%)
CIE-LABlab(64.67, 53.76, -53.78)
CIE-LCHlch(64.67, 76.04, 314.99°)
OKLaboklab(71.79% 0.1278 -0.1506)
OKLCHoklch(71.79% 0.198 310.3)
XYZxyz(49.2027, 33.6323, 97.6464)
Luminance0.3363 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA7AFE #AEFE7A
analogous
#887AFE #CA7AFE #FE7AF0
triadic
#CA7AFE #FECA7A #7AFECA
tetradic
#CA7AFE #FE887A #AEFE7A #7AF0FE
square
#CA7AFE #FE887A #AEFE7A #7AF0FE
split-complementary
#CA7AFE #F0FE7A #7AFE88
monochromatic
#9902FC #B23DFE #CA7AFE #E2B7FE #F3E1FF

Accessibility & contrast

On white

2.72
#CA7AFE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.73
#CA7AFE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CA7AFE
7.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA7AFE#FFFFFF#000000##000000
##CA7AFE1.002.727.737.73
#FFFFFF2.721.0021.0021.00
#0000007.7321.001.001.00
##0000007.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#5599FF
Deuteranopia (green-blind)
#6F9EFB
Tritanopia (blue-blind)
#C491B1
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #ca7afe;
/* rgb */ color: rgb(202, 122, 254);
/* oklch */ color: oklch(71.8% 0.198 310.3);
Tailwind
colors: {
  custom: {
    50: '#dda3ff',
    500: '#ca7afe',
    950: '#000000',
  },
}
SCSS
$custom: #ca7afe;
$custom-light: #dda3ff;
$custom-dark: #000000;
JSON
{
  "hex": "#ca7afe",
  "rgb": {
    "r": 202,
    "g": 122,
    "b": 254
  },
  "hsl": {
    "h": 276.364,
    "s": 98.507,
    "l": 73.725
  },
  "oklch": {
    "l": 0.71793,
    "c": 0.19752,
    "h": 310.3
  },
  "luminance": 0.33631
}

Semantic roles & 50–950 ramp

primary
#CA7AFE
secondary
#E2F7D4
accent
#E6005A
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#150F18
muted
#837F86

Preview Lab

Preview with #CA7AFE

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

Preview Lab → · Contrast checker → · Palette generator →

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