#CA7AF9#CA7AF9

#CA7AF9 is a light, vivid violet. Relative luminance 0.333; OKLCH L 71.5% C 0.192 H 311.5°. Best body text is #000000 at 7.66:1 contrast (WCAG AA passes).

Color values

HEX#CA7AF9
RGBrgb(202, 122, 249)
HSLhsl(278, 91%, 73%)
HSVhsv(278, 51%, 98%)
CMYKcmyk(18.9%, 51%, 0%, 2.4%)
CIE-LABlab(64.42, 52.69, -51.44)
CIE-LCHlch(64.42, 73.64, 315.69°)
OKLaboklab(71.52% 0.1274 -0.1438)
OKLCHoklch(71.52% 0.192 311.5)
XYZxyz(48.4125, 33.3162, 93.4845)
Luminance0.3332 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA7AF9 #A9F97A
analogous
#8A7AF9 #CA7AF9 #F97AE9
triadic
#CA7AF9 #F9CA7A #7AF9CA
tetradic
#CA7AF9 #F98A7A #A9F97A #7AE9F9
square
#CA7AF9 #F98A7A #A9F97A #7AE9F9
split-complementary
#CA7AF9 #E9F97A #7AF98A
monochromatic
#9A0BEE #B33FF6 #CA7AF9 #E1B5FC #F3E2FE

Accessibility & contrast

On white

2.74
#CA7AF9 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.66
#CA7AF9 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CA7AF9
7.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA7AF9#FFFFFF#000000##000000
##CA7AF91.002.747.667.66
#FFFFFF2.741.0021.0021.00
#0000007.6621.001.001.00
##0000007.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#5998FD
Deuteranopia (green-blind)
#729EF6
Tritanopia (blue-blind)
#C58FAE
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #ca7af9;
/* rgb */ color: rgb(202, 122, 249);
/* oklch */ color: oklch(71.5% 0.192 311.5);
Tailwind
colors: {
  custom: {
    50: '#dda3fc',
    500: '#ca7af9',
    950: '#000000',
  },
}
SCSS
$custom: #ca7af9;
$custom-light: #dda3fc;
$custom-dark: #000000;
JSON
{
  "hex": "#ca7af9",
  "rgb": {
    "r": 202,
    "g": 122,
    "b": 249
  },
  "hsl": {
    "h": 277.795,
    "s": 91.367,
    "l": 72.745
  },
  "oklch": {
    "l": 0.71523,
    "c": 0.19209,
    "h": 311.5
  },
  "luminance": 0.33315
}

Semantic roles & 50–950 ramp

primary
#CA7AF9
secondary
#E1F6D5
accent
#E60055
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#150F17
muted
#837F85

Preview Lab

Preview with #CA7AF9

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

Preview Lab → · Contrast checker → · Palette generator →

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