#8A7AF2#8A7AF2
#8A7AF2 is a light, vivid blue. Relative luminance 0.257; OKLCH L 65.0% C 0.173 H 286.6°. Best body text is #000000 at 6.15:1 contrast (WCAG AA passes).
Color values
| HEX | #8A7AF2 |
|---|---|
| RGB | rgb(138, 122, 242) |
| HSL | hsl(248, 82%, 71%) |
| HSV | hsv(248, 50%, 95%) |
| CMYK | cmyk(43%, 49.6%, 0%, 5.1%) |
| CIE-LAB | lab(57.78, 35.03, -58.51) |
| CIE-LCH | lch(57.78, 68.20, 300.91°) |
| OKLab | oklab(65.02% 0.0497 -0.1661) |
| OKLCH | oklch(65.02% 0.173 286.6) |
| XYZ | xyz(33.4632, 25.7318, 87.1908) |
| Luminance | 0.2573 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Periwinkle (survey)
#8E82FE
ΔE00 2.78
Lavender Blue
#8B88F8
ΔE00 4.25
Mediumpurple
#9370DB
ΔE00 5.38
Mediumslateblue
#7B68EE
ΔE00 5.70
Cornflower
#6A79F7
ΔE00 5.75
Perrywinkle
#8F8CE7
ΔE00 5.79
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A7AF2 #E2F27A
analogous
#7AA6F2 #8A7AF2 #C67AF2
triadic
#8A7AF2 #F28A7A #7AF28A
tetradic
#8A7AF2 #F27AA6 #E2F27A #7AF2C6
square
#8A7AF2 #F27AA6 #E2F27A #7AF2C6
split-complementary
#8A7AF2 #F2C67A #A6F27A
monochromatic
#3016DC #5942ED #8A7AF2 #BBB2F7 #E6E3FC
Accessibility & contrast
On white
3.42
#8A7AF2 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.15
#8A7AF2 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #8A7AF2
6.15:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A7AF2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##8A7AF2 | 1.00 | 3.42 | 6.15 | 6.15 |
| #FFFFFF | 3.42 | 1.00 | 21.00 | 21.00 |
| #000000 | 6.15 | 21.00 | 1.00 | 1.00 |
| ##000000 | 6.15 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#468EF6
Deuteranopia (green-blind)
#4487EF
Tritanopia (blue-blind)
#6A93AB
Achromatopsia (no color)
#8B8B8B
Design tokens & code
CSS
--color: #8a7af2; /* rgb */ color: rgb(138, 122, 242); /* oklch */ color: oklch(65.0% 0.173 286.6);
Tailwind
colors: {
custom: {
50: '#b1a0f7',
500: '#8a7af2',
950: '#000000',
},
}SCSS
$custom: #8a7af2; $custom-light: #b1a0f7; $custom-dark: #000000;
JSON
{
"hex": "#8a7af2",
"rgb": {
"r": 138,
"g": 122,
"b": 242
},
"hsl": {
"h": 248,
"s": 82.192,
"l": 71.373
},
"oklch": {
"l": 0.65016,
"c": 0.17338,
"h": 286.6
},
"luminance": 0.25733
}Semantic roles & 50–950 ramp
primary
#8A7AF2
secondary
#EFF3D4
accent
#DF07C2
background
#FBF9FF
surface
#F6F2FF
border
#D0CCD7
text
#110F17
muted
#807E85