#8A7FEF#8A7FEF
#8A7FEF is a light, vivid blue. Relative luminance 0.268; OKLCH L 65.7% C 0.162 H 285.5°. Best body text is #000000 at 6.36:1 contrast (WCAG AA passes).
Color values
| HEX | #8A7FEF |
|---|---|
| RGB | rgb(138, 127, 239) |
| HSL | hsl(246, 78%, 72%) |
| HSV | hsv(246, 47%, 94%) |
| CMYK | cmyk(42.3%, 46.9%, 0%, 6.3%) |
| CIE-LAB | lab(58.80, 31.28, -55.22) |
| CIE-LCH | lch(58.80, 63.47, 299.53°) |
| OKLab | oklab(65.73% 0.0434 -0.1564) |
| OKLCH | oklch(65.73% 0.162 285.5) |
| XYZ | xyz(33.6461, 26.8127, 85.0472) |
| Luminance | 0.2681 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Periwinkle (survey)
#8E82FE
ΔE00 2.22
Lavender Blue
#8B88F8
ΔE00 2.94
Perrywinkle
#8F8CE7
ΔE00 4.24
Cornflower
#6A79F7
ΔE00 5.81
Mediumpurple
#9370DB
ΔE00 6.21
Mediumslateblue
#7B68EE
ΔE00 7.04
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A7FEF #E4EF7F
analogous
#7FACEF #8A7FEF #C27FEF
triadic
#8A7FEF #EF8A7F #7FEF8A
tetradic
#8A7FEF #EF7FAC #E4EF7F #7FEFC2
square
#8A7FEF #EF7FAC #E4EF7F #7FEFC2
split-complementary
#8A7FEF #EFC27F #ACEF7F
monochromatic
#2E1BD9 #5849E8 #8A7FEF #BCB5F6 #E6E4FC
Accessibility & contrast
On white
3.30
#8A7FEF on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.36
#8A7FEF on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #8A7FEF
6.36:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A7FEF | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##8A7FEF | 1.00 | 3.30 | 6.36 | 6.36 |
| #FFFFFF | 3.30 | 1.00 | 21.00 | 21.00 |
| #000000 | 6.36 | 21.00 | 1.00 | 1.00 |
| ##000000 | 6.36 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#5291F3
Deuteranopia (green-blind)
#508AEC
Tritanopia (blue-blind)
#6C96AC
Achromatopsia (no color)
#8D8D8D
Design tokens & code
CSS
--color: #8a7fef; /* rgb */ color: rgb(138, 127, 239); /* oklch */ color: oklch(65.7% 0.162 285.5);
Tailwind
colors: {
custom: {
50: '#b1a4f5',
500: '#8a7fef',
950: '#000000',
},
}SCSS
$custom: #8a7fef; $custom-light: #b1a4f5; $custom-dark: #000000;
JSON
{
"hex": "#8a7fef",
"rgb": {
"r": 138,
"g": 127,
"b": 239
},
"hsl": {
"h": 245.893,
"s": 77.778,
"l": 71.765
},
"oklch": {
"l": 0.65727,
"c": 0.16235,
"h": 285.5
},
"luminance": 0.26814
}Semantic roles & 50–950 ramp
primary
#8A7FEF
secondary
#F0F3D7
accent
#DA0BC6
background
#FBFAFF
surface
#F6F4FE
border
#D0CED6
text
#110F17
muted
#807F85