#CA7AF7#CA7AF7

#CA7AF7 is a light, vivid violet. Relative luminance 0.332; OKLCH L 71.4% C 0.190 H 312.1°. Best body text is #000000 at 7.64:1 contrast (WCAG AA passes).

Color values

HEX#CA7AF7
RGBrgb(202, 122, 247)
HSLhsl(278, 89%, 72%)
HSVhsv(278, 51%, 97%)
CMYKcmyk(18.2%, 50.6%, 0%, 3.1%)
CIE-LABlab(64.32, 52.26, -50.50)
CIE-LCHlch(64.32, 72.68, 315.98°)
OKLaboklab(71.42% 0.1272 -0.141)
OKLCHoklch(71.42% 0.19 312.1)
XYZxyz(48.1022, 33.1921, 91.8504)
Luminance0.3319 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA7AF7 #A7F77A
analogous
#8C7AF7 #CA7AF7 #F77AE5
triadic
#CA7AF7 #F7CA7A #7AF7CA
tetradic
#CA7AF7 #F78C7A #A7F77A #7AE5F7
square
#CA7AF7 #F78C7A #A7F77A #7AE5F7
split-complementary
#CA7AF7 #E5F77A #7AF78C
monochromatic
#9A0EE9 #B340F4 #CA7AF7 #E1B4FA #F3E2FD

Accessibility & contrast

On white

2.75
#CA7AF7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.64
#CA7AF7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CA7AF7
7.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA7AF7#FFFFFF#000000##000000
##CA7AF71.002.757.647.64
#FFFFFF2.751.0021.0021.00
#0000007.6421.001.001.00
##0000007.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#5B98FB
Deuteranopia (green-blind)
#739EF4
Tritanopia (blue-blind)
#C58EAD
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #ca7af7;
/* rgb */ color: rgb(202, 122, 247);
/* oklch */ color: oklch(71.4% 0.190 312.1);
Tailwind
colors: {
  custom: {
    50: '#dca3fa',
    500: '#ca7af7',
    950: '#000000',
  },
}
SCSS
$custom: #ca7af7;
$custom-light: #dca3fa;
$custom-dark: #000000;
JSON
{
  "hex": "#ca7af7",
  "rgb": {
    "r": 202,
    "g": 122,
    "b": 247
  },
  "hsl": {
    "h": 278.4,
    "s": 88.652,
    "l": 72.353
  },
  "oklch": {
    "l": 0.71417,
    "c": 0.18992,
    "h": 312.1
  },
  "luminance": 0.33191
}

Semantic roles & 50–950 ramp

primary
#CA7AF7
secondary
#E1F5D6
accent
#E50053
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#150F17
muted
#837F85

Preview Lab

Preview with #CA7AF7

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

Preview Lab → · Contrast checker → · Palette generator →

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