#7B56F2#7B56F2
#7B56F2 is a mid, highly saturated violet. Relative luminance 0.173; OKLCH L 57.9% C 0.222 H 288.4°. Best body text is #FFFFFF at 4.71:1 contrast (WCAG AA passes).
Color values
| HEX | #7B56F2 |
|---|---|
| RGB | rgb(123, 86, 242) |
| HSL | hsl(254, 86%, 64%) |
| HSV | hsv(254, 64%, 95%) |
| CMYK | cmyk(49.2%, 64.5%, 0%, 5.1%) |
| CIE-LAB | lab(48.61, 52.30, -73.39) |
| CIE-LCH | lch(48.61, 90.12, 305.47°) |
| OKLab | oklab(57.94% 0.0699 -0.2104) |
| OKLCH | oklch(57.94% 0.222 288.4) |
| XYZ | xyz(27.5185, 17.2761, 85.8718) |
| Luminance | 0.1728 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 2.82
Mediumslateblue
#7B68EE
ΔE00 4.91
Light Indigo
#6D5ACF
ΔE00 5.36
Slate Blue
#6A5ACD
ΔE00 5.86
Dark Periwinkle
#665FD1
ΔE00 6.19
Purpleish Blue
#6140EF
ΔE00 6.73
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7B56F2 #CDF256
analogous
#567FF2 #7B56F2 #C956F2
triadic
#7B56F2 #F27B56 #56F27B
tetradic
#7B56F2 #F2567F #CDF256 #56F2C9
square
#7B56F2 #F2567F #CDF256 #56F2C9
split-complementary
#7B56F2 #F2C956 #7FF256
monochromatic
#380FBF #4F1DEE #7B56F2 #A78FF6 #D4C8FB
Accessibility & contrast
On white
4.71
#7B56F2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.46
#7B56F2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7B56F2
4.71:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7B56F2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7B56F2 | 1.00 | 4.71 | 4.46 | 4.71 |
| #FFFFFF | 4.71 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.46 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.71 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0077F7
Deuteranopia (green-blind)
#006FEF
Tritanopia (blue-blind)
#517C9D
Achromatopsia (no color)
#737373
Design tokens & code
CSS
--color: #7b56f2; /* rgb */ color: rgb(123, 86, 242); /* oklch */ color: oklch(57.9% 0.222 288.4);
Tailwind
colors: {
custom: {
50: '#aa88f7',
500: '#7b56f2',
950: '#000000',
},
}SCSS
$custom: #7b56f2; $custom-light: #aa88f7; $custom-dark: #000000;
JSON
{
"hex": "#7b56f2",
"rgb": {
"r": 123,
"g": 86,
"b": 242
},
"hsl": {
"h": 254.231,
"s": 85.714,
"l": 64.314
},
"oklch": {
"l": 0.57941,
"c": 0.22171,
"h": 288.4
},
"luminance": 0.17277
}Semantic roles & 50–950 ramp
primary
#7B56F2
secondary
#E0EDB7
accent
#E203AD
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110B17
muted
#807C85