#8A7DFE#8A7DFE
#8A7DFE is a light, vivid blue. Relative luminance 0.272; OKLCH L 66.3% C 0.185 H 284.7°. Best body text is #000000 at 6.45:1 contrast (WCAG AA passes).
Color values
| HEX | #8A7DFE |
|---|---|
| RGB | rgb(138, 125, 254) |
| HSL | hsl(246, 98%, 74%) |
| HSV | hsv(246, 51%, 100%) |
| CMYK | cmyk(45.7%, 50.8%, 0%, 0.4%) |
| CIE-LAB | lab(59.18, 36.69, -62.90) |
| CIE-LCH | lch(59.18, 72.82, 300.26°) |
| OKLab | oklab(66.29% 0.0471 -0.179) |
| OKLCH | oklch(66.29% 0.185 284.7) |
| XYZ | xyz(35.6990, 27.2247, 97.1206) |
| Luminance | 0.2723 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Periwinkle (survey)
#8E82FE
ΔE00 1.48
Lavender Blue
#8B88F8
ΔE00 3.36
Cornflower
#6A79F7
ΔE00 5.52
Perrywinkle
#8F8CE7
ΔE00 5.76
Mediumslateblue
#7B68EE
ΔE00 6.77
Mediumpurple
#9370DB
ΔE00 7.11
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A7DFE #F1FE7D
analogous
#7DB0FE #8A7DFE #CB7DFE
triadic
#8A7DFE #FE8A7D #7DFE8A
tetradic
#8A7DFE #FE7DB0 #F1FE7D #7DFECB
square
#8A7DFE #FE7DB0 #F1FE7D #7DFECB
split-complementary
#8A7DFE #FECB7D #B0FE7D
monochromatic
#1D04FD #5340FE #8A7DFE #C1BAFE #E4E1FF
Accessibility & contrast
On white
3.26
#8A7DFE on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.45
#8A7DFE on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #8A7DFE
6.45:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A7DFE | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##8A7DFE | 1.00 | 3.26 | 6.45 | 6.45 |
| #FFFFFF | 3.26 | 1.00 | 21.00 | 21.00 |
| #000000 | 6.45 | 21.00 | 1.00 | 1.00 |
| ##000000 | 6.45 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#4092FF
Deuteranopia (green-blind)
#3B8AFB
Tritanopia (blue-blind)
#6499B2
Achromatopsia (no color)
#8E8E8E
Design tokens & code
CSS
--color: #8a7dfe; /* rgb */ color: rgb(138, 125, 254); /* oklch */ color: oklch(66.3% 0.185 284.7);
Tailwind
colors: {
custom: {
50: '#b2a3ff',
500: '#8a7dfe',
950: '#000000',
},
}SCSS
$custom: #8a7dfe; $custom-light: #b2a3ff; $custom-dark: #000000;
JSON
{
"hex": "#8a7dfe",
"rgb": {
"r": 138,
"g": 125,
"b": 254
},
"hsl": {
"h": 246.047,
"s": 98.473,
"l": 74.314
},
"oklch": {
"l": 0.66289,
"c": 0.18507,
"h": 284.7
},
"luminance": 0.27226
}Semantic roles & 50–950 ramp
primary
#8A7DFE
secondary
#F4F7D4
accent
#E600CE
background
#FBFAFF
surface
#F6F3FF
border
#D0CDD7
text
#110F18
muted
#807F86