#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 |
|---|---|
| RGB | rgb(202, 122, 254) |
| HSL | hsl(276, 99%, 74%) |
| HSV | hsv(276, 52%, 100%) |
| CMYK | cmyk(20.5%, 52%, 0%, 0.4%) |
| CIE-LAB | lab(64.67, 53.76, -53.78) |
| CIE-LCH | lch(64.67, 76.04, 314.99°) |
| OKLab | oklab(71.79% 0.1278 -0.1506) |
| OKLCH | oklch(71.79% 0.198 310.3) |
| XYZ | xyz(49.2027, 33.6323, 97.6464) |
| Luminance | 0.3363 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Purple
#BF77F6
ΔE00 2.11
Easter Purple
#C071FE
ΔE00 2.81
Liliac
#C48EFD
ΔE00 4.82
Light Urple
#B36FF6
ΔE00 4.89
Bright Lavender
#C760FF
ΔE00 5.36
Bright Lilac
#C95EFB
ΔE00 5.66
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 |
|---|---|---|---|---|
| ##CA7AFE | 1.00 | 2.72 | 7.73 | 7.73 |
| #FFFFFF | 2.72 | 1.00 | 21.00 | 21.00 |
| #000000 | 7.73 | 21.00 | 1.00 | 1.00 |
| ##000000 | 7.73 | 21.00 | 1.00 | 1.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