#CA7EF2#CA7EF2
#CA7EF2 is a light, vivid violet. Relative luminance 0.339; OKLCH L 71.8% C 0.178 H 312.9°. Best body text is #000000 at 7.78:1 contrast (WCAG AA passes).
Color values
| HEX | #CA7EF2 |
|---|---|
| RGB | rgb(202, 126, 242) |
| HSL | hsl(279, 82%, 72%) |
| HSV | hsv(279, 48%, 95%) |
| CMYK | cmyk(16.5%, 47.9%, 0%, 5.1%) |
| CIE-LAB | lab(64.88, 49.14, -46.86) |
| CIE-LCH | lch(64.88, 67.90, 316.36°) |
| OKLab | oklab(71.75% 0.1213 -0.1305) |
| OKLCH | oklch(71.75% 0.178 312.9) |
| XYZ | xyz(47.8423, 33.8902, 88.0084) |
| Luminance | 0.3389 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Purple
#BF77F6
ΔE00 3.01
Easter Purple
#C071FE
ΔE00 4.41
Liliac
#C48EFD
ΔE00 4.45
Light Urple
#B36FF6
ΔE00 5.98
Bright Lavender
#C760FF
ΔE00 6.69
Bright Lilac
#C95EFB
ΔE00 6.79
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#CA7EF2 #A6F27E
analogous
#907EF2 #CA7EF2 #F27EE0
triadic
#CA7EF2 #F2CA7E #7EF2CA
tetradic
#CA7EF2 #F2907E #A6F27E #7EE0F2
square
#CA7EF2 #F2907E #A6F27E #7EE0F2
split-complementary
#CA7EF2 #E0F27E #7EF290
monochromatic
#9A16DF #B346EC #CA7EF2 #E1B6F8 #F4E3FC
Accessibility & contrast
On white
2.70
#CA7EF2 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
7.78
#CA7EF2 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #CA7EF2
7.78:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##CA7EF2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##CA7EF2 | 1.00 | 2.70 | 7.78 | 7.78 |
| #FFFFFF | 2.70 | 1.00 | 21.00 | 21.00 |
| #000000 | 7.78 | 21.00 | 1.00 | 1.00 |
| ##000000 | 7.78 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#6499F6
Deuteranopia (green-blind)
#7A9FEF
Tritanopia (blue-blind)
#C690AD
Achromatopsia (no color)
#9D9D9D
Design tokens & code
CSS
--color: #ca7ef2; /* rgb */ color: rgb(202, 126, 242); /* oklch */ color: oklch(71.8% 0.178 312.9);
Tailwind
colors: {
custom: {
50: '#dca5f7',
500: '#ca7ef2',
950: '#000000',
},
}SCSS
$custom: #ca7ef2; $custom-light: #dca5f7; $custom-dark: #000000;
JSON
{
"hex": "#ca7ef2",
"rgb": {
"r": 202,
"g": 126,
"b": 242
},
"hsl": {
"h": 279.31,
"s": 81.69,
"l": 72.157
},
"oklch": {
"l": 0.71752,
"c": 0.17816,
"h": 312.9
},
"luminance": 0.33889
}Semantic roles & 50–950 ramp
primary
#CA7EF2
secondary
#E1F4D7
accent
#DE0751
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#150F17
muted
#837F85