#7957CF#7957CF
#7957CF is a mid, vivid violet. Relative luminance 0.154; OKLCH L 55.3% C 0.178 H 292.7°. Best body text is #FFFFFF at 5.15:1 contrast (WCAG AA passes).
Color values
| HEX | #7957CF |
|---|---|
| RGB | rgb(121, 87, 207) |
| HSL | hsl(257, 56%, 58%) |
| HSV | hsv(257, 58%, 81%) |
| CMYK | cmyk(41.5%, 58%, 0%, 18.8%) |
| CIE-LAB | lab(46.16, 41.62, -57.53) |
| CIE-LCH | lch(46.16, 71.00, 305.89°) |
| OKLab | oklab(55.33% 0.0686 -0.1638) |
| OKLCH | oklch(55.33% 0.178 292.7) |
| XYZ | xyz(22.5528, 15.3857, 60.8009) |
| Luminance | 0.1539 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Indigo
#6D5ACF
ΔE00 2.52
Slate Blue
#6A5ACD
ΔE00 3.06
Purpley
#8756E4
ΔE00 3.78
Dark Periwinkle
#665FD1
ΔE00 4.59
Iris
#6258C4
ΔE00 4.60
Royal Purple
#7851A9
ΔE00 6.66
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7957CF #ADCF57
analogous
#5771CF #7957CF #B557CF
triadic
#7957CF #CF7957 #57CF79
tetradic
#7957CF #CF5771 #ADCF57 #57CFB5
square
#7957CF #CF5771 #ADCF57 #57CFB5
split-complementary
#7957CF #CFB557 #71CF57
monochromatic
#412685 #5834B5 #7957CF #9F87DD #C5B6EA
Accessibility & contrast
On white
5.15
#7957CF on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.08
#7957CF on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7957CF
5.15:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7957CF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7957CF | 1.00 | 5.15 | 4.08 | 5.15 |
| #FFFFFF | 5.15 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.08 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.15 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#056FD3
Deuteranopia (green-blind)
#196BCC
Tritanopia (blue-blind)
#62718B
Achromatopsia (no color)
#6D6D6D
Design tokens & code
CSS
--color: #7957cf; /* rgb */ color: rgb(121, 87, 207); /* oklch */ color: oklch(55.3% 0.178 292.7);
Tailwind
colors: {
custom: {
50: '#a588de',
500: '#7957cf',
950: '#000000',
},
}SCSS
$custom: #7957cf; $custom-light: #a588de; $custom-dark: #000000;
JSON
{
"hex": "#7957cf",
"rgb": {
"r": 121,
"g": 87,
"b": 207
},
"hsl": {
"h": 257,
"s": 55.556,
"l": 57.647
},
"oklch": {
"l": 0.55334,
"c": 0.17758,
"h": 292.7
},
"luminance": 0.15386
}Semantic roles & 50–950 ramp
primary
#7957CF
secondary
#CBD9A9
accent
#DF49B4
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100B15
muted
#7F7C83