#AF7ECE#AF7ECE
#AF7ECE is a light, vivid violet. Relative luminance 0.285; OKLCH L 67.2% C 0.126 H 311.5°. Best body text is #000000 at 6.70:1 contrast (WCAG AA passes).
Color values
| HEX | #AF7ECE |
|---|---|
| RGB | rgb(175, 126, 206) |
| HSL | hsl(277, 45%, 65%) |
| HSV | hsv(277, 39%, 81%) |
| CMYK | cmyk(15%, 38.8%, 0%, 19.2%) |
| CIE-LAB | lab(60.33, 33.68, -34.14) |
| CIE-LCH | lch(60.33, 47.96, 314.61°) |
| OKLab | oklab(67.16% 0.0833 -0.0943) |
| OKLCH | oklch(67.16% 0.126 311.5) |
| XYZ | xyz(36.2787, 28.4925, 61.9690) |
| Luminance | 0.2849 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Wisteria
#A87DC2
ΔE00 2.41
Pale Purple
#B790D4
ΔE00 5.17
Soft Purple
#A66FB5
ΔE00 5.79
Orchid (survey)
#C875C4
ΔE00 6.66
Deep Lilac
#966EBD
ΔE00 6.72
Light Purple
#BF77F6
ΔE00 7.12
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AF7ECE #9DCE7E
analogous
#877ECE #AF7ECE #CE7EC5
triadic
#AF7ECE #CEAF7E #7ECEAF
tetradic
#AF7ECE #CE877E #9DCE7E #7EC5CE
square
#AF7ECE #CE877E #9DCE7E #7EC5CE
split-complementary
#AF7ECE #C5CE7E #7ECE87
monochromatic
#733A98 #9352BD #AF7ECE #CBAADF #E6D7F0
Accessibility & contrast
On white
3.14
#AF7ECE on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.70
#AF7ECE on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #AF7ECE
6.70:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AF7ECE | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AF7ECE | 1.00 | 3.14 | 6.70 | 6.70 |
| #FFFFFF | 3.14 | 1.00 | 21.00 | 21.00 |
| #000000 | 6.70 | 21.00 | 1.00 | 1.00 |
| ##000000 | 6.70 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#6F8FD1
Deuteranopia (green-blind)
#7A93CC
Tritanopia (blue-blind)
#AC899C
Achromatopsia (no color)
#919191
Design tokens & code
CSS
--color: #af7ece; /* rgb */ color: rgb(175, 126, 206); /* oklch */ color: oklch(67.2% 0.126 311.5);
Tailwind
colors: {
custom: {
50: '#c8a4dd',
500: '#af7ece',
950: '#000000',
},
}SCSS
$custom: #af7ece; $custom-light: #c8a4dd; $custom-dark: #000000;
JSON
{
"hex": "#af7ece",
"rgb": {
"r": 175,
"g": 126,
"b": 206
},
"hsl": {
"h": 276.75,
"s": 44.944,
"l": 65.098
},
"oklch": {
"l": 0.67157,
"c": 0.12587,
"h": 311.5
},
"luminance": 0.28492
}Semantic roles & 50–950 ramp
primary
#AF7ECE
secondary
#D1E1C6
accent
#B82D63
background
#FCFAFD
surface
#F8F4FB
border
#D1CED4
text
#130F15
muted
#827F83