#7958CB#7958CB
#7958CB is a mid, vivid violet. Relative luminance 0.154; OKLCH L 55.2% C 0.171 H 293.2°. Best body text is #FFFFFF at 5.16:1 contrast (WCAG AA passes).
Color values
| HEX | #7958CB |
|---|---|
| RGB | rgb(121, 88, 203) |
| HSL | hsl(257, 53%, 57%) |
| HSV | hsv(257, 57%, 80%) |
| CMYK | cmyk(40.4%, 56.7%, 0%, 20.4%) |
| CIE-LAB | lab(46.12, 39.95, -55.29) |
| CIE-LCH | lch(46.12, 68.21, 305.85°) |
| OKLab | oklab(55.22% 0.0674 -0.1572) |
| OKLCH | oklch(55.22% 0.171 293.2) |
| XYZ | xyz(22.1515, 15.3556, 58.2852) |
| Luminance | 0.1536 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Indigo
#6D5ACF
ΔE00 2.60
Slate Blue
#6A5ACD
ΔE00 3.08
Purpley
#8756E4
ΔE00 4.24
Iris
#6258C4
ΔE00 4.50
Dark Periwinkle
#665FD1
ΔE00 4.63
Royal Purple
#7851A9
ΔE00 6.15
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7958CB #AACB58
analogous
#5871CB #7958CB #B258CB
triadic
#7958CB #CB7958 #58CB79
tetradic
#7958CB #CB5871 #AACB58 #58CBB2
square
#7958CB #CB5871 #AACB58 #58CBB2
split-complementary
#7958CB #CBB258 #71CB58
monochromatic
#412881 #5937AF #7958CB #9E87DA #C4B5E8
Accessibility & contrast
On white
5.16
#7958CB on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.07
#7958CB on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7958CB
5.16:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7958CB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7958CB | 1.00 | 5.16 | 4.07 | 5.16 |
| #FFFFFF | 5.16 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.07 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.16 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#196FCF
Deuteranopia (green-blind)
#256BC8
Tritanopia (blue-blind)
#637189
Achromatopsia (no color)
#6D6D6D
Design tokens & code
CSS
--color: #7958cb; /* rgb */ color: rgb(121, 88, 203); /* oklch */ color: oklch(55.2% 0.171 293.2);
Tailwind
colors: {
custom: {
50: '#a588db',
500: '#7958cb',
950: '#000000',
},
}SCSS
$custom: #7958cb; $custom-light: #a588db; $custom-dark: #000000;
JSON
{
"hex": "#7958cb",
"rgb": {
"r": 121,
"g": 88,
"b": 203
},
"hsl": {
"h": 257.217,
"s": 52.511,
"l": 57.059
},
"oklch": {
"l": 0.55221,
"c": 0.17107,
"h": 293.2
},
"luminance": 0.15356
}Semantic roles & 50–950 ramp
primary
#7958CB
secondary
#C9D7A8
accent
#DC4CB3
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100B15
muted
#7F7C83