#7A56BB#7A56BB
#7A56BB is a mid, vivid violet. Relative luminance 0.144; OKLCH L 53.9% C 0.154 H 297.5°. Best body text is #FFFFFF at 5.42:1 contrast (WCAG AA passes).
Color values
| HEX | #7A56BB |
|---|---|
| RGB | rgb(122, 86, 187) |
| HSL | hsl(261, 43%, 54%) |
| HSV | hsv(261, 54%, 73%) |
| CMYK | cmyk(34.8%, 54%, 0%, 26.7%) |
| CIE-LAB | lab(44.77, 37.02, -48.18) |
| CIE-LCH | lch(44.77, 60.76, 307.54°) |
| OKLab | oklab(53.93% 0.0708 -0.1363) |
| OKLCH | oklch(53.93% 0.154 297.5) |
| XYZ | xyz(20.3212, 14.3807, 48.7092) |
| Luminance | 0.1438 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple
#7851A9
ΔE00 3.43
Light Indigo
#6D5ACF
ΔE00 4.72
Slate Blue
#6A5ACD
ΔE00 4.93
Deep Lavender
#8D5EB7
ΔE00 5.14
Iris
#6258C4
ΔE00 5.45
Purpley
#8756E4
ΔE00 6.44
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7A56BB #97BB56
analogous
#5664BB #7A56BB #AC56BB
triadic
#7A56BB #BB7A56 #56BB7A
tetradic
#7A56BB #BB5664 #97BB56 #56BBAC
square
#7A56BB #BB5664 #97BB56 #56BBAC
split-complementary
#7A56BB #BBAC56 #64BB56
monochromatic
#422B6B #5D3D97 #7A56BB #9C82CD #BFADDE
Accessibility & contrast
On white
5.42
#7A56BB on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.88
#7A56BB on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7A56BB
5.42:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7A56BB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7A56BB | 1.00 | 5.42 | 3.88 | 5.42 |
| #FFFFFF | 5.42 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.88 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.42 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2D6ABE
Deuteranopia (green-blind)
#3769B9
Tritanopia (blue-blind)
#6B6A80
Achromatopsia (no color)
#6A6A6A
Design tokens & code
CSS
--color: #7a56bb; /* rgb */ color: rgb(122, 86, 187); /* oklch */ color: oklch(53.9% 0.154 297.5);
Tailwind
colors: {
custom: {
50: '#a487d0',
500: '#7a56bb',
950: '#000000',
},
}SCSS
$custom: #7a56bb; $custom-light: #a487d0; $custom-dark: #000000;
JSON
{
"hex": "#7a56bb",
"rgb": {
"r": 122,
"g": 86,
"b": 187
},
"hsl": {
"h": 261.386,
"s": 42.616,
"l": 53.529
},
"oklch": {
"l": 0.53933,
"c": 0.1536,
"h": 297.5
},
"luminance": 0.14381
}Semantic roles & 50–950 ramp
primary
#7A56BB
secondary
#BDCCA1
accent
#D255A6
background
#FAF8FC
surface
#F4EFF9
border
#CECAD2
text
#0F0B14
muted
#7F7C82