#8A7DEF#8A7DEF
#8A7DEF is a light, vivid blue. Relative luminance 0.263; OKLCH L 65.4% C 0.165 H 286.1°. Best body text is #000000 at 6.26:1 contrast (WCAG AA passes).
Color values
| HEX | #8A7DEF |
|---|---|
| RGB | rgb(138, 125, 239) |
| HSL | hsl(247, 78%, 71%) |
| HSV | hsv(247, 48%, 94%) |
| CMYK | cmyk(42.3%, 47.7%, 0%, 6.3%) |
| CIE-LAB | lab(58.32, 32.45, -55.99) |
| CIE-LCH | lch(58.32, 64.71, 300.10°) |
| OKLab | oklab(65.37% 0.0458 -0.1587) |
| OKLCH | oklch(65.37% 0.165 286.1) |
| XYZ | xyz(33.3904, 26.3012, 84.9619) |
| Luminance | 0.2630 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Periwinkle (survey)
#8E82FE
ΔE00 2.47
Lavender Blue
#8B88F8
ΔE00 3.50
Perrywinkle
#8F8CE7
ΔE00 4.81
Mediumpurple
#9370DB
ΔE00 5.74
Cornflower
#6A79F7
ΔE00 5.79
Mediumslateblue
#7B68EE
ΔE00 6.49
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A7DEF #E2EF7D
analogous
#7DA9EF #8A7DEF #C37DEF
triadic
#8A7DEF #EF8A7D #7DEF8A
tetradic
#8A7DEF #EF7DA9 #E2EF7D #7DEFC3
square
#8A7DEF #EF7DA9 #E2EF7D #7DEFC3
split-complementary
#8A7DEF #EFC37D #A9EF7D
monochromatic
#301AD7 #5947E8 #8A7DEF #BBB3F6 #E6E4FC
Accessibility & contrast
On white
3.35
#8A7DEF on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.26
#8A7DEF on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #8A7DEF
6.26:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A7DEF | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##8A7DEF | 1.00 | 3.35 | 6.26 | 6.26 |
| #FFFFFF | 3.35 | 1.00 | 21.00 | 21.00 |
| #000000 | 6.26 | 21.00 | 1.00 | 1.00 |
| ##000000 | 6.26 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#4F8FF3
Deuteranopia (green-blind)
#4C89EC
Tritanopia (blue-blind)
#6C95AB
Achromatopsia (no color)
#8C8C8C
Design tokens & code
CSS
--color: #8a7def; /* rgb */ color: rgb(138, 125, 239); /* oklch */ color: oklch(65.4% 0.165 286.1);
Tailwind
colors: {
custom: {
50: '#b1a3f5',
500: '#8a7def',
950: '#000000',
},
}SCSS
$custom: #8a7def; $custom-light: #b1a3f5; $custom-dark: #000000;
JSON
{
"hex": "#8a7def",
"rgb": {
"r": 138,
"g": 125,
"b": 239
},
"hsl": {
"h": 246.842,
"s": 78.082,
"l": 71.373
},
"oklch": {
"l": 0.65367,
"c": 0.16517,
"h": 286.1
},
"luminance": 0.26302
}Semantic roles & 50–950 ramp
primary
#8A7DEF
secondary
#EFF3D5
accent
#DA0BC3
background
#FBFAFF
surface
#F6F3FE
border
#D0CDD6
text
#110F17
muted
#807F85