#7956F2#7956F2
#7956F2 is a mid, highly saturated violet. Relative luminance 0.171; OKLCH L 57.8% C 0.222 H 287.7°. Best body text is #FFFFFF at 4.74:1 contrast (WCAG AA passes).
Color values
| HEX | #7956F2 |
|---|---|
| RGB | rgb(121, 86, 242) |
| HSL | hsl(253, 86%, 64%) |
| HSV | hsv(253, 64%, 95%) |
| CMYK | cmyk(50%, 64.5%, 0%, 5.1%) |
| CIE-LAB | lab(48.42, 51.95, -73.70) |
| CIE-LCH | lch(48.42, 90.17, 305.18°) |
| OKLab | oklab(57.77% 0.0673 -0.2113) |
| OKLCH | oklch(57.77% 0.222 287.7) |
| XYZ | xyz(27.2353, 17.1301, 85.8586) |
| Luminance | 0.1713 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 3.07
Mediumslateblue
#7B68EE
ΔE00 4.94
Light Indigo
#6D5ACF
ΔE00 5.22
Slate Blue
#6A5ACD
ΔE00 5.70
Dark Periwinkle
#665FD1
ΔE00 6.00
Purpleish Blue
#6140EF
ΔE00 6.54
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7956F2 #CFF256
analogous
#5681F2 #7956F2 #C756F2
triadic
#7956F2 #F27956 #56F279
tetradic
#7956F2 #F25681 #CFF256 #56F2C7
square
#7956F2 #F25681 #CFF256 #56F2C7
split-complementary
#7956F2 #F2C756 #81F256
monochromatic
#360FBF #4C1DEE #7956F2 #A68FF6 #D3C8FB
Accessibility & contrast
On white
4.74
#7956F2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.43
#7956F2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7956F2
4.74:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7956F2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7956F2 | 1.00 | 4.74 | 4.43 | 4.74 |
| #FFFFFF | 4.74 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.43 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.74 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0077F7
Deuteranopia (green-blind)
#006FEF
Tritanopia (blue-blind)
#4D7C9D
Achromatopsia (no color)
#737373
Design tokens & code
CSS
--color: #7956f2; /* rgb */ color: rgb(121, 86, 242); /* oklch */ color: oklch(57.8% 0.222 287.7);
Tailwind
colors: {
custom: {
50: '#a988f7',
500: '#7956f2',
950: '#000000',
},
}SCSS
$custom: #7956f2; $custom-light: #a988f7; $custom-dark: #000000;
JSON
{
"hex": "#7956f2",
"rgb": {
"r": 121,
"g": 86,
"b": 242
},
"hsl": {
"h": 253.462,
"s": 85.714,
"l": 64.314
},
"oklch": {
"l": 0.57765,
"c": 0.22181,
"h": 287.7
},
"luminance": 0.17131
}Semantic roles & 50–950 ramp
primary
#7956F2
secondary
#E1EDB7
accent
#E203B0
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110B17
muted
#807C85