#8A7FF2#8A7FF2
#8A7FF2 is a light, vivid blue. Relative luminance 0.270; OKLCH L 65.9% C 0.166 H 285.2°. Best body text is #000000 at 6.40:1 contrast (WCAG AA passes).
Color values
| HEX | #8A7FF2 |
|---|---|
| RGB | rgb(138, 127, 242) |
| HSL | hsl(246, 82%, 72%) |
| HSV | hsv(246, 48%, 95%) |
| CMYK | cmyk(43%, 47.5%, 0%, 5.1%) |
| CIE-LAB | lab(58.97, 32.13, -56.62) |
| CIE-LCH | lch(58.97, 65.10, 299.57°) |
| OKLab | oklab(65.91% 0.0437 -0.1605) |
| OKLCH | oklch(65.91% 0.166 285.2) |
| XYZ | xyz(34.0930, 26.9914, 87.4007) |
| Luminance | 0.2699 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Periwinkle (survey)
#8E82FE
ΔE00 1.85
Lavender Blue
#8B88F8
ΔE00 2.79
Perrywinkle
#8F8CE7
ΔE00 4.42
Cornflower
#6A79F7
ΔE00 5.68
Mediumpurple
#9370DB
ΔE00 6.44
Mediumslateblue
#7B68EE
ΔE00 7.03
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A7FF2 #E7F27F
analogous
#7FAEF2 #8A7FF2 #C37FF2
triadic
#8A7FF2 #F28A7F #7FF28A
tetradic
#8A7FF2 #F27FAE #E7F27F #7FF2C3
square
#8A7FF2 #F27FAE #E7F27F #7FF2C3
split-complementary
#8A7FF2 #F2C37F #AEF27F
monochromatic
#2A17E0 #5747EC #8A7FF2 #BDB7F8 #E6E3FC
Accessibility & contrast
On white
3.28
#8A7FF2 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.40
#8A7FF2 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #8A7FF2
6.40:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A7FF2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##8A7FF2 | 1.00 | 3.28 | 6.40 | 6.40 |
| #FFFFFF | 3.28 | 1.00 | 21.00 | 21.00 |
| #000000 | 6.40 | 21.00 | 1.00 | 1.00 |
| ##000000 | 6.40 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#5091F6
Deuteranopia (green-blind)
#4D8AEF
Tritanopia (blue-blind)
#6A97AD
Achromatopsia (no color)
#8E8E8E
Design tokens & code
CSS
--color: #8a7ff2; /* rgb */ color: rgb(138, 127, 242); /* oklch */ color: oklch(65.9% 0.166 285.2);
Tailwind
colors: {
custom: {
50: '#b1a4f7',
500: '#8a7ff2',
950: '#000000',
},
}SCSS
$custom: #8a7ff2; $custom-light: #b1a4f7; $custom-dark: #000000;
JSON
{
"hex": "#8a7ff2",
"rgb": {
"r": 138,
"g": 127,
"b": 242
},
"hsl": {
"h": 245.739,
"s": 81.56,
"l": 72.353
},
"oklch": {
"l": 0.65906,
"c": 0.16639,
"h": 285.2
},
"luminance": 0.26993
}Semantic roles & 50–950 ramp
primary
#8A7FF2
secondary
#F1F4D7
accent
#DE08C9
background
#FBFAFF
surface
#F6F4FF
border
#D0CED7
text
#110F17
muted
#807F85