#8A7EDA#8A7EDA
#8A7EDA is a light, vivid blue. Relative luminance 0.254; OKLCH L 64.3% C 0.135 H 288.0°. Best body text is #000000 at 6.08:1 contrast (WCAG AA passes).
Color values
| HEX | #8A7EDA |
|---|---|
| RGB | rgb(138, 126, 218) |
| HSL | hsl(248, 55%, 67%) |
| HSV | hsv(248, 42%, 85%) |
| CMYK | cmyk(36.7%, 42.2%, 0%, 14.5%) |
| CIE-LAB | lab(57.45, 26.07, -45.65) |
| CIE-LCH | lch(57.45, 52.57, 299.73°) |
| OKLab | oklab(64.35% 0.0417 -0.1285) |
| OKLCH | oklch(64.35% 0.135 288) |
| XYZ | xyz(30.5935, 25.3860, 69.6042) |
| Luminance | 0.2539 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Perrywinkle
#8F8CE7
ΔE00 4.50
Mediumpurple
#9370DB
ΔE00 5.10
Lavender Blue
#8B88F8
ΔE00 5.35
Periwinkle (survey)
#8E82FE
ΔE00 5.38
Cornflower
#6A79F7
ΔE00 7.62
Mediumslateblue
#7B68EE
ΔE00 7.76
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A7EDA #CEDA7E
analogous
#7EA0DA #8A7EDA #B87EDA
triadic
#8A7EDA #DA8A7E #7EDA8A
tetradic
#8A7EDA #DA7EA0 #CEDA7E #7EDAB8
square
#8A7EDA #DA7EA0 #CEDA7E #7EDAB8
split-complementary
#8A7EDA #DAB87E #A0DA7E
monochromatic
#4131AC #5F4ECC #8A7EDA #B5AEE8 #E0DDF5
Accessibility & contrast
On white
3.46
#8A7EDA on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.08
#8A7EDA on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #8A7EDA
6.08:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A7EDA | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##8A7EDA | 1.00 | 3.46 | 6.08 | 6.08 |
| #FFFFFF | 3.46 | 1.00 | 21.00 | 21.00 |
| #000000 | 6.08 | 21.00 | 1.00 | 1.00 |
| ##000000 | 6.08 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#5F8CDD
Deuteranopia (green-blind)
#5E88D8
Tritanopia (blue-blind)
#7590A1
Achromatopsia (no color)
#8A8A8A
Design tokens & code
CSS
--color: #8a7eda; /* rgb */ color: rgb(138, 126, 218); /* oklch */ color: oklch(64.3% 0.135 288.0);
Tailwind
colors: {
custom: {
50: '#afa3e6',
500: '#8a7eda',
950: '#000000',
},
}SCSS
$custom: #8a7eda; $custom-light: #afa3e6; $custom-dark: #000000;
JSON
{
"hex": "#8a7eda",
"rgb": {
"r": 138,
"g": 126,
"b": 218
},
"hsl": {
"h": 247.826,
"s": 55.422,
"l": 67.451
},
"oklch": {
"l": 0.64346,
"c": 0.13505,
"h": 288
},
"luminance": 0.25387
}Semantic roles & 50–950 ramp
primary
#8A7EDA
secondary
#E5E8CC
accent
#C323AE
background
#FBFAFE
surface
#F6F3FC
border
#D0CDD5
text
#110F16
muted
#807F84