#7958DC#7958DC
#7958DC is a mid, vivid violet. Relative luminance 0.162; OKLCH L 56.4% C 0.193 H 290.4°. Best body text is #FFFFFF at 4.95:1 contrast (WCAG AA passes).
Color values
| HEX | #7958DC |
|---|---|
| RGB | rgb(121, 88, 220) |
| HSL | hsl(255, 65%, 60%) |
| HSV | hsv(255, 60%, 86%) |
| CMYK | cmyk(45%, 60%, 0%, 13.7%) |
| CIE-LAB | lab(47.25, 44.67, -63.19) |
| CIE-LCH | lch(47.25, 77.38, 305.26°) |
| OKLab | oklab(56.41% 0.067 -0.1804) |
| OKLCH | oklch(56.41% 0.193 290.4) |
| XYZ | xyz(24.2895, 16.2108, 69.5455) |
| Luminance | 0.1621 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 2.68
Light Indigo
#6D5ACF
ΔE00 2.86
Slate Blue
#6A5ACD
ΔE00 3.46
Dark Periwinkle
#665FD1
ΔE00 4.40
Iris
#6258C4
ΔE00 5.34
Mediumslateblue
#7B68EE
ΔE00 5.55
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7958DC #BBDC58
analogous
#5879DC #7958DC #BB58DC
triadic
#7958DC #DC7958 #58DC79
tetradic
#7958DC #DC5879 #BBDC58 #58DCBB
square
#7958DC #DC5879 #BBDC58 #58DCBB
split-complementary
#7958DC #DCBB58 #79DC58
monochromatic
#3E2099 #532BCC #7958DC #A28BE7 #CABDF1
Accessibility & contrast
On white
4.95
#7958DC on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.24
#7958DC on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7958DC
4.95:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7958DC | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7958DC | 1.00 | 4.95 | 4.24 | 4.95 |
| #FFFFFF | 4.95 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.24 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.95 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0072E0
Deuteranopia (green-blind)
#006DD9
Tritanopia (blue-blind)
#5B7692
Achromatopsia (no color)
#707070
Design tokens & code
CSS
--color: #7958dc; /* rgb */ color: rgb(121, 88, 220); /* oklch */ color: oklch(56.4% 0.193 290.4);
Tailwind
colors: {
custom: {
50: '#a688e8',
500: '#7958dc',
950: '#000000',
},
}SCSS
$custom: #7958dc; $custom-light: #a688e8; $custom-dark: #000000;
JSON
{
"hex": "#7958dc",
"rgb": {
"r": 121,
"g": 88,
"b": 220
},
"hsl": {
"h": 255,
"s": 65.347,
"l": 60.392
},
"oklch": {
"l": 0.56413,
"c": 0.1925,
"h": 290.4
},
"luminance": 0.16212
}Semantic roles & 50–950 ramp
primary
#7958DC
secondary
#D5E1AF
accent
#CD18A0
background
#FAF8FE
surface
#F4F0FD
border
#CECBD5
text
#100B16
muted
#7F7C84