#AF6DF2#AF6DF2
#AF6DF2 is a light, vivid violet. Relative luminance 0.265; OKLCH L 66.4% C 0.196 H 304.5°. Best body text is #000000 at 6.29:1 contrast (WCAG AA passes).
Color values
| HEX | #AF6DF2 |
|---|---|
| RGB | rgb(175, 109, 242) |
| HSL | hsl(270, 84%, 69%) |
| HSV | hsv(270, 55%, 95%) |
| CMYK | cmyk(27.7%, 55%, 0%, 5.1%) |
| CIE-LAB | lab(58.47, 51.08, -57.21) |
| CIE-LCH | lch(58.47, 76.70, 311.76°) |
| OKLab | oklab(66.36% 0.1109 -0.1613) |
| OKLCH | oklch(66.36% 0.196 304.5) |
| XYZ | xyz(39.1714, 26.4622, 87.0313) |
| Luminance | 0.2646 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Urple
#B36FF6
ΔE00 0.98
Easter Purple
#C071FE
ΔE00 3.33
Light Purple
#BF77F6
ΔE00 3.85
Bright Lavender
#C760FF
ΔE00 4.45
Bright Lilac
#C95EFB
ΔE00 4.85
Lighter Purple
#A55AF4
ΔE00 4.95
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AF6DF2 #B0F26D
analogous
#6D6EF2 #AF6DF2 #F16DF2
triadic
#AF6DF2 #F2AF6D #6DF2AF
tetradic
#AF6DF2 #F26D6E #B0F26D #6DF2F1
square
#AF6DF2 #F26D6E #B0F26D #6DF2F1
split-complementary
#AF6DF2 #F2F16D #6EF26D
monochromatic
#7213D2 #9035ED #AF6DF2 #CEA5F7 #EDDDFC
Accessibility & contrast
On white
3.34
#AF6DF2 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.29
#AF6DF2 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #AF6DF2
6.29:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AF6DF2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AF6DF2 | 1.00 | 3.34 | 6.29 | 6.29 |
| #FFFFFF | 3.34 | 1.00 | 21.00 | 21.00 |
| #000000 | 6.29 | 21.00 | 1.00 | 1.00 |
| ##000000 | 6.29 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3B8BF6
Deuteranopia (green-blind)
#538DEF
Tritanopia (blue-blind)
#A386A5
Achromatopsia (no color)
#8D8D8D
Design tokens & code
CSS
--color: #af6df2; /* rgb */ color: rgb(175, 109, 242); /* oklch */ color: oklch(66.4% 0.196 304.5);
Tailwind
colors: {
custom: {
50: '#ca99f7',
500: '#af6df2',
950: '#000000',
},
}SCSS
$custom: #af6df2; $custom-light: #ca99f7; $custom-dark: #000000;
JSON
{
"hex": "#af6df2",
"rgb": {
"r": 175,
"g": 109,
"b": 242
},
"hsl": {
"h": 269.774,
"s": 83.648,
"l": 68.824
},
"oklch": {
"l": 0.66355,
"c": 0.19574,
"h": 304.5
},
"luminance": 0.26462
}Semantic roles & 50–950 ramp
primary
#AF6DF2
secondary
#DEF1CA
accent
#E00574
background
#FCF9FF
surface
#F9F2FF
border
#D2CCD7
text
#140E17
muted
#827E85