#7F5BDF#7F5BDF
#7F5BDF is a mid, vivid violet. Relative luminance 0.173; OKLCH L 57.6% C 0.192 H 291.8°. Best body text is #FFFFFF at 4.70:1 contrast (WCAG AA passes).
Color values
| HEX | #7F5BDF |
|---|---|
| RGB | rgb(127, 91, 223) |
| HSL | hsl(256, 67%, 62%) |
| HSV | hsv(256, 59%, 87%) |
| CMYK | cmyk(43%, 59.2%, 0%, 12.5%) |
| CIE-LAB | lab(48.66, 45.06, -62.58) |
| CIE-LCH | lch(48.66, 77.12, 305.76°) |
| OKLab | oklab(57.65% 0.0714 -0.1785) |
| OKLCH | oklch(57.65% 0.192 291.8) |
| XYZ | xyz(25.8091, 17.3211, 71.7812) |
| Luminance | 0.1732 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 1.91
Light Indigo
#6D5ACF
ΔE00 3.95
Slate Blue
#6A5ACD
ΔE00 4.56
Mediumslateblue
#7B68EE
ΔE00 4.62
Dark Periwinkle
#665FD1
ΔE00 5.15
Iris
#6258C4
ΔE00 6.51
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7F5BDF #BBDF5B
analogous
#5B79DF #7F5BDF #C15BDF
triadic
#7F5BDF #DF7F5B #5BDF7F
tetradic
#7F5BDF #DF5B79 #BBDF5B #5BDFC1
square
#7F5BDF #DF5B79 #BBDF5B #5BDFC1
split-complementary
#7F5BDF #DFC15B #79DF5B
monochromatic
#421FA0 #5829D4 #7F5BDF #A78EE9 #CFC1F3
Accessibility & contrast
On white
4.70
#7F5BDF on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.46
#7F5BDF on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7F5BDF
4.70:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7F5BDF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7F5BDF | 1.00 | 4.70 | 4.46 | 4.70 |
| #FFFFFF | 4.70 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.46 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.70 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0076E3
Deuteranopia (green-blind)
#0071DC
Tritanopia (blue-blind)
#647994
Achromatopsia (no color)
#747474
Design tokens & code
CSS
--color: #7f5bdf; /* rgb */ color: rgb(127, 91, 223); /* oklch */ color: oklch(57.6% 0.192 291.8);
Tailwind
colors: {
custom: {
50: '#aa8bea',
500: '#7f5bdf',
950: '#000000',
},
}SCSS
$custom: #7f5bdf; $custom-light: #aa8bea; $custom-dark: #000000;
JSON
{
"hex": "#7f5bdf",
"rgb": {
"r": 127,
"g": 91,
"b": 223
},
"hsl": {
"h": 256.364,
"s": 67.347,
"l": 61.569
},
"oklch": {
"l": 0.57646,
"c": 0.19222,
"h": 291.8
},
"luminance": 0.17322
}Semantic roles & 50–950 ramp
primary
#7F5BDF
secondary
#D6E3B2
accent
#CF169D
background
#FAF8FE
surface
#F5F0FD
border
#CFCBD5
text
#110C16
muted
#807D84