#7F5BE4#7F5BE4
#7F5BE4 is a mid, vivid violet. Relative luminance 0.176; OKLCH L 58.0% C 0.198 H 291.0°. Best body text is #FFFFFF at 4.65:1 contrast (WCAG AA passes).
Color values
| HEX | #7F5BE4 |
|---|---|
| RGB | rgb(127, 91, 228) |
| HSL | hsl(256, 72%, 63%) |
| HSV | hsv(256, 60%, 89%) |
| CMYK | cmyk(44.3%, 60.1%, 0%, 10.6%) |
| CIE-LAB | lab(49.00, 46.44, -64.86) |
| CIE-LCH | lch(49.00, 79.77, 305.60°) |
| OKLab | oklab(58% 0.0712 -0.1852) |
| OKLCH | oklch(58% 0.198 291) |
| XYZ | xyz(26.4932, 17.5947, 75.3840) |
| Luminance | 0.1760 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 1.88
Mediumslateblue
#7B68EE
ΔE00 4.23
Light Indigo
#6D5ACF
ΔE00 4.36
Slate Blue
#6A5ACD
ΔE00 4.95
Dark Periwinkle
#665FD1
ΔE00 5.37
Iris
#6258C4
ΔE00 6.92
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7F5BE4 #C0E45B
analogous
#5B7CE4 #7F5BE4 #C35BE4
triadic
#7F5BE4 #E47F5B #5BE47F
tetradic
#7F5BE4 #E45B7C #C0E45B #5BE4C3
square
#7F5BE4 #E45B7C #C0E45B #5BE4C3
split-complementary
#7F5BE4 #E4C35B #7CE45B
monochromatic
#411CA9 #5626DB #7F5BE4 #A890ED #D1C4F5
Accessibility & contrast
On white
4.65
#7F5BE4 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.52
#7F5BE4 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#FFFFFF on #7F5BE4
4.65:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7F5BE4 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7F5BE4 | 1.00 | 4.65 | 4.52 | 4.65 |
| #FFFFFF | 4.65 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.52 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.65 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0077E8
Deuteranopia (green-blind)
#0071E1
Tritanopia (blue-blind)
#617A97
Achromatopsia (no color)
#747474
Design tokens & code
CSS
--color: #7f5be4; /* rgb */ color: rgb(127, 91, 228); /* oklch */ color: oklch(58.0% 0.198 291.0);
Tailwind
colors: {
custom: {
50: '#ab8bed',
500: '#7f5be4',
950: '#000000',
},
}SCSS
$custom: #7f5be4; $custom-light: #ab8bed; $custom-dark: #000000;
JSON
{
"hex": "#7f5be4",
"rgb": {
"r": 127,
"g": 91,
"b": 228
},
"hsl": {
"h": 255.766,
"s": 71.728,
"l": 62.549
},
"oklch": {
"l": 0.58001,
"c": 0.19839,
"h": 291
},
"luminance": 0.17596
}Semantic roles & 50–950 ramp
primary
#7F5BE4
secondary
#D9E6B4
accent
#D412A1
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C16
muted
#807D84