#AF9EF2#AF9EF2
#AF9EF2 is a light, vivid violet. Relative luminance 0.400; OKLCH L 74.6% C 0.120 H 292.5°. Best body text is #000000 at 9.00:1 contrast (WCAG AA passes).
Color values
| HEX | #AF9EF2 |
|---|---|
| RGB | rgb(175, 158, 242) |
| HSL | hsl(252, 76%, 78%) |
| HSV | hsv(252, 35%, 95%) |
| CMYK | cmyk(27.7%, 34.7%, 0%, 5.1%) |
| CIE-LAB | lab(69.45, 24.03, -39.86) |
| CIE-LCH | lch(69.45, 46.54, 301.08°) |
| OKLab | oklab(74.6% 0.046 -0.1109) |
| OKLCH | oklch(74.6% 0.12 292.5) |
| XYZ | xyz(45.9291, 39.9778, 89.2839) |
| Luminance | 0.3998 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Lavender
#B39DDB
ΔE00 5.29
Pastel Purple
#CAA0FF
ΔE00 5.49
Lavender (survey)
#C79FEF
ΔE00 5.86
Baby Purple
#CA9BF7
ΔE00 6.18
Lilac (survey)
#CEA2FD
ΔE00 6.25
Pale Violet
#CEAEFA
ΔE00 6.76
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AF9EF2 #E1F29E
analogous
#9EB7F2 #AF9EF2 #D99EF2
triadic
#AF9EF2 #F2AF9E #9EF2AF
tetradic
#AF9EF2 #F29EB7 #E1F29E #9EF2D9
square
#AF9EF2 #F29EB7 #E1F29E #9EF2D9
split-complementary
#AF9EF2 #F2D99E #B7F29E
monochromatic
#5632E4 #8268EB #AF9EF2 #DCD4F9 #E9E4FB
Accessibility & contrast
On white
2.33
#AF9EF2 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.00
#AF9EF2 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AF9EF2
9.00:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AF9EF2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AF9EF2 | 1.00 | 2.33 | 9.00 | 9.00 |
| #FFFFFF | 2.33 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.00 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.00 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#87ABF5
Deuteranopia (green-blind)
#89A8F0
Tritanopia (blue-blind)
#A0ADBD
Achromatopsia (no color)
#AAAAAA
Design tokens & code
CSS
--color: #af9ef2; /* rgb */ color: rgb(175, 158, 242); /* oklch */ color: oklch(74.6% 0.120 292.5);
Tailwind
colors: {
custom: {
50: '#c8baf6',
500: '#af9ef2',
950: '#000000',
},
}SCSS
$custom: #af9ef2; $custom-light: #c8baf6; $custom-dark: #000000;
JSON
{
"hex": "#af9ef2",
"rgb": {
"r": 175,
"g": 158,
"b": 242
},
"hsl": {
"h": 252.143,
"s": 76.364,
"l": 78.431
},
"oklch": {
"l": 0.74603,
"c": 0.12009,
"h": 292.5
},
"luminance": 0.39978
}Semantic roles & 50–950 ramp
primary
#AF9EF2
secondary
#EEF3D8
accent
#D90DAF
background
#FCFBFF
surface
#F8F6FE
border
#D1D0D6
text
#131117
muted
#828085