#7957CB#7957CB
#7957CB is a mid, vivid violet. Relative luminance 0.152; OKLCH L 55.1% C 0.173 H 293.4°. Best body text is #FFFFFF at 5.20:1 contrast (WCAG AA passes).
Color values
| HEX | #7957CB |
|---|---|
| RGB | rgb(121, 87, 203) |
| HSL | hsl(258, 53%, 57%) |
| HSV | hsv(258, 57%, 80%) |
| CMYK | cmyk(40.4%, 57.1%, 0%, 20.4%) |
| CIE-LAB | lab(45.90, 40.52, -55.65) |
| CIE-LCH | lch(45.90, 68.84, 306.06°) |
| OKLab | oklab(55.06% 0.0686 -0.1583) |
| OKLCH | oklch(55.06% 0.173 293.4) |
| XYZ | xyz(22.0700, 15.1926, 58.2580) |
| Luminance | 0.1519 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Indigo
#6D5ACF
ΔE00 2.70
Slate Blue
#6A5ACD
ΔE00 3.17
Purpley
#8756E4
ΔE00 4.24
Iris
#6258C4
ΔE00 4.53
Dark Periwinkle
#665FD1
ΔE00 4.78
Royal Purple
#7851A9
ΔE00 6.06
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7957CB #A9CB57
analogous
#576FCB #7957CB #B357CB
triadic
#7957CB #CB7957 #57CB79
tetradic
#7957CB #CB576F #A9CB57 #57CBB3
square
#7957CB #CB576F #A9CB57 #57CBB3
split-complementary
#7957CB #CBB357 #6FCB57
monochromatic
#422880 #5936AF #7957CB #9E86D9 #C4B4E8
Accessibility & contrast
On white
5.20
#7957CB on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.04
#7957CB on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7957CB
5.20:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7957CB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7957CB | 1.00 | 5.20 | 4.04 | 5.20 |
| #FFFFFF | 5.20 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.04 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.20 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#146ECF
Deuteranopia (green-blind)
#226BC8
Tritanopia (blue-blind)
#637089
Achromatopsia (no color)
#6D6D6D
Design tokens & code
CSS
--color: #7957cb; /* rgb */ color: rgb(121, 87, 203); /* oklch */ color: oklch(55.1% 0.173 293.4);
Tailwind
colors: {
custom: {
50: '#a587db',
500: '#7957cb',
950: '#000000',
},
}SCSS
$custom: #7957cb; $custom-light: #a587db; $custom-dark: #000000;
JSON
{
"hex": "#7957cb",
"rgb": {
"r": 121,
"g": 87,
"b": 203
},
"hsl": {
"h": 257.586,
"s": 52.727,
"l": 56.863
},
"oklch": {
"l": 0.55059,
"c": 0.17251,
"h": 293.4
},
"luminance": 0.15193
}Semantic roles & 50–950 ramp
primary
#7957CB
secondary
#C9D7A7
accent
#DC4CB2
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100B15
muted
#7F7C83