#8A7CD2#8A7CD2
#8A7CD2 is a light, vivid blue. Relative luminance 0.245; OKLCH L 63.5% C 0.127 H 289.8°. Best body text is #000000 at 5.89:1 contrast (WCAG AA passes).
Color values
| HEX | #8A7CD2 |
|---|---|
| RGB | rgb(138, 124, 210) |
| HSL | hsl(250, 49%, 65%) |
| HSV | hsv(250, 41%, 82%) |
| CMYK | cmyk(34.3%, 41%, 0%, 17.6%) |
| CIE-LAB | lab(56.56, 25.09, -42.56) |
| CIE-LCH | lch(56.56, 49.40, 300.52°) |
| OKLab | oklab(63.54% 0.0429 -0.1195) |
| OKLCH | oklch(63.54% 0.127 289.8) |
| XYZ | xyz(29.3187, 24.4710, 64.1389) |
| Luminance | 0.2447 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Mediumpurple
#9370DB
ΔE00 4.75
Perrywinkle
#8F8CE7
ΔE00 5.65
Periwinkle (survey)
#8E82FE
ΔE00 6.82
Lavender Blue
#8B88F8
ΔE00 6.82
Deep Lilac
#966EBD
ΔE00 7.28
Mediumslateblue
#7B68EE
ΔE00 8.10
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A7CD2 #C4D27C
analogous
#7C99D2 #8A7CD2 #B57CD2
triadic
#8A7CD2 #D28A7C #7CD28A
tetradic
#8A7CD2 #D27C99 #C4D27C #7CD2B5
square
#8A7CD2 #D27C99 #C4D27C #7CD2B5
split-complementary
#8A7CD2 #D2B57C #99D27C
monochromatic
#47369D #614EC2 #8A7CD2 #B3AAE2 #DBD7F1
Accessibility & contrast
On white
3.56
#8A7CD2 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.89
#8A7CD2 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #8A7CD2
5.89:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A7CD2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##8A7CD2 | 1.00 | 3.56 | 5.89 | 5.89 |
| #FFFFFF | 3.56 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.89 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.89 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#6189D5
Deuteranopia (green-blind)
#6186D0
Tritanopia (blue-blind)
#788C9D
Achromatopsia (no color)
#888888
Design tokens & code
CSS
--color: #8a7cd2; /* rgb */ color: rgb(138, 124, 210); /* oklch */ color: oklch(63.5% 0.127 289.8);
Tailwind
colors: {
custom: {
50: '#afa2e0',
500: '#8a7cd2',
950: '#000000',
},
}SCSS
$custom: #8a7cd2; $custom-light: #afa2e0; $custom-dark: #000000;
JSON
{
"hex": "#8a7cd2",
"rgb": {
"r": 138,
"g": 124,
"b": 210
},
"hsl": {
"h": 249.767,
"s": 48.864,
"l": 65.49
},
"oklch": {
"l": 0.63537,
"c": 0.12693,
"h": 289.8
},
"luminance": 0.24472
}Semantic roles & 50–950 ramp
primary
#8A7CD2
secondary
#DFE3C6
accent
#BC29A4
background
#FAF9FD
surface
#F5F2FB
border
#CFCCD4
text
#110F15
muted
#807E83