#7956F5#7956F5
#7956F5 is a mid, highly saturated violet. Relative luminance 0.173; OKLCH L 58.0% C 0.225 H 287.3°. Best body text is #FFFFFF at 4.71:1 contrast (WCAG AA passes).
Color values
| HEX | #7956F5 |
|---|---|
| RGB | rgb(121, 86, 245) |
| HSL | hsl(253, 89%, 65%) |
| HSV | hsv(253, 65%, 96%) |
| CMYK | cmyk(50.6%, 64.9%, 0%, 3.9%) |
| CIE-LAB | lab(48.65, 52.79, -75.01) |
| CIE-LCH | lch(48.65, 91.72, 305.14°) |
| OKLab | oklab(58% 0.067 -0.2152) |
| OKLCH | oklch(58% 0.225 287.3) |
| XYZ | xyz(27.6895, 17.3118, 88.2510) |
| Luminance | 0.1731 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 3.30
Mediumslateblue
#7B68EE
ΔE00 4.90
Light Indigo
#6D5ACF
ΔE00 5.56
Slate Blue
#6A5ACD
ΔE00 6.03
Dark Periwinkle
#665FD1
ΔE00 6.25
Purpleish Blue
#6140EF
ΔE00 6.66
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7956F5 #D2F556
analogous
#5682F5 #7956F5 #C956F5
triadic
#7956F5 #F57956 #56F579
tetradic
#7956F5 #F55682 #D2F556 #56F5C9
square
#7956F5 #F55682 #D2F556 #56F5C9
split-complementary
#7956F5 #F5C956 #82F556
monochromatic
#340CC5 #4B1CF2 #7956F5 #A790F8 #D5CAFC
Accessibility & contrast
On white
4.71
#7956F5 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.46
#7956F5 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7956F5
4.71:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7956F5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7956F5 | 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)
#0077FA
Deuteranopia (green-blind)
#006FF2
Tritanopia (blue-blind)
#4B7D9E
Achromatopsia (no color)
#747474
Design tokens & code
CSS
--color: #7956f5; /* rgb */ color: rgb(121, 86, 245); /* oklch */ color: oklch(58.0% 0.225 287.3);
Tailwind
colors: {
custom: {
50: '#a988fa',
500: '#7956f5',
950: '#000000',
},
}SCSS
$custom: #7956f5; $custom-light: #a988fa; $custom-dark: #000000;
JSON
{
"hex": "#7956f5",
"rgb": {
"r": 121,
"g": 86,
"b": 245
},
"hsl": {
"h": 253.208,
"s": 88.827,
"l": 64.902
},
"oklch": {
"l": 0.58,
"c": 0.22537,
"h": 287.3
},
"luminance": 0.17313
}Semantic roles & 50–950 ramp
primary
#7956F5
secondary
#E3EFB8
accent
#E500B3
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110B17
muted
#807C85