#8A7AFD#8A7AFD
#8A7AFD is a light, vivid blue. Relative luminance 0.264; OKLCH L 65.7% C 0.188 H 285.6°. Best body text is #000000 at 6.28:1 contrast (WCAG AA passes).
Color values
| HEX | #8A7AFD |
|---|---|
| RGB | rgb(138, 122, 253) |
| HSL | hsl(247, 97%, 74%) |
| HSV | hsv(247, 52%, 99%) |
| CMYK | cmyk(45.5%, 51.8%, 0%, 0.8%) |
| CIE-LAB | lab(58.43, 38.14, -63.56) |
| CIE-LCH | lch(58.43, 74.13, 300.97°) |
| OKLab | oklab(65.71% 0.0504 -0.1809) |
| OKLCH | oklch(65.71% 0.188 285.6) |
| XYZ | xyz(35.1652, 26.4127, 96.1547) |
| Luminance | 0.2641 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Periwinkle (survey)
#8E82FE
ΔE00 2.28
Lavender Blue
#8B88F8
ΔE00 4.19
Cornflower
#6A79F7
ΔE00 5.59
Mediumslateblue
#7B68EE
ΔE00 6.00
Perrywinkle
#8F8CE7
ΔE00 6.39
Mediumpurple
#9370DB
ΔE00 6.51
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A7AFD #EDFD7A
analogous
#7AABFD #8A7AFD #CB7AFD
triadic
#8A7AFD #FD8A7A #7AFD8A
tetradic
#8A7AFD #FD7AAB #EDFD7A #7AFDCB
square
#8A7AFD #FD7AAB #EDFD7A #7AFDCB
split-complementary
#8A7AFD #FDCB7A #ABFD7A
monochromatic
#2204F9 #553EFC #8A7AFD #BFB6FE #E4E1FF
Accessibility & contrast
On white
3.34
#8A7AFD on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.28
#8A7AFD on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #8A7AFD
6.28:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A7AFD | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##8A7AFD | 1.00 | 3.34 | 6.28 | 6.28 |
| #FFFFFF | 3.34 | 1.00 | 21.00 | 21.00 |
| #000000 | 6.28 | 21.00 | 1.00 | 1.00 |
| ##000000 | 6.28 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3A90FF
Deuteranopia (green-blind)
#3689FA
Tritanopia (blue-blind)
#6496B0
Achromatopsia (no color)
#8C8C8C
Design tokens & code
CSS
--color: #8a7afd; /* rgb */ color: rgb(138, 122, 253); /* oklch */ color: oklch(65.7% 0.188 285.6);
Tailwind
colors: {
custom: {
50: '#b2a1ff',
500: '#8a7afd',
950: '#000000',
},
}SCSS
$custom: #8a7afd; $custom-light: #b2a1ff; $custom-dark: #000000;
JSON
{
"hex": "#8a7afd",
"rgb": {
"r": 138,
"g": 122,
"b": 253
},
"hsl": {
"h": 247.328,
"s": 97.037,
"l": 73.529
},
"oklch": {
"l": 0.65706,
"c": 0.18783,
"h": 285.6
},
"luminance": 0.26414
}Semantic roles & 50–950 ramp
primary
#8A7AFD
secondary
#F3F7D4
accent
#E600C9
background
#FBF9FF
surface
#F6F2FF
border
#D0CCD7
text
#110F18
muted
#807E86