#8A56E7#8A56E7
#8A56E7 is a mid, highly saturated violet. Relative luminance 0.178; OKLCH L 58.5% C 0.209 H 295.8°. Best body text is #FFFFFF at 4.60:1 contrast (WCAG AA passes).
Color values
| HEX | #8A56E7 |
|---|---|
| RGB | rgb(138, 86, 231) |
| HSL | hsl(262, 75%, 62%) |
| HSV | hsv(262, 63%, 91%) |
| CMYK | cmyk(40.3%, 62.8%, 0%, 9.4%) |
| CIE-LAB | lab(49.29, 52.19, -66.04) |
| CIE-LCH | lch(49.29, 84.17, 308.32°) |
| OKLab | oklab(58.53% 0.0908 -0.1883) |
| OKLCH | oklch(58.53% 0.209 295.8) |
| XYZ | xyz(28.2290, 17.8278, 77.5396) |
| Luminance | 0.1783 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 0.66
Lightish Purple
#A552E6
ΔE00 4.91
Lighter Purple
#A55AF4
ΔE00 5.34
Mediumslateblue
#7B68EE
ΔE00 5.78
Light Indigo
#6D5ACF
ΔE00 6.12
Slate Blue
#6A5ACD
ΔE00 6.73
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A56E7 #B3E756
analogous
#566BE7 #8A56E7 #D256E7
triadic
#8A56E7 #E78A56 #56E78A
tetradic
#8A56E7 #E7566B #B3E756 #56E7D2
square
#8A56E7 #E7566B #B3E756 #56E7D2
split-complementary
#8A56E7 #E7D256 #6BE756
monochromatic
#4D18AA #6520DF #8A56E7 #AF8CEF #D4C1F6
Accessibility & contrast
On white
4.60
#8A56E7 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.57
#8A56E7 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#FFFFFF on #8A56E7
4.60:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A56E7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A56E7 | 1.00 | 4.60 | 4.57 | 4.60 |
| #FFFFFF | 4.60 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.57 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.60 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0076EC
Deuteranopia (green-blind)
#0073E4
Tritanopia (blue-blind)
#727797
Achromatopsia (no color)
#757575
Design tokens & code
CSS
--color: #8a56e7; /* rgb */ color: rgb(138, 86, 231); /* oklch */ color: oklch(58.5% 0.209 295.8);
Tailwind
colors: {
custom: {
50: '#b288ef',
500: '#8a56e7',
950: '#000000',
},
}SCSS
$custom: #8a56e7; $custom-light: #b288ef; $custom-dark: #000000;
JSON
{
"hex": "#8a56e7",
"rgb": {
"r": 138,
"g": 86,
"b": 231
},
"hsl": {
"h": 261.517,
"s": 75.13,
"l": 62.157
},
"oklch": {
"l": 0.5853,
"c": 0.20906,
"h": 295.8
},
"luminance": 0.17828
}Semantic roles & 50–950 ramp
primary
#8A56E7
secondary
#D4E7B2
accent
#D70E8F
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#120C17
muted
#817D85