#7A56F2#7A56F2
#7A56F2 is a mid, highly saturated violet. Relative luminance 0.172; OKLCH L 57.9% C 0.222 H 288.0°. Best body text is #FFFFFF at 4.73:1 contrast (WCAG AA passes).
Color values
| HEX | #7A56F2 |
|---|---|
| RGB | rgb(122, 86, 242) |
| HSL | hsl(254, 86%, 64%) |
| HSV | hsv(254, 64%, 95%) |
| CMYK | cmyk(49.6%, 64.5%, 0%, 5.1%) |
| CIE-LAB | lab(48.51, 52.12, -73.55) |
| CIE-LCH | lch(48.51, 90.14, 305.33°) |
| OKLab | oklab(57.85% 0.0686 -0.2109) |
| OKLCH | oklch(57.85% 0.222 288) |
| XYZ | xyz(27.3762, 17.2027, 85.8652) |
| Luminance | 0.1720 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 2.94
Mediumslateblue
#7B68EE
ΔE00 4.92
Light Indigo
#6D5ACF
ΔE00 5.28
Slate Blue
#6A5ACD
ΔE00 5.78
Dark Periwinkle
#665FD1
ΔE00 6.09
Purpleish Blue
#6140EF
ΔE00 6.63
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7A56F2 #CEF256
analogous
#5680F2 #7A56F2 #C856F2
triadic
#7A56F2 #F27A56 #56F27A
tetradic
#7A56F2 #F25680 #CEF256 #56F2C8
square
#7A56F2 #F25680 #CEF256 #56F2C8
split-complementary
#7A56F2 #F2C856 #80F256
monochromatic
#370FBF #4D1DEE #7A56F2 #A78FF6 #D3C8FB
Accessibility & contrast
On white
4.73
#7A56F2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.44
#7A56F2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7A56F2
4.73:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7A56F2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7A56F2 | 1.00 | 4.73 | 4.44 | 4.73 |
| #FFFFFF | 4.73 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.44 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.73 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0077F7
Deuteranopia (green-blind)
#006FEF
Tritanopia (blue-blind)
#4F7C9D
Achromatopsia (no color)
#737373
Design tokens & code
CSS
--color: #7a56f2; /* rgb */ color: rgb(122, 86, 242); /* oklch */ color: oklch(57.9% 0.222 288.0);
Tailwind
colors: {
custom: {
50: '#aa88f7',
500: '#7a56f2',
950: '#000000',
},
}SCSS
$custom: #7a56f2; $custom-light: #aa88f7; $custom-dark: #000000;
JSON
{
"hex": "#7a56f2",
"rgb": {
"r": 122,
"g": 86,
"b": 242
},
"hsl": {
"h": 253.846,
"s": 85.714,
"l": 64.314
},
"oklch": {
"l": 0.57853,
"c": 0.22176,
"h": 288
},
"luminance": 0.17204
}Semantic roles & 50–950 ramp
primary
#7A56F2
secondary
#E0EDB7
accent
#E203AF
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110B17
muted
#807C85