#7B5CE3#7B5CE3
#7B5CE3 is a mid, vivid violet. Relative luminance 0.174; OKLCH L 57.7% C 0.196 H 289.4°. Best body text is #FFFFFF at 4.69:1 contrast (WCAG AA passes).
Color values
| HEX | #7B5CE3 |
|---|---|
| RGB | rgb(123, 92, 227) |
| HSL | hsl(254, 71%, 63%) |
| HSV | hsv(254, 59%, 89%) |
| CMYK | cmyk(45.8%, 59.5%, 0%, 11%) |
| CIE-LAB | lab(48.77, 44.78, -64.68) |
| CIE-LCH | lch(48.77, 78.67, 304.70°) |
| OKLab | oklab(57.72% 0.065 -0.1848) |
| OKLCH | oklch(57.72% 0.196 289.4) |
| XYZ | xyz(25.8567, 17.4103, 74.6563) |
| Luminance | 0.1741 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 2.60
Light Indigo
#6D5ACF
ΔE00 3.81
Mediumslateblue
#7B68EE
ΔE00 3.98
Slate Blue
#6A5ACD
ΔE00 4.37
Dark Periwinkle
#665FD1
ΔE00 4.65
Iris
#6258C4
ΔE00 6.35
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7B5CE3 #C4E35C
analogous
#5C80E3 #7B5CE3 #BF5CE3
triadic
#7B5CE3 #E37B5C #5CE37B
tetradic
#7B5CE3 #E35C80 #C4E35C #5CE3BF
square
#7B5CE3 #E35C80 #C4E35C #5CE3BF
split-complementary
#7B5CE3 #E3BF5C #80E35C
monochromatic
#3D1DA8 #5128DA #7B5CE3 #A590EC #D0C4F5
Accessibility & contrast
On white
4.69
#7B5CE3 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.48
#7B5CE3 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7B5CE3
4.69:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7B5CE3 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7B5CE3 | 1.00 | 4.69 | 4.48 | 4.69 |
| #FFFFFF | 4.69 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.48 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.69 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0077E7
Deuteranopia (green-blind)
#0071E0
Tritanopia (blue-blind)
#5A7B97
Achromatopsia (no color)
#747474
Design tokens & code
CSS
--color: #7b5ce3; /* rgb */ color: rgb(123, 92, 227); /* oklch */ color: oklch(57.7% 0.196 289.4);
Tailwind
colors: {
custom: {
50: '#a88bed',
500: '#7b5ce3',
950: '#000000',
},
}SCSS
$custom: #7b5ce3; $custom-light: #a88bed; $custom-dark: #000000;
JSON
{
"hex": "#7b5ce3",
"rgb": {
"r": 123,
"g": 92,
"b": 227
},
"hsl": {
"h": 253.778,
"s": 70.681,
"l": 62.549
},
"oklch": {
"l": 0.57724,
"c": 0.19587,
"h": 289.4
},
"luminance": 0.17411
}Semantic roles & 50–950 ramp
primary
#7B5CE3
secondary
#DBE6B5
accent
#D313A7
background
#FAF8FE
surface
#F4F0FD
border
#CECBD5
text
#100C16
muted
#7F7D84