#8A7BEB#8A7BEB
#8A7BEB is a light, vivid blue. Relative luminance 0.256; OKLCH L 64.8% C 0.163 H 287.1°. Best body text is #000000 at 6.11:1 contrast (WCAG AA passes).
Color values
| HEX | #8A7BEB |
|---|---|
| RGB | rgb(138, 123, 235) |
| HSL | hsl(248, 74%, 70%) |
| HSV | hsv(248, 48%, 92%) |
| CMYK | cmyk(41.3%, 47.7%, 0%, 7.8%) |
| CIE-LAB | lab(57.62, 32.50, -54.88) |
| CIE-LCH | lch(57.62, 63.78, 300.63°) |
| OKLab | oklab(64.77% 0.0478 -0.1555) |
| OKLCH | oklch(64.77% 0.163 287.1) |
| XYZ | xyz(32.5554, 25.5662, 81.8006) |
| Luminance | 0.2557 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Periwinkle (survey)
#8E82FE
ΔE00 3.27
Lavender Blue
#8B88F8
ΔE00 4.28
Mediumpurple
#9370DB
ΔE00 4.96
Perrywinkle
#8F8CE7
ΔE00 5.25
Mediumslateblue
#7B68EE
ΔE00 6.01
Cornflower
#6A79F7
ΔE00 6.06
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A7BEB #DCEB7B
analogous
#7BA4EB #8A7BEB #C27BEB
triadic
#8A7BEB #EB8A7B #7BEB8A
tetradic
#8A7BEB #EB7BA4 #DCEB7B #7BEBC2
square
#8A7BEB #EB7BA4 #DCEB7B #7BEBC2
split-complementary
#8A7BEB #EBC27B #A4EB7B
monochromatic
#361FCD #5B46E3 #8A7BEB #B9B0F3 #E7E4FB
Accessibility & contrast
On white
3.44
#8A7BEB on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.11
#8A7BEB on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #8A7BEB
6.11:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A7BEB | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##8A7BEB | 1.00 | 3.44 | 6.11 | 6.11 |
| #FFFFFF | 3.44 | 1.00 | 21.00 | 21.00 |
| #000000 | 6.11 | 21.00 | 1.00 | 1.00 |
| ##000000 | 6.11 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#4E8DEF
Deuteranopia (green-blind)
#4D87E8
Tritanopia (blue-blind)
#6E92A8
Achromatopsia (no color)
#8A8A8A
Design tokens & code
CSS
--color: #8a7beb; /* rgb */ color: rgb(138, 123, 235); /* oklch */ color: oklch(64.8% 0.163 287.1);
Tailwind
colors: {
custom: {
50: '#b1a1f2',
500: '#8a7beb',
950: '#000000',
},
}SCSS
$custom: #8a7beb; $custom-light: #b1a1f2; $custom-dark: #000000;
JSON
{
"hex": "#8a7beb",
"rgb": {
"r": 138,
"g": 123,
"b": 235
},
"hsl": {
"h": 248.036,
"s": 73.684,
"l": 70.196
},
"oklch": {
"l": 0.64769,
"c": 0.16264,
"h": 287.1
},
"luminance": 0.25567
}Semantic roles & 50–950 ramp
primary
#8A7BEB
secondary
#ECF0D1
accent
#D610BB
background
#FBF9FE
surface
#F6F2FD
border
#D0CCD5
text
#110F17
muted
#807E85