#7956DC#7956DC
#7956DC is a mid, vivid violet. Relative luminance 0.159; OKLCH L 56.1% C 0.195 H 290.8°. Best body text is #FFFFFF at 5.03:1 contrast (WCAG AA passes).
Color values
| HEX | #7956DC |
|---|---|
| RGB | rgb(121, 86, 220) |
| HSL | hsl(256, 66%, 60%) |
| HSV | hsv(256, 61%, 86%) |
| CMYK | cmyk(45%, 60.9%, 0%, 13.7%) |
| CIE-LAB | lab(46.83, 45.79, -63.87) |
| CIE-LCH | lch(46.83, 78.59, 305.63°) |
| OKLab | oklab(56.1% 0.0692 -0.1825) |
| OKLCH | oklch(56.1% 0.195 290.8) |
| XYZ | xyz(24.1276, 15.8870, 69.4915) |
| Luminance | 0.1589 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 2.69
Light Indigo
#6D5ACF
ΔE00 3.00
Slate Blue
#6A5ACD
ΔE00 3.58
Dark Periwinkle
#665FD1
ΔE00 4.70
Iris
#6258C4
ΔE00 5.37
Mediumslateblue
#7B68EE
ΔE00 6.05
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7956DC #B9DC56
analogous
#5676DC #7956DC #BC56DC
triadic
#7956DC #DC7956 #56DC79
tetradic
#7956DC #DC5676 #B9DC56 #56DCBC
square
#7956DC #DC5676 #B9DC56 #56DCBC
split-complementary
#7956DC #DCBC56 #76DC56
monochromatic
#3F2098 #542ACB #7956DC #A189E6 #C9BBF1
Accessibility & contrast
On white
5.03
#7956DC on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.18
#7956DC on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7956DC
5.03:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7956DC | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7956DC | 1.00 | 5.03 | 4.18 | 5.03 |
| #FFFFFF | 5.03 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.18 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.03 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0071E0
Deuteranopia (green-blind)
#006CD9
Tritanopia (blue-blind)
#5B7591
Achromatopsia (no color)
#6F6F6F
Design tokens & code
CSS
--color: #7956dc; /* rgb */ color: rgb(121, 86, 220); /* oklch */ color: oklch(56.1% 0.195 290.8);
Tailwind
colors: {
custom: {
50: '#a687e8',
500: '#7956dc',
950: '#000000',
},
}SCSS
$custom: #7956dc; $custom-light: #a687e8; $custom-dark: #000000;
JSON
{
"hex": "#7956dc",
"rgb": {
"r": 121,
"g": 86,
"b": 220
},
"hsl": {
"h": 255.672,
"s": 65.686,
"l": 60
},
"oklch": {
"l": 0.56103,
"c": 0.19515,
"h": 290.8
},
"luminance": 0.15888
}Semantic roles & 50–950 ramp
primary
#7956DC
secondary
#D3E1AD
accent
#E93FBC
background
#FAF8FE
surface
#F4F0FD
border
#CECBD5
text
#100B16
muted
#7F7C84