#8A7EFB#8A7EFB
#8A7EFB is a light, vivid blue. Relative luminance 0.273; OKLCH L 66.3% C 0.180 H 284.7°. Best body text is #000000 at 6.46:1 contrast (WCAG AA passes).
Color values
| HEX | #8A7EFB |
|---|---|
| RGB | rgb(138, 126, 251) |
| HSL | hsl(246, 94%, 74%) |
| HSV | hsv(246, 50%, 98%) |
| CMYK | cmyk(45%, 49.8%, 0%, 1.6%) |
| CIE-LAB | lab(59.24, 35.26, -61.15) |
| CIE-LCH | lch(59.24, 70.59, 299.97°) |
| OKLab | oklab(66.28% 0.0457 -0.1738) |
| OKLCH | oklch(66.28% 0.18 284.7) |
| XYZ | xyz(35.3496, 27.2885, 94.6527) |
| Luminance | 0.2729 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Periwinkle (survey)
#8E82FE
ΔE00 1.27
Lavender Blue
#8B88F8
ΔE00 3.00
Perrywinkle
#8F8CE7
ΔE00 5.30
Cornflower
#6A79F7
ΔE00 5.50
Mediumslateblue
#7B68EE
ΔE00 6.92
Mediumpurple
#9370DB
ΔE00 7.01
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A7EFB #EFFB7E
analogous
#7EB1FB #8A7EFB #C97EFB
triadic
#8A7EFB #FB8A7E #7EFB8A
tetradic
#8A7EFB #FB7EB1 #EFFB7E #7EFBC9
square
#8A7EFB #FB7EB1 #EFFB7E #7EFBC9
split-complementary
#8A7EFB #FBC97E #B1FB7E
monochromatic
#1F08F7 #5443F9 #8A7EFB #C0B9FD #E4E1FE
Accessibility & contrast
On white
3.25
#8A7EFB on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.46
#8A7EFB on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #8A7EFB
6.46:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A7EFB | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##8A7EFB | 1.00 | 3.25 | 6.46 | 6.46 |
| #FFFFFF | 3.25 | 1.00 | 21.00 | 21.00 |
| #000000 | 6.46 | 21.00 | 1.00 | 1.00 |
| ##000000 | 6.46 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#4692FF
Deuteranopia (green-blind)
#418BF8
Tritanopia (blue-blind)
#6599B1
Achromatopsia (no color)
#8F8F8F
Design tokens & code
CSS
--color: #8a7efb; /* rgb */ color: rgb(138, 126, 251); /* oklch */ color: oklch(66.3% 0.180 284.7);
Tailwind
colors: {
custom: {
50: '#b2a3fd',
500: '#8a7efb',
950: '#000000',
},
}SCSS
$custom: #8a7efb; $custom-light: #b2a3fd; $custom-dark: #000000;
JSON
{
"hex": "#8a7efb",
"rgb": {
"r": 138,
"g": 126,
"b": 251
},
"hsl": {
"h": 245.76,
"s": 93.985,
"l": 73.922
},
"oklch": {
"l": 0.66277,
"c": 0.17976,
"h": 284.7
},
"luminance": 0.2729
}Semantic roles & 50–950 ramp
primary
#8A7EFB
secondary
#F3F6D5
accent
#E600CF
background
#FBFAFF
surface
#F6F4FF
border
#D0CED7
text
#110F18
muted
#807F86