#8A7DEC#8A7DEC
#8A7DEC is a light, vivid blue. Relative luminance 0.261; OKLCH L 65.2% C 0.161 H 286.4°. Best body text is #000000 at 6.23:1 contrast (WCAG AA passes).
Color values
| HEX | #8A7DEC |
|---|---|
| RGB | rgb(138, 125, 236) |
| HSL | hsl(247, 74%, 71%) |
| HSV | hsv(247, 47%, 93%) |
| CMYK | cmyk(41.5%, 47%, 0%, 7.5%) |
| CIE-LAB | lab(58.16, 31.61, -54.58) |
| CIE-LCH | lch(58.16, 63.08, 300.07°) |
| OKLab | oklab(65.19% 0.0455 -0.1546) |
| OKLCH | oklch(65.19% 0.161 286.4) |
| XYZ | xyz(32.9509, 26.1254, 82.6472) |
| Luminance | 0.2613 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Periwinkle (survey)
#8E82FE
ΔE00 2.83
Lavender Blue
#8B88F8
ΔE00 3.67
Perrywinkle
#8F8CE7
ΔE00 4.68
Mediumpurple
#9370DB
ΔE00 5.51
Cornflower
#6A79F7
ΔE00 5.96
Mediumslateblue
#7B68EE
ΔE00 6.53
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A7DEC #DFEC7D
analogous
#7DA7EC #8A7DEC #C17DEC
triadic
#8A7DEC #EC8A7D #7DEC8A
tetradic
#8A7DEC #EC7DA7 #DFEC7D #7DECC1
square
#8A7DEC #EC7DA7 #DFEC7D #7DECC1
split-complementary
#8A7DEC #ECC17D #A7EC7D
monochromatic
#331ED0 #5A48E4 #8A7DEC #BAB2F4 #E7E4FB
Accessibility & contrast
On white
3.37
#8A7DEC on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.23
#8A7DEC on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #8A7DEC
6.23:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A7DEC | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##8A7DEC | 1.00 | 3.37 | 6.23 | 6.23 |
| #FFFFFF | 3.37 | 1.00 | 21.00 | 21.00 |
| #000000 | 6.23 | 21.00 | 1.00 | 1.00 |
| ##000000 | 6.23 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#518FF0
Deuteranopia (green-blind)
#4F89E9
Tritanopia (blue-blind)
#6D94A9
Achromatopsia (no color)
#8C8C8C
Design tokens & code
CSS
--color: #8a7dec; /* rgb */ color: rgb(138, 125, 236); /* oklch */ color: oklch(65.2% 0.161 286.4);
Tailwind
colors: {
custom: {
50: '#b1a2f3',
500: '#8a7dec',
950: '#000000',
},
}SCSS
$custom: #8a7dec; $custom-light: #b1a2f3; $custom-dark: #000000;
JSON
{
"hex": "#8a7dec",
"rgb": {
"r": 138,
"g": 125,
"b": 236
},
"hsl": {
"h": 247.027,
"s": 74.497,
"l": 70.784
},
"oklch": {
"l": 0.65188,
"c": 0.16113,
"h": 286.4
},
"luminance": 0.26127
}Semantic roles & 50–950 ramp
primary
#8A7DEC
secondary
#EEF1D3
accent
#D70FBF
background
#FBFAFE
surface
#F6F3FD
border
#D0CDD5
text
#110F17
muted
#807F85