#CA7AFF#CA7AFF

#CA7AFF is a light, vivid violet. Relative luminance 0.337; OKLCH L 71.8% C 0.199 H 310.1°. Best body text is #000000 at 7.74:1 contrast (WCAG AA passes).

Color values

HEX#CA7AFF
RGBrgb(202, 122, 255)
HSLhsl(276, 100%, 74%)
HSVhsv(276, 52%, 100%)
CMYKcmyk(20.8%, 52.2%, 0%, 0%)
CIE-LABlab(64.72, 53.97, -54.25)
CIE-LCHlch(64.72, 76.52, 314.85°)
OKLaboklab(71.85% 0.1279 -0.1519)
OKLCHoklch(71.85% 0.199 310.1)
XYZxyz(49.3633, 33.6965, 98.4920)
Luminance0.3370 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA7AFF #AFFF7A
analogous
#887AFF #CA7AFF #FF7AF2
triadic
#CA7AFF #FFCA7A #7AFFCA
tetradic
#CA7AFF #FF887A #AFFF7A #7AF2FF
square
#CA7AFF #FF887A #AFFF7A #7AF2FF
split-complementary
#CA7AFF #F2FF7A #7AFF88
monochromatic
#9900FF #B23DFF #CA7AFF #E2B7FF #F3E0FF

Accessibility & contrast

On white

2.71
#CA7AFF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.74
#CA7AFF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CA7AFF
7.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA7AFF#FFFFFF#000000##000000
##CA7AFF1.002.717.747.74
#FFFFFF2.711.0021.0021.00
#0000007.7421.001.001.00
##0000007.7421.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #ca7aff;
/* rgb */ color: rgb(202, 122, 255);
/* oklch */ color: oklch(71.8% 0.199 310.1);
Tailwind
colors: {
  custom: {
    50: '#dda3ff',
    500: '#ca7aff',
    950: '#000000',
  },
}
SCSS
$custom: #ca7aff;
$custom-light: #dda3ff;
$custom-dark: #000000;
JSON
{
  "hex": "#ca7aff",
  "rgb": {
    "r": 202,
    "g": 122,
    "b": 255
  },
  "hsl": {
    "h": 276.09,
    "s": 100,
    "l": 73.922
  },
  "oklch": {
    "l": 0.71847,
    "c": 0.19861,
    "h": 310.1
  },
  "luminance": 0.33696
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CA7AFF

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

Preview Lab → · Contrast checker → · Palette generator →

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