#7E6CE1#7E6CE1
#7E6CE1 is a mid, vivid blue. Relative luminance 0.206; OKLCH L 60.5% C 0.171 H 287.2°. Best body text is #000000 at 5.12:1 contrast (WCAG AA passes).
Color values
| HEX | #7E6CE1 |
|---|---|
| RGB | rgb(126, 108, 225) |
| HSL | hsl(249, 66%, 65%) |
| HSV | hsv(249, 52%, 88%) |
| CMYK | cmyk(44%, 52%, 0%, 11.8%) |
| CIE-LAB | lab(52.50, 35.64, -57.53) |
| CIE-LCH | lch(52.50, 67.67, 301.78°) |
| OKLab | oklab(60.51% 0.0506 -0.1636) |
| OKLCH | oklch(60.51% 0.171 287.2) |
| XYZ | xyz(27.5535, 20.5959, 73.7432) |
| Luminance | 0.2060 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Mediumslateblue
#7B68EE
ΔE00 2.19
Mediumpurple
#9370DB
ΔE00 4.64
Dark Periwinkle
#665FD1
ΔE00 6.23
Purpley
#8756E4
ΔE00 6.44
Cornflower
#6A79F7
ΔE00 6.77
Light Indigo
#6D5ACF
ΔE00 6.79
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7E6CE1 #CFE16C
analogous
#6C94E1 #7E6CE1 #B96CE1
triadic
#7E6CE1 #E17E6C #6CE17E
tetradic
#7E6CE1 #E16C94 #CFE16C #6CE1B9
square
#7E6CE1 #E16C94 #CFE16C #6CE1B9
split-complementary
#7E6CE1 #E1B96C #94E16C
monochromatic
#3924AF #5139D7 #7E6CE1 #AB9FEB #D7D2F6
Accessibility & contrast
On white
4.10
#7E6CE1 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.12
#7E6CE1 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #7E6CE1
5.12:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7E6CE1 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##7E6CE1 | 1.00 | 4.10 | 5.12 | 5.12 |
| #FFFFFF | 4.10 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.12 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.12 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3580E5
Deuteranopia (green-blind)
#347ADE
Tritanopia (blue-blind)
#60859C
Achromatopsia (no color)
#7D7D7D
Design tokens & code
CSS
--color: #7e6ce1; /* rgb */ color: rgb(126, 108, 225); /* oklch */ color: oklch(60.5% 0.171 287.2);
Tailwind
colors: {
custom: {
50: '#a996eb',
500: '#7e6ce1',
950: '#000000',
},
}SCSS
$custom: #7e6ce1; $custom-light: #a996eb; $custom-dark: #000000;
JSON
{
"hex": "#7e6ce1",
"rgb": {
"r": 126,
"g": 108,
"b": 225
},
"hsl": {
"h": 249.231,
"s": 66.102,
"l": 65.294
},
"oklch": {
"l": 0.60505,
"c": 0.17125,
"h": 287.2
},
"luminance": 0.20597
}Semantic roles & 50–950 ramp
primary
#7E6CE1
secondary
#E2E8C1
accent
#CE18B2
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100D16
muted
#7F7E84