#7B56CD#7B56CD
#7B56CD is a mid, vivid violet. Relative luminance 0.153; OKLCH L 55.2% C 0.177 H 294.2°. Best body text is #FFFFFF at 5.18:1 contrast (WCAG AA passes).
Color values
| HEX | #7B56CD |
|---|---|
| RGB | rgb(123, 86, 205) |
| HSL | hsl(259, 54%, 57%) |
| HSV | hsv(259, 58%, 80%) |
| CMYK | cmyk(40%, 58%, 0%, 19.6%) |
| CIE-LAB | lab(46.01, 42.09, -56.61) |
| CIE-LCH | lch(46.01, 70.54, 306.63°) |
| OKLab | oklab(55.23% 0.0724 -0.161) |
| OKLCH | oklch(55.23% 0.177 294.2) |
| XYZ | xyz(22.5127, 15.2738, 59.5078) |
| Luminance | 0.1527 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Indigo
#6D5ACF
ΔE00 3.06
Slate Blue
#6A5ACD
ΔE00 3.56
Purpley
#8756E4
ΔE00 3.83
Iris
#6258C4
ΔE00 4.97
Dark Periwinkle
#665FD1
ΔE00 5.16
Royal Purple
#7851A9
ΔE00 6.22
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7B56CD #A8CD56
analogous
#566DCD #7B56CD #B656CD
triadic
#7B56CD #CD7B56 #56CD7B
tetradic
#7B56CD #CD566D #A8CD56 #56CDB6
square
#7B56CD #CD566D #A8CD56 #56CDB6
split-complementary
#7B56CD #CDB656 #6DCD56
monochromatic
#432682 #5B34B1 #7B56CD #A085DB #C5B4E9
Accessibility & contrast
On white
5.18
#7B56CD on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.05
#7B56CD on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7B56CD
5.18:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7B56CD | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7B56CD | 1.00 | 5.18 | 4.05 | 5.18 |
| #FFFFFF | 5.18 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.05 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.18 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0A6ED1
Deuteranopia (green-blind)
#1F6BCA
Tritanopia (blue-blind)
#667089
Achromatopsia (no color)
#6D6D6D
Design tokens & code
CSS
--color: #7b56cd; /* rgb */ color: rgb(123, 86, 205); /* oklch */ color: oklch(55.2% 0.177 294.2);
Tailwind
colors: {
custom: {
50: '#a687dd',
500: '#7b56cd',
950: '#000000',
},
}SCSS
$custom: #7b56cd; $custom-light: #a687dd; $custom-dark: #000000;
JSON
{
"hex": "#7b56cd",
"rgb": {
"r": 123,
"g": 86,
"b": 205
},
"hsl": {
"h": 258.655,
"s": 54.338,
"l": 57.059
},
"oklch": {
"l": 0.55228,
"c": 0.17657,
"h": 294.2
},
"luminance": 0.15274
}Semantic roles & 50–950 ramp
primary
#7B56CD
secondary
#C9D8A7
accent
#DE4AB0
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83