#7B5CE4#7B5CE4
#7B5CE4 is a mid, vivid violet. Relative luminance 0.175; OKLCH L 57.8% C 0.197 H 289.2°. Best body text is #FFFFFF at 4.67:1 contrast (WCAG AA passes).
Color values
| HEX | #7B5CE4 |
|---|---|
| RGB | rgb(123, 92, 228) |
| HSL | hsl(254, 72%, 63%) |
| HSV | hsv(254, 60%, 89%) |
| CMYK | cmyk(46.1%, 59.6%, 0%, 10.6%) |
| CIE-LAB | lab(48.84, 45.07, -65.14) |
| CIE-LCH | lch(48.84, 79.21, 304.68°) |
| OKLab | oklab(57.8% 0.0649 -0.1861) |
| OKLCH | oklch(57.8% 0.197 289.2) |
| XYZ | xyz(25.9951, 17.4657, 75.3853) |
| Luminance | 0.1747 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 2.61
Mediumslateblue
#7B68EE
ΔE00 3.91
Light Indigo
#6D5ACF
ΔE00 3.92
Slate Blue
#6A5ACD
ΔE00 4.47
Dark Periwinkle
#665FD1
ΔE00 4.72
Iris
#6258C4
ΔE00 6.45
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7B5CE4 #C5E45C
analogous
#5C81E4 #7B5CE4 #BF5CE4
triadic
#7B5CE4 #E47B5C #5CE47B
tetradic
#7B5CE4 #E45C81 #C5E45C #5CE4BF
square
#7B5CE4 #E45C81 #C5E45C #5CE4BF
split-complementary
#7B5CE4 #E4BF5C #81E45C
monochromatic
#3C1CAA #5027DB #7B5CE4 #A691ED #D0C5F5
Accessibility & contrast
On white
4.67
#7B5CE4 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.49
#7B5CE4 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7B5CE4
4.67:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7B5CE4 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7B5CE4 | 1.00 | 4.67 | 4.49 | 4.67 |
| #FFFFFF | 4.67 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.49 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.67 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0077E8
Deuteranopia (green-blind)
#0071E1
Tritanopia (blue-blind)
#5A7B97
Achromatopsia (no color)
#747474
Design tokens & code
CSS
--color: #7b5ce4; /* rgb */ color: rgb(123, 92, 228); /* oklch */ color: oklch(57.8% 0.197 289.2);
Tailwind
colors: {
custom: {
50: '#a88bed',
500: '#7b5ce4',
950: '#000000',
},
}SCSS
$custom: #7b5ce4; $custom-light: #a88bed; $custom-dark: #000000;
JSON
{
"hex": "#7b5ce4",
"rgb": {
"r": 123,
"g": 92,
"b": 228
},
"hsl": {
"h": 253.676,
"s": 71.579,
"l": 62.745
},
"oklch": {
"l": 0.57796,
"c": 0.19711,
"h": 289.2
},
"luminance": 0.17467
}Semantic roles & 50–950 ramp
primary
#7B5CE4
secondary
#DBE7B5
accent
#D412A7
background
#FAF8FE
surface
#F4F0FD
border
#CECBD5
text
#100C16
muted
#7F7D84