#CA7AFD#CA7AFD

#CA7AFD is a light, vivid violet. Relative luminance 0.336; OKLCH L 71.7% C 0.196 H 310.6°. Best body text is #000000 at 7.71:1 contrast (WCAG AA passes).

Color values

HEX#CA7AFD
RGBrgb(202, 122, 253)
HSLhsl(277, 97%, 74%)
HSVhsv(277, 52%, 99%)
CMYKcmyk(20.2%, 51.8%, 0%, 0.8%)
CIE-LABlab(64.62, 53.54, -53.32)
CIE-LCHlch(64.62, 75.56, 315.12°)
OKLaboklab(71.74% 0.1277 -0.1492)
OKLCHoklch(71.74% 0.196 310.6)
XYZxyz(49.0430, 33.5684, 96.8053)
Luminance0.3357 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA7AFD #ADFD7A
analogous
#887AFD #CA7AFD #FD7AEF
triadic
#CA7AFD #FDCA7A #7AFDCA
tetradic
#CA7AFD #FD887A #ADFD7A #7AEFFD
square
#CA7AFD #FD887A #ADFD7A #7AEFFD
split-complementary
#CA7AFD #EFFD7A #7AFD88
monochromatic
#9904F9 #B23EFC #CA7AFD #E2B6FE #F3E1FF

Accessibility & contrast

On white

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

On black

7.71
#CA7AFD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CA7AFD
7.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA7AFD#FFFFFF#000000##000000
##CA7AFD1.002.727.717.71
#FFFFFF2.721.0021.0021.00
#0000007.7121.001.001.00
##0000007.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#5699FF
Deuteranopia (green-blind)
#709EFA
Tritanopia (blue-blind)
#C490B0
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #ca7afd;
/* rgb */ color: rgb(202, 122, 253);
/* oklch */ color: oklch(71.7% 0.196 310.6);
Tailwind
colors: {
  custom: {
    50: '#dda3fe',
    500: '#ca7afd',
    950: '#000000',
  },
}
SCSS
$custom: #ca7afd;
$custom-light: #dda3fe;
$custom-dark: #000000;
JSON
{
  "hex": "#ca7afd",
  "rgb": {
    "r": 202,
    "g": 122,
    "b": 253
  },
  "hsl": {
    "h": 276.641,
    "s": 97.037,
    "l": 73.529
  },
  "oklch": {
    "l": 0.71738,
    "c": 0.19643,
    "h": 310.6
  },
  "luminance": 0.33567
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CA7AFD

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

Preview Lab → · Contrast checker → · Palette generator →

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