#7F5CE6#7F5CE6
#7F5CE6 is a mid, vivid violet. Relative luminance 0.179; OKLCH L 58.3% C 0.200 H 290.5°. Best body text is #FFFFFF at 4.59:1 contrast (WCAG AA passes).
Color values
| HEX | #7F5CE6 |
|---|---|
| RGB | rgb(127, 92, 230) |
| HSL | hsl(255, 73%, 63%) |
| HSV | hsv(255, 60%, 90%) |
| CMYK | cmyk(44.8%, 60%, 0%, 9.8%) |
| CIE-LAB | lab(49.35, 46.43, -65.43) |
| CIE-LCH | lch(49.35, 80.23, 305.36°) |
| OKLab | oklab(58.3% 0.07 -0.1868) |
| OKLCH | oklch(58.3% 0.2 290.5) |
| XYZ | xyz(26.8585, 17.8785, 76.8833) |
| Luminance | 0.1788 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 2.13
Mediumslateblue
#7B68EE
ΔE00 3.84
Light Indigo
#6D5ACF
ΔE00 4.59
Slate Blue
#6A5ACD
ΔE00 5.16
Dark Periwinkle
#665FD1
ΔE00 5.44
Lighter Purple
#A55AF4
ΔE00 6.87
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7F5CE6 #C3E65C
analogous
#5C7EE6 #7F5CE6 #C45CE6
triadic
#7F5CE6 #E67F5C #5CE67F
tetradic
#7F5CE6 #E65C7E #C3E65C #5CE6C4
square
#7F5CE6 #E65C7E #C3E65C #5CE6C4
split-complementary
#7F5CE6 #E6C45C #7EE65C
monochromatic
#401BAD #5527DE #7F5CE6 #A991EE #D2C6F6
Accessibility & contrast
On white
4.59
#7F5CE6 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.58
#7F5CE6 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#FFFFFF on #7F5CE6
4.59:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7F5CE6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7F5CE6 | 1.00 | 4.59 | 4.58 | 4.59 |
| #FFFFFF | 4.59 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.58 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.59 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0078EA
Deuteranopia (green-blind)
#0072E3
Tritanopia (blue-blind)
#607B98
Achromatopsia (no color)
#757575
Design tokens & code
CSS
--color: #7f5ce6; /* rgb */ color: rgb(127, 92, 230); /* oklch */ color: oklch(58.3% 0.200 290.5);
Tailwind
colors: {
custom: {
50: '#ab8cef',
500: '#7f5ce6',
950: '#000000',
},
}SCSS
$custom: #7f5ce6; $custom-light: #ab8cef; $custom-dark: #000000;
JSON
{
"hex": "#7f5ce6",
"rgb": {
"r": 127,
"g": 92,
"b": 230
},
"hsl": {
"h": 255.217,
"s": 73.404,
"l": 63.137
},
"oklch": {
"l": 0.58299,
"c": 0.19953,
"h": 290.5
},
"luminance": 0.17879
}Semantic roles & 50–950 ramp
primary
#7F5CE6
secondary
#DBE8B6
accent
#D610A3
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C16
muted
#807D84