#7B56CA#7B56CA
#7B56CA is a mid, vivid violet. Relative luminance 0.151; OKLCH L 55.0% C 0.173 H 294.8°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).
Color values
| HEX | #7B56CA |
|---|---|
| RGB | rgb(123, 86, 202) |
| HSL | hsl(259, 52%, 56%) |
| HSV | hsv(259, 57%, 79%) |
| CMYK | cmyk(39.1%, 57.4%, 0%, 20.8%) |
| CIE-LAB | lab(45.81, 41.28, -55.20) |
| CIE-LCH | lch(45.81, 68.92, 306.79°) |
| OKLab | oklab(55.02% 0.0724 -0.1569) |
| OKLCH | oklch(55.02% 0.173 294.8) |
| XYZ | xyz(22.1540, 15.1303, 57.6189) |
| Luminance | 0.1513 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Indigo
#6D5ACF
ΔE00 3.23
Slate Blue
#6A5ACD
ΔE00 3.69
Purpley
#8756E4
ΔE00 4.22
Iris
#6258C4
ΔE00 4.96
Dark Periwinkle
#665FD1
ΔE00 5.33
Royal Purple
#7851A9
ΔE00 5.76
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7B56CA #A5CA56
analogous
#566BCA #7B56CA #B556CA
triadic
#7B56CA #CA7B56 #56CA7B
tetradic
#7B56CA #CA566B #A5CA56 #56CAB5
square
#7B56CA #CA566B #A5CA56 #56CAB5
split-complementary
#7B56CA #CAB556 #6BCA56
monochromatic
#43287E #5C36AD #7B56CA #9F85D9 #C4B3E7
Accessibility & contrast
On white
5.22
#7B56CA on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.03
#7B56CA on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7B56CA
5.22:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7B56CA | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7B56CA | 1.00 | 5.22 | 4.03 | 5.22 |
| #FFFFFF | 5.22 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.03 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.22 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#146ECE
Deuteranopia (green-blind)
#256BC7
Tritanopia (blue-blind)
#676F88
Achromatopsia (no color)
#6C6C6C
Design tokens & code
CSS
--color: #7b56ca; /* rgb */ color: rgb(123, 86, 202); /* oklch */ color: oklch(55.0% 0.173 294.8);
Tailwind
colors: {
custom: {
50: '#a687db',
500: '#7b56ca',
950: '#000000',
},
}SCSS
$custom: #7b56ca; $custom-light: #a687db; $custom-dark: #000000;
JSON
{
"hex": "#7b56ca",
"rgb": {
"r": 123,
"g": 86,
"b": 202
},
"hsl": {
"h": 259.138,
"s": 52.252,
"l": 56.471
},
"oklch": {
"l": 0.55023,
"c": 0.1728,
"h": 294.8
},
"luminance": 0.15131
}Semantic roles & 50–950 ramp
primary
#7B56CA
secondary
#C7D6A6
accent
#DC4CAE
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83