#7956CF#7956CF
#7956CF is a mid, vivid violet. Relative luminance 0.152; OKLCH L 55.2% C 0.179 H 292.9°. Best body text is #FFFFFF at 5.19:1 contrast (WCAG AA passes).
Color values
| HEX | #7956CF |
|---|---|
| RGB | rgb(121, 86, 207) |
| HSL | hsl(257, 56%, 57%) |
| HSV | hsv(257, 58%, 81%) |
| CMYK | cmyk(41.5%, 58.5%, 0%, 18.8%) |
| CIE-LAB | lab(45.94, 42.19, -57.88) |
| CIE-LCH | lch(45.94, 71.62, 306.09°) |
| OKLab | oklab(55.18% 0.0697 -0.1648) |
| OKLCH | oklch(55.18% 0.179 292.9) |
| XYZ | xyz(22.4724, 15.2249, 60.7741) |
| Luminance | 0.1523 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Indigo
#6D5ACF
ΔE00 2.64
Slate Blue
#6A5ACD
ΔE00 3.16
Purpley
#8756E4
ΔE00 3.80
Iris
#6258C4
ΔE00 4.65
Dark Periwinkle
#665FD1
ΔE00 4.76
Royal Purple
#7851A9
ΔE00 6.58
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7956CF #ACCF56
analogous
#5670CF #7956CF #B556CF
triadic
#7956CF #CF7956 #56CF79
tetradic
#7956CF #CF5670 #ACCF56 #56CFB5
square
#7956CF #CF5670 #ACCF56 #56CFB5
split-complementary
#7956CF #CFB556 #70CF56
monochromatic
#412685 #5933B5 #7956CF #9F86DD #C5B5EA
Accessibility & contrast
On white
5.19
#7956CF on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.05
#7956CF on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7956CF
5.19:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7956CF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7956CF | 1.00 | 5.19 | 4.05 | 5.19 |
| #FFFFFF | 5.19 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.05 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.19 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#006ED3
Deuteranopia (green-blind)
#166BCC
Tritanopia (blue-blind)
#62718A
Achromatopsia (no color)
#6D6D6D
Design tokens & code
CSS
--color: #7956cf; /* rgb */ color: rgb(121, 86, 207); /* oklch */ color: oklch(55.2% 0.179 292.9);
Tailwind
colors: {
custom: {
50: '#a587de',
500: '#7956cf',
950: '#000000',
},
}SCSS
$custom: #7956cf; $custom-light: #a587de; $custom-dark: #000000;
JSON
{
"hex": "#7956cf",
"rgb": {
"r": 121,
"g": 86,
"b": 207
},
"hsl": {
"h": 257.355,
"s": 55.76,
"l": 57.451
},
"oklch": {
"l": 0.55175,
"c": 0.17898,
"h": 292.9
},
"luminance": 0.15226
}Semantic roles & 50–950 ramp
primary
#7956CF
secondary
#CBD9A8
accent
#DF49B4
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83