#8A7EF1#8A7EF1
#8A7EF1 is a light, vivid blue. Relative luminance 0.267; OKLCH L 65.7% C 0.166 H 285.6°. Best body text is #000000 at 6.34:1 contrast (WCAG AA passes).
Color values
| HEX | #8A7EF1 |
|---|---|
| RGB | rgb(138, 126, 241) |
| HSL | hsl(246, 80%, 72%) |
| HSV | hsv(246, 48%, 95%) |
| CMYK | cmyk(42.7%, 47.7%, 0%, 5.5%) |
| CIE-LAB | lab(58.67, 32.43, -56.54) |
| CIE-LCH | lch(58.67, 65.18, 299.84°) |
| OKLab | oklab(65.67% 0.0448 -0.1603) |
| OKLCH | oklch(65.67% 0.166 285.6) |
| XYZ | xyz(33.8147, 26.6745, 86.5690) |
| Luminance | 0.2668 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Periwinkle (survey)
#8E82FE
ΔE00 2.10
Lavender Blue
#8B88F8
ΔE00 3.12
Perrywinkle
#8F8CE7
ΔE00 4.63
Cornflower
#6A79F7
ΔE00 5.71
Mediumpurple
#9370DB
ΔE00 6.13
Mediumslateblue
#7B68EE
ΔE00 6.75
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A7EF1 #E5F17E
analogous
#7EACF1 #8A7EF1 #C47EF1
triadic
#8A7EF1 #F18A7E #7EF18A
tetradic
#8A7EF1 #F17EAC #E5F17E #7EF1C4
square
#8A7EF1 #F17EAC #E5F17E #7EF1C4
split-complementary
#8A7EF1 #F1C47E #ACF17E
monochromatic
#2C18DD #5847EB #8A7EF1 #BCB5F7 #E6E3FC
Accessibility & contrast
On white
3.31
#8A7EF1 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.34
#8A7EF1 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #8A7EF1
6.34:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A7EF1 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##8A7EF1 | 1.00 | 3.31 | 6.34 | 6.34 |
| #FFFFFF | 3.31 | 1.00 | 21.00 | 21.00 |
| #000000 | 6.34 | 21.00 | 1.00 | 1.00 |
| ##000000 | 6.34 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#4F90F5
Deuteranopia (green-blind)
#4C8AEE
Tritanopia (blue-blind)
#6B96AC
Achromatopsia (no color)
#8D8D8D
Design tokens & code
CSS
--color: #8a7ef1; /* rgb */ color: rgb(138, 126, 241); /* oklch */ color: oklch(65.7% 0.166 285.6);
Tailwind
colors: {
custom: {
50: '#b1a3f6',
500: '#8a7ef1',
950: '#000000',
},
}SCSS
$custom: #8a7ef1; $custom-light: #b1a3f6; $custom-dark: #000000;
JSON
{
"hex": "#8a7ef1",
"rgb": {
"r": 138,
"g": 126,
"b": 241
},
"hsl": {
"h": 246.261,
"s": 80.42,
"l": 71.961
},
"oklch": {
"l": 0.65666,
"c": 0.16645,
"h": 285.6
},
"luminance": 0.26676
}Semantic roles & 50–950 ramp
primary
#8A7EF1
secondary
#F1F4D7
accent
#DD09C7
background
#FBFAFF
surface
#F6F4FF
border
#D0CED7
text
#110F17
muted
#807F85