#7E4FB2#7E4FB2
#7E4FB2 is a mid, vivid violet. Relative luminance 0.132; OKLCH L 52.6% C 0.154 H 303.5°. Best body text is #FFFFFF at 5.76:1 contrast (WCAG AA passes).
Color values
| HEX | #7E4FB2 |
|---|---|
| RGB | rgb(126, 79, 178) |
| HSL | hsl(268, 39%, 50%) |
| HSV | hsv(268, 56%, 70%) |
| CMYK | cmyk(29.2%, 55.6%, 0%, 30.2%) |
| CIE-LAB | lab(43.13, 39.71, -45.52) |
| CIE-LCH | lch(43.13, 60.41, 311.10°) |
| OKLab | oklab(52.64% 0.0848 -0.1284) |
| OKLCH | oklch(52.64% 0.154 303.5) |
| XYZ | xyz(19.4343, 13.2420, 43.6430) |
| Luminance | 0.1324 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple
#7851A9
ΔE00 1.95
Deep Lavender
#8D5EB7
ΔE00 5.41
Purply
#983FB2
ΔE00 6.12
Light Indigo
#6D5ACF
ΔE00 7.27
Darkorchid
#9932CC
ΔE00 7.38
Slate Blue
#6A5ACD
ΔE00 7.46
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7E4FB2 #83B24F
analogous
#4F51B2 #7E4FB2 #AF4FB2
triadic
#7E4FB2 #B27E4F #4FB27E
tetradic
#7E4FB2 #B24F51 #83B24F #4FB2AF
square
#7E4FB2 #B24F51 #83B24F #4FB2AF
split-complementary
#7E4FB2 #B2AF4F #51B24F
monochromatic
#42295E #603C88 #7E4FB2 #9D7AC5 #BCA4D7
Accessibility & contrast
On white
5.76
#7E4FB2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.65
#7E4FB2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7E4FB2
5.76:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7E4FB2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7E4FB2 | 1.00 | 5.76 | 3.65 | 5.76 |
| #FFFFFF | 5.76 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.65 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.76 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2A65B5
Deuteranopia (green-blind)
#3A66B0
Tritanopia (blue-blind)
#756279
Achromatopsia (no color)
#666666
Design tokens & code
CSS
--color: #7e4fb2; /* rgb */ color: rgb(126, 79, 178); /* oklch */ color: oklch(52.6% 0.154 303.5);
Tailwind
colors: {
custom: {
50: '#a682c9',
500: '#7e4fb2',
950: '#000000',
},
}SCSS
$custom: #7e4fb2; $custom-light: #a682c9; $custom-dark: #000000;
JSON
{
"hex": "#7e4fb2",
"rgb": {
"r": 126,
"g": 79,
"b": 178
},
"hsl": {
"h": 268.485,
"s": 39.13,
"l": 50.392
},
"oklch": {
"l": 0.52641,
"c": 0.15389,
"h": 303.5
},
"luminance": 0.13242
}Semantic roles & 50–950 ramp
primary
#7E4FB2
secondary
#B0C498
accent
#CF5997
background
#FAF8FC
surface
#F4EFF8
border
#CECAD1
text
#100A13
muted
#7F7C82