#9E7EF2#9E7EF2
#9E7EF2 is a light, vivid violet. Relative luminance 0.286; OKLCH L 67.4% C 0.168 H 294.2°. Best body text is #000000 at 6.72:1 contrast (WCAG AA passes).
Color values
| HEX | #9E7EF2 |
|---|---|
| RGB | rgb(158, 126, 242) |
| HSL | hsl(257, 82%, 72%) |
| HSV | hsv(257, 48%, 95%) |
| CMYK | cmyk(34.7%, 47.9%, 0%, 5.1%) |
| CIE-LAB | lab(60.43, 37.56, -54.19) |
| CIE-LCH | lch(60.43, 65.94, 304.73°) |
| OKLab | oklab(67.41% 0.0686 -0.1529) |
| OKLCH | oklch(67.41% 0.168 294.2) |
| XYZ | xyz(37.5843, 28.6009, 87.5275) |
| Luminance | 0.2860 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Periwinkle (survey)
#8E82FE
ΔE00 4.24
Mediumpurple
#9370DB
ΔE00 5.23
Lavender Blue
#8B88F8
ΔE00 5.58
Light Urple
#B36FF6
ΔE00 5.62
Perrywinkle
#8F8CE7
ΔE00 6.05
Light Purple
#BF77F6
ΔE00 6.63
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9E7EF2 #D2F27E
analogous
#7E98F2 #9E7EF2 #D87EF2
triadic
#9E7EF2 #F29E7E #7EF29E
tetradic
#9E7EF2 #F27E98 #D2F27E #7EF2D8
square
#9E7EF2 #F27E98 #D2F27E #7EF2D8
split-complementary
#9E7EF2 #F2D87E #98F27E
monochromatic
#4E16DF #7446EC #9E7EF2 #C8B6F8 #EAE3FC
Accessibility & contrast
On white
3.12
#9E7EF2 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.72
#9E7EF2 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #9E7EF2
6.72:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9E7EF2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##9E7EF2 | 1.00 | 3.12 | 6.72 | 6.72 |
| #FFFFFF | 3.12 | 1.00 | 21.00 | 21.00 |
| #000000 | 6.72 | 21.00 | 1.00 | 1.00 |
| ##000000 | 6.72 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#5593F6
Deuteranopia (green-blind)
#5A90EF
Tritanopia (blue-blind)
#8A95AD
Achromatopsia (no color)
#929292
Design tokens & code
CSS
--color: #9e7ef2; /* rgb */ color: rgb(158, 126, 242); /* oklch */ color: oklch(67.4% 0.168 294.2);
Tailwind
colors: {
custom: {
50: '#bea4f7',
500: '#9e7ef2',
950: '#000000',
},
}SCSS
$custom: #9e7ef2; $custom-light: #bea4f7; $custom-dark: #000000;
JSON
{
"hex": "#9e7ef2",
"rgb": {
"r": 158,
"g": 126,
"b": 242
},
"hsl": {
"h": 256.552,
"s": 81.69,
"l": 72.157
},
"oklch": {
"l": 0.67414,
"c": 0.1676,
"h": 294.2
},
"luminance": 0.28602
}Semantic roles & 50–950 ramp
primary
#9E7EF2
secondary
#ECF4D7
accent
#DE07A3
background
#FCFAFF
surface
#F8F4FF
border
#D1CED7
text
#120F17
muted
#817F85