#7958CF#7958CF
#7958CF is a mid, vivid violet. Relative luminance 0.155; OKLCH L 55.5% C 0.176 H 292.5°. Best body text is #FFFFFF at 5.11:1 contrast (WCAG AA passes).
Color values
| HEX | #7958CF |
|---|---|
| RGB | rgb(121, 88, 207) |
| HSL | hsl(257, 55%, 58%) |
| HSV | hsv(257, 57%, 81%) |
| CMYK | cmyk(41.5%, 57.5%, 0%, 18.8%) |
| CIE-LAB | lab(46.38, 41.05, -57.17) |
| CIE-LCH | lch(46.38, 70.38, 305.68°) |
| OKLab | oklab(55.5% 0.0674 -0.1628) |
| OKLCH | oklch(55.5% 0.176 292.5) |
| XYZ | xyz(22.6343, 15.5488, 60.8280) |
| Luminance | 0.1555 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Indigo
#6D5ACF
ΔE00 2.42
Slate Blue
#6A5ACD
ΔE00 2.97
Purpley
#8756E4
ΔE00 3.77
Dark Periwinkle
#665FD1
ΔE00 4.43
Iris
#6258C4
ΔE00 4.58
Royal Purple
#7851A9
ΔE00 6.74
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7958CF #AECF58
analogous
#5872CF #7958CF #B558CF
triadic
#7958CF #CF7958 #58CF79
tetradic
#7958CF #CF5872 #AECF58 #58CFB5
square
#7958CF #CF5872 #AECF58 #58CFB5
split-complementary
#7958CF #CFB558 #72CF58
monochromatic
#412786 #5834B6 #7958CF #9F88DD #C5B7EA
Accessibility & contrast
On white
5.11
#7958CF on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.11
#7958CF on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7958CF
5.11:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7958CF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7958CF | 1.00 | 5.11 | 4.11 | 5.11 |
| #FFFFFF | 5.11 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.11 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.11 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0D70D3
Deuteranopia (green-blind)
#1D6CCC
Tritanopia (blue-blind)
#62728B
Achromatopsia (no color)
#6E6E6E
Design tokens & code
CSS
--color: #7958cf; /* rgb */ color: rgb(121, 88, 207); /* oklch */ color: oklch(55.5% 0.176 292.5);
Tailwind
colors: {
custom: {
50: '#a588de',
500: '#7958cf',
950: '#000000',
},
}SCSS
$custom: #7958cf; $custom-light: #a588de; $custom-dark: #000000;
JSON
{
"hex": "#7958cf",
"rgb": {
"r": 121,
"g": 88,
"b": 207
},
"hsl": {
"h": 256.639,
"s": 55.349,
"l": 57.843
},
"oklch": {
"l": 0.55495,
"c": 0.17616,
"h": 292.5
},
"luminance": 0.15549
}Semantic roles & 50–950 ramp
primary
#7958CF
secondary
#CCD9AA
accent
#DF49B5
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100B15
muted
#7F7C83