#8A7BF2#8A7BF2
#8A7BF2 is a light, vivid blue. Relative luminance 0.260; OKLCH L 65.2% C 0.172 H 286.4°. Best body text is #000000 at 6.20:1 contrast (WCAG AA passes).
Color values
| HEX | #8A7BF2 |
|---|---|
| RGB | rgb(138, 123, 242) |
| HSL | hsl(248, 82%, 72%) |
| HSV | hsv(248, 49%, 95%) |
| CMYK | cmyk(43%, 49.2%, 0%, 5.1%) |
| CIE-LAB | lab(58.02, 34.45, -58.14) |
| CIE-LCH | lch(58.02, 67.58, 300.65°) |
| OKLab | oklab(65.19% 0.0485 -0.165) |
| OKLCH | oklch(65.19% 0.172 286.4) |
| XYZ | xyz(33.5866, 25.9787, 87.2319) |
| Luminance | 0.2598 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Periwinkle (survey)
#8E82FE
ΔE00 2.55
Lavender Blue
#8B88F8
ΔE00 3.96
Perrywinkle
#8F8CE7
ΔE00 5.51
Mediumpurple
#9370DB
ΔE00 5.57
Cornflower
#6A79F7
ΔE00 5.71
Mediumslateblue
#7B68EE
ΔE00 5.96
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A7BF2 #E3F27B
analogous
#7BA8F2 #8A7BF2 #C67BF2
triadic
#8A7BF2 #F28A7B #7BF28A
tetradic
#8A7BF2 #F27BA8 #E3F27B #7BF2C6
square
#8A7BF2 #F27BA8 #E3F27B #7BF2C6
split-complementary
#8A7BF2 #F2C67B #A8F27B
monochromatic
#2F16DD #5943ED #8A7BF2 #BBB3F7 #E6E3FC
Accessibility & contrast
On white
3.39
#8A7BF2 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.20
#8A7BF2 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #8A7BF2
6.20:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A7BF2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##8A7BF2 | 1.00 | 3.39 | 6.20 | 6.20 |
| #FFFFFF | 3.39 | 1.00 | 21.00 | 21.00 |
| #000000 | 6.20 | 21.00 | 1.00 | 1.00 |
| ##000000 | 6.20 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#488FF6
Deuteranopia (green-blind)
#4688EF
Tritanopia (blue-blind)
#6A94AB
Achromatopsia (no color)
#8B8B8B
Design tokens & code
CSS
--color: #8a7bf2; /* rgb */ color: rgb(138, 123, 242); /* oklch */ color: oklch(65.2% 0.172 286.4);
Tailwind
colors: {
custom: {
50: '#b1a1f7',
500: '#8a7bf2',
950: '#000000',
},
}SCSS
$custom: #8a7bf2; $custom-light: #b1a1f7; $custom-dark: #000000;
JSON
{
"hex": "#8a7bf2",
"rgb": {
"r": 138,
"g": 123,
"b": 242
},
"hsl": {
"h": 247.563,
"s": 82.069,
"l": 71.569
},
"oklch": {
"l": 0.65192,
"c": 0.17198,
"h": 286.4
},
"luminance": 0.2598
}Semantic roles & 50–950 ramp
primary
#8A7BF2
secondary
#F0F4D5
accent
#DE07C3
background
#FBF9FF
surface
#F6F2FF
border
#D0CCD7
text
#110F17
muted
#807E85