#8A7CFE#8A7CFE
#8A7CFE is a light, vivid blue. Relative luminance 0.270; OKLCH L 66.1% C 0.186 H 285.0°. Best body text is #000000 at 6.39:1 contrast (WCAG AA passes).
Color values
| HEX | #8A7CFE |
|---|---|
| RGB | rgb(138, 124, 254) |
| HSL | hsl(246, 98%, 74%) |
| HSV | hsv(246, 51%, 100%) |
| CMYK | cmyk(45.7%, 51.2%, 0%, 0.4%) |
| CIE-LAB | lab(58.95, 37.27, -63.27) |
| CIE-LCH | lch(58.95, 73.43, 300.50°) |
| OKLab | oklab(66.11% 0.0482 -0.1801) |
| OKLCH | oklch(66.11% 0.186 285) |
| XYZ | xyz(35.5730, 26.9727, 97.0786) |
| Luminance | 0.2697 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Periwinkle (survey)
#8E82FE
ΔE00 1.74
Lavender Blue
#8B88F8
ΔE00 3.65
Cornflower
#6A79F7
ΔE00 5.53
Perrywinkle
#8F8CE7
ΔE00 5.99
Mediumslateblue
#7B68EE
ΔE00 6.52
Mediumpurple
#9370DB
ΔE00 6.94
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A7CFE #F0FE7C
analogous
#7CAFFE #8A7CFE #CB7CFE
triadic
#8A7CFE #FE8A7C #7CFE8A
tetradic
#8A7CFE #FE7CAF #F0FE7C #7CFECB
square
#8A7CFE #FE7CAF #F0FE7C #7CFECB
split-complementary
#8A7CFE #FECB7C #AFFE7C
monochromatic
#1E03FD #543FFE #8A7CFE #C0B9FE #E4E1FF
Accessibility & contrast
On white
3.28
#8A7CFE on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.39
#8A7CFE on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #8A7CFE
6.39:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A7CFE | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##8A7CFE | 1.00 | 3.28 | 6.39 | 6.39 |
| #FFFFFF | 3.28 | 1.00 | 21.00 | 21.00 |
| #000000 | 6.39 | 21.00 | 1.00 | 1.00 |
| ##000000 | 6.39 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3E92FF
Deuteranopia (green-blind)
#398AFB
Tritanopia (blue-blind)
#6498B1
Achromatopsia (no color)
#8E8E8E
Design tokens & code
CSS
--color: #8a7cfe; /* rgb */ color: rgb(138, 124, 254); /* oklch */ color: oklch(66.1% 0.186 285.0);
Tailwind
colors: {
custom: {
50: '#b2a2ff',
500: '#8a7cfe',
950: '#000000',
},
}SCSS
$custom: #8a7cfe; $custom-light: #b2a2ff; $custom-dark: #000000;
JSON
{
"hex": "#8a7cfe",
"rgb": {
"r": 138,
"g": 124,
"b": 254
},
"hsl": {
"h": 246.462,
"s": 98.485,
"l": 74.118
},
"oklch": {
"l": 0.66115,
"c": 0.18643,
"h": 285
},
"luminance": 0.26974
}Semantic roles & 50–950 ramp
primary
#8A7CFE
secondary
#F3F7D4
accent
#E600CD
background
#FBFAFF
surface
#F6F3FF
border
#D0CDD7
text
#110F18
muted
#807F86