#7F5BB2#7F5BB2
#7F5BB2 is a mid, vivid violet. Relative luminance 0.152; OKLCH L 54.7% C 0.135 H 301.2°. Best body text is #FFFFFF at 5.20:1 contrast (WCAG AA passes).
Color values
| HEX | #7F5BB2 |
|---|---|
| RGB | rgb(127, 91, 178) |
| HSL | hsl(265, 36%, 53%) |
| HSV | hsv(265, 49%, 70%) |
| CMYK | cmyk(28.7%, 48.9%, 0%, 30.2%) |
| CIE-LAB | lab(45.92, 33.10, -41.07) |
| CIE-LCH | lch(45.92, 52.74, 308.87°) |
| OKLab | oklab(54.74% 0.0698 -0.1154) |
| OKLCH | oklch(54.74% 0.135 301.2) |
| XYZ | xyz(20.5275, 15.2085, 43.9649) |
| Luminance | 0.1521 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Deep Lavender
#8D5EB7
ΔE00 3.17
Royal Purple
#7851A9
ΔE00 3.39
Amethyst
#9B5FC0
ΔE00 6.17
Light Indigo
#6D5ACF
ΔE00 6.83
Slate Blue
#6A5ACD
ΔE00 7.02
Iris
#6258C4
ΔE00 7.47
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7F5BB2 #8EB25B
analogous
#5B62B2 #7F5BB2 #AB5BB2
triadic
#7F5BB2 #B27F5B #5BB27F
tetradic
#7F5BB2 #B25B62 #8EB25B #5BB2AB
square
#7F5BB2 #B25B62 #8EB25B #5BB2AB
split-complementary
#7F5BB2 #B2AB5B #62B25B
monochromatic
#452F64 #61428D #7F5BB2 #A085C6 #C0AED9
Accessibility & contrast
On white
5.20
#7F5BB2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.04
#7F5BB2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7F5BB2
5.20:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7F5BB2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7F5BB2 | 1.00 | 5.20 | 4.04 | 5.20 |
| #FFFFFF | 5.20 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.04 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.20 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#406CB5
Deuteranopia (green-blind)
#496CB0
Tritanopia (blue-blind)
#756B7E
Achromatopsia (no color)
#6D6D6D
Design tokens & code
CSS
--color: #7f5bb2; /* rgb */ color: rgb(127, 91, 178); /* oklch */ color: oklch(54.7% 0.135 301.2);
Tailwind
colors: {
custom: {
50: '#a68ac9',
500: '#7f5bb2',
950: '#000000',
},
}SCSS
$custom: #7f5bb2; $custom-light: #a68ac9; $custom-dark: #000000;
JSON
{
"hex": "#7f5bb2",
"rgb": {
"r": 127,
"g": 91,
"b": 178
},
"hsl": {
"h": 264.828,
"s": 36.1,
"l": 52.745
},
"oklch": {
"l": 0.54737,
"c": 0.13484,
"h": 301.2
},
"luminance": 0.15209
}Semantic roles & 50–950 ramp
primary
#7F5BB2
secondary
#B8C7A2
accent
#CC5C9E
background
#FAF8FC
surface
#F4F0F8
border
#CECBD1
text
#100C13
muted
#7F7D82