#7C4BB2#7C4BB2
#7C4BB2 is a mid, vivid violet. Relative luminance 0.125; OKLCH L 51.8% C 0.160 H 303.2°. Best body text is #FFFFFF at 5.99:1 contrast (WCAG AA passes).
Color values
| HEX | #7C4BB2 |
|---|---|
| RGB | rgb(124, 75, 178) |
| HSL | hsl(269, 41%, 50%) |
| HSV | hsv(269, 58%, 70%) |
| CMYK | cmyk(30.3%, 57.9%, 0%, 30.2%) |
| CIE-LAB | lab(42.05, 41.44, -47.26) |
| CIE-LCH | lch(42.05, 62.85, 311.24°) |
| OKLab | oklab(51.8% 0.0874 -0.1335) |
| OKLCH | oklch(51.8% 0.16 303.2) |
| XYZ | xyz(18.8623, 12.5316, 43.5360) |
| Luminance | 0.1253 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple
#7851A9
ΔE00 2.46
Purply
#983FB2
ΔE00 6.03
Deep Lavender
#8D5EB7
ΔE00 6.53
Bluey Purple
#6241C7
ΔE00 6.81
Darkorchid
#9932CC
ΔE00 6.94
Light Indigo
#6D5ACF
ΔE00 7.53
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7C4BB2 #81B24B
analogous
#4B4EB2 #7C4BB2 #B04BB2
triadic
#7C4BB2 #B27C4B #4BB27C
tetradic
#7C4BB2 #B24B4E #81B24B #4BB2B0
square
#7C4BB2 #B24B4E #81B24B #4BB2B0
split-complementary
#7C4BB2 #B2B04B #4EB24B
monochromatic
#40275C #5E3987 #7C4BB2 #9B75C5 #BAA0D7
Accessibility & contrast
On white
5.99
#7C4BB2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.51
#7C4BB2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7C4BB2
5.99:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7C4BB2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7C4BB2 | 1.00 | 5.99 | 3.51 | 5.99 |
| #FFFFFF | 5.99 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.51 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.99 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1F62B5
Deuteranopia (green-blind)
#3363B0
Tritanopia (blue-blind)
#725F77
Achromatopsia (no color)
#636363
Design tokens & code
CSS
--color: #7c4bb2; /* rgb */ color: rgb(124, 75, 178); /* oklch */ color: oklch(51.8% 0.160 303.2);
Tailwind
colors: {
custom: {
50: '#a57fca',
500: '#7c4bb2',
950: '#000000',
},
}SCSS
$custom: #7c4bb2; $custom-light: #a57fca; $custom-dark: #000000;
JSON
{
"hex": "#7c4bb2",
"rgb": {
"r": 124,
"g": 75,
"b": 178
},
"hsl": {
"h": 268.544,
"s": 40.711,
"l": 49.608
},
"oklch": {
"l": 0.51799,
"c": 0.15961,
"h": 303.2
},
"luminance": 0.12532
}Semantic roles & 50–950 ramp
primary
#7C4BB2
secondary
#AEC495
accent
#D15797
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#100A13
muted
#7F7C82