#8A7DF2#8A7DF2
#8A7DF2 is a light, vivid blue. Relative luminance 0.265; OKLCH L 65.5% C 0.169 H 285.8°. Best body text is #000000 at 6.30:1 contrast (WCAG AA passes).
Color values
| HEX | #8A7DF2 |
|---|---|
| RGB | rgb(138, 125, 242) |
| HSL | hsl(247, 82%, 72%) |
| HSV | hsv(247, 48%, 95%) |
| CMYK | cmyk(43%, 48.3%, 0%, 5.1%) |
| CIE-LAB | lab(58.49, 33.29, -57.38) |
| CIE-LCH | lch(58.49, 66.34, 300.12°) |
| OKLab | oklab(65.55% 0.0461 -0.1628) |
| OKLCH | oklch(65.55% 0.169 285.8) |
| XYZ | xyz(33.8373, 26.4800, 87.3154) |
| Luminance | 0.2648 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Periwinkle (survey)
#8E82FE
ΔE00 2.15
Lavender Blue
#8B88F8
ΔE00 3.37
Perrywinkle
#8F8CE7
ΔE00 4.96
Cornflower
#6A79F7
ΔE00 5.67
Mediumpurple
#9370DB
ΔE00 5.99
Mediumslateblue
#7B68EE
ΔE00 6.49
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A7DF2 #E5F27D
analogous
#7DABF2 #8A7DF2 #C57DF2
triadic
#8A7DF2 #F28A7D #7DF28A
tetradic
#8A7DF2 #F27DAB #E5F27D #7DF2C5
square
#8A7DF2 #F27DAB #E5F27D #7DF2C5
split-complementary
#8A7DF2 #F2C57D #ABF27D
monochromatic
#2C16DE #5845EC #8A7DF2 #BCB5F8 #E6E3FC
Accessibility & contrast
On white
3.34
#8A7DF2 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.30
#8A7DF2 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #8A7DF2
6.30:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A7DF2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##8A7DF2 | 1.00 | 3.34 | 6.30 | 6.30 |
| #FFFFFF | 3.34 | 1.00 | 21.00 | 21.00 |
| #000000 | 6.30 | 21.00 | 1.00 | 1.00 |
| ##000000 | 6.30 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#4C90F6
Deuteranopia (green-blind)
#4989EF
Tritanopia (blue-blind)
#6A95AC
Achromatopsia (no color)
#8D8D8D
Design tokens & code
CSS
--color: #8a7df2; /* rgb */ color: rgb(138, 125, 242); /* oklch */ color: oklch(65.5% 0.169 285.8);
Tailwind
colors: {
custom: {
50: '#b1a3f7',
500: '#8a7df2',
950: '#000000',
},
}SCSS
$custom: #8a7df2; $custom-light: #b1a3f7; $custom-dark: #000000;
JSON
{
"hex": "#8a7df2",
"rgb": {
"r": 138,
"g": 125,
"b": 242
},
"hsl": {
"h": 246.667,
"s": 81.818,
"l": 71.961
},
"oklch": {
"l": 0.65548,
"c": 0.16919,
"h": 285.8
},
"luminance": 0.26481
}Semantic roles & 50–950 ramp
primary
#8A7DF2
secondary
#F1F4D7
accent
#DE07C6
background
#FBFAFF
surface
#F6F3FF
border
#D0CDD7
text
#110F17
muted
#807F85