#8A7EF2#8A7EF2
#8A7EF2 is a light, vivid blue. Relative luminance 0.267; OKLCH L 65.7% C 0.168 H 285.5°. Best body text is #000000 at 6.35:1 contrast (WCAG AA passes).
Color values
| HEX | #8A7EF2 |
|---|---|
| RGB | rgb(138, 126, 242) |
| HSL | hsl(246, 82%, 72%) |
| HSV | hsv(246, 48%, 95%) |
| CMYK | cmyk(43%, 47.9%, 0%, 5.1%) |
| CIE-LAB | lab(58.73, 32.71, -57.00) |
| CIE-LCH | lch(58.73, 65.72, 299.85°) |
| OKLab | oklab(65.73% 0.0449 -0.1617) |
| OKLCH | oklch(65.73% 0.168 285.5) |
| XYZ | xyz(33.9645, 26.7344, 87.3579) |
| Luminance | 0.2674 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Periwinkle (survey)
#8E82FE
ΔE00 1.98
Lavender Blue
#8B88F8
ΔE00 3.08
Perrywinkle
#8F8CE7
ΔE00 4.68
Cornflower
#6A79F7
ΔE00 5.67
Mediumpurple
#9370DB
ΔE00 6.21
Mediumslateblue
#7B68EE
ΔE00 6.76
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A7EF2 #E6F27E
analogous
#7EACF2 #8A7EF2 #C47EF2
triadic
#8A7EF2 #F28A7E #7EF28A
tetradic
#8A7EF2 #F27EAC #E6F27E #7EF2C4
square
#8A7EF2 #F27EAC #E6F27E #7EF2C4
split-complementary
#8A7EF2 #F2C47E #ACF27E
monochromatic
#2B16DF #5846EC #8A7EF2 #BCB6F8 #E6E3FC
Accessibility & contrast
On white
3.31
#8A7EF2 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.35
#8A7EF2 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #8A7EF2
6.35:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A7EF2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##8A7EF2 | 1.00 | 3.31 | 6.35 | 6.35 |
| #FFFFFF | 3.31 | 1.00 | 21.00 | 21.00 |
| #000000 | 6.35 | 21.00 | 1.00 | 1.00 |
| ##000000 | 6.35 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#4E91F6
Deuteranopia (green-blind)
#4B8AEF
Tritanopia (blue-blind)
#6A96AD
Achromatopsia (no color)
#8D8D8D
Design tokens & code
CSS
--color: #8a7ef2; /* rgb */ color: rgb(138, 126, 242); /* oklch */ color: oklch(65.7% 0.168 285.5);
Tailwind
colors: {
custom: {
50: '#b1a3f7',
500: '#8a7ef2',
950: '#000000',
},
}SCSS
$custom: #8a7ef2; $custom-light: #b1a3f7; $custom-dark: #000000;
JSON
{
"hex": "#8a7ef2",
"rgb": {
"r": 138,
"g": 126,
"b": 242
},
"hsl": {
"h": 246.207,
"s": 81.69,
"l": 72.157
},
"oklch": {
"l": 0.65726,
"c": 0.16778,
"h": 285.5
},
"luminance": 0.26736
}Semantic roles & 50–950 ramp
primary
#8A7EF2
secondary
#F1F4D7
accent
#DE07C8
background
#FBFAFF
surface
#F6F4FF
border
#D0CED7
text
#110F17
muted
#807F85