#7E4BBB#7E4BBB
#7E4BBB is a mid, vivid violet. Relative luminance 0.131; OKLCH L 52.6% C 0.171 H 301.8°. Best body text is #FFFFFF at 5.82:1 contrast (WCAG AA passes).
Color values
| HEX | #7E4BBB |
|---|---|
| RGB | rgb(126, 75, 187) |
| HSL | hsl(267, 45%, 51%) |
| HSV | hsv(267, 60%, 73%) |
| CMYK | cmyk(32.6%, 59.9%, 0%, 26.7%) |
| CIE-LAB | lab(42.85, 44.18, -51.25) |
| CIE-LCH | lch(42.85, 67.66, 310.76°) |
| OKLab | oklab(52.62% 0.09 -0.1452) |
| OKLCH | oklch(52.62% 0.171 301.8) |
| XYZ | xyz(20.0878, 13.0556, 48.4658) |
| Luminance | 0.1306 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple
#7851A9
ΔE00 3.63
Purply
#983FB2
ΔE00 6.17
Darkorchid
#9932CC
ΔE00 6.20
Bluey Purple
#6241C7
ΔE00 6.24
Deep Lavender
#8D5EB7
ΔE00 6.54
Light Indigo
#6D5ACF
ΔE00 6.68
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7E4BBB #88BB4B
analogous
#4B50BB #7E4BBB #B64BBB
triadic
#7E4BBB #BB7E4B #4BBB7E
tetradic
#7E4BBB #BB4B50 #88BB4B #4BBBB6
square
#7E4BBB #BB4B50 #88BB4B #4BBBB6
split-complementary
#7E4BBB #BBB64B #50BB4B
monochromatic
#432665 #603792 #7E4BBB #9E77CC #BEA4DD
Accessibility & contrast
On white
5.82
#7E4BBB on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.61
#7E4BBB on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7E4BBB
5.82:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7E4BBB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7E4BBB | 1.00 | 5.82 | 3.61 | 5.82 |
| #FFFFFF | 5.82 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.61 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.82 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0D64BF
Deuteranopia (green-blind)
#2B65B8
Tritanopia (blue-blind)
#72627C
Achromatopsia (no color)
#656565
Design tokens & code
CSS
--color: #7e4bbb; /* rgb */ color: rgb(126, 75, 187); /* oklch */ color: oklch(52.6% 0.171 301.8);
Tailwind
colors: {
custom: {
50: '#a780d0',
500: '#7e4bbb',
950: '#000000',
},
}SCSS
$custom: #7e4bbb; $custom-light: #a780d0; $custom-dark: #000000;
JSON
{
"hex": "#7e4bbb",
"rgb": {
"r": 126,
"g": 75,
"b": 187
},
"hsl": {
"h": 267.321,
"s": 45.161,
"l": 51.373
},
"oklch": {
"l": 0.52616,
"c": 0.17082,
"h": 301.8
},
"luminance": 0.13056
}Semantic roles & 50–950 ramp
primary
#7E4BBB
secondary
#B3CA98
accent
#D5539A
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100A14
muted
#7F7C82