#7A56CD#7A56CD
#7A56CD is a mid, vivid violet. Relative luminance 0.152; OKLCH L 55.1% C 0.176 H 293.7°. Best body text is #FFFFFF at 5.20:1 contrast (WCAG AA passes).
Color values
| HEX | #7A56CD |
|---|---|
| RGB | rgb(122, 86, 205) |
| HSL | hsl(258, 54%, 57%) |
| HSV | hsv(258, 58%, 80%) |
| CMYK | cmyk(40.5%, 58%, 0%, 19.6%) |
| CIE-LAB | lab(45.91, 41.87, -56.78) |
| CIE-LCH | lch(45.91, 70.54, 306.40°) |
| OKLab | oklab(55.13% 0.0711 -0.1616) |
| OKLCH | oklch(55.13% 0.177 293.7) |
| XYZ | xyz(22.3703, 15.2004, 59.5011) |
| Luminance | 0.1520 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Indigo
#6D5ACF
ΔE00 2.89
Slate Blue
#6A5ACD
ΔE00 3.38
Purpley
#8756E4
ΔE00 3.92
Iris
#6258C4
ΔE00 4.79
Dark Periwinkle
#665FD1
ΔE00 5.00
Royal Purple
#7851A9
ΔE00 6.25
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7A56CD #A9CD56
analogous
#566ECD #7A56CD #B556CD
triadic
#7A56CD #CD7A56 #56CD7A
tetradic
#7A56CD #CD566E #A9CD56 #56CDB5
square
#7A56CD #CD566E #A9CD56 #56CDB5
split-complementary
#7A56CD #CDB556 #6ECD56
monochromatic
#422682 #5A34B1 #7A56CD #9F85DB #C4B4E9
Accessibility & contrast
On white
5.20
#7A56CD on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.04
#7A56CD on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7A56CD
5.20:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7A56CD | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7A56CD | 1.00 | 5.20 | 4.04 | 5.20 |
| #FFFFFF | 5.20 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.04 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.20 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#086ED1
Deuteranopia (green-blind)
#1D6BCA
Tritanopia (blue-blind)
#647089
Achromatopsia (no color)
#6D6D6D
Design tokens & code
CSS
--color: #7a56cd; /* rgb */ color: rgb(122, 86, 205); /* oklch */ color: oklch(55.1% 0.176 293.7);
Tailwind
colors: {
custom: {
50: '#a687dd',
500: '#7a56cd',
950: '#000000',
},
}SCSS
$custom: #7a56cd; $custom-light: #a687dd; $custom-dark: #000000;
JSON
{
"hex": "#7a56cd",
"rgb": {
"r": 122,
"g": 86,
"b": 205
},
"hsl": {
"h": 258.151,
"s": 54.338,
"l": 57.059
},
"oklch": {
"l": 0.55132,
"c": 0.1765,
"h": 293.7
},
"luminance": 0.15201
}Semantic roles & 50–950 ramp
primary
#7A56CD
secondary
#C9D8A7
accent
#DE4AB1
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83