#7C4CB2#7C4CB2
#7C4CB2 is a mid, vivid violet. Relative luminance 0.127; OKLCH L 52.0% C 0.158 H 303.0°. Best body text is #FFFFFF at 5.94:1 contrast (WCAG AA passes).
Color values
| HEX | #7C4CB2 |
|---|---|
| RGB | rgb(124, 76, 178) |
| HSL | hsl(268, 40%, 50%) |
| HSV | hsv(268, 57%, 70%) |
| CMYK | cmyk(30.3%, 57.3%, 0%, 30.2%) |
| CIE-LAB | lab(42.26, 40.88, -46.92) |
| CIE-LCH | lch(42.26, 62.23, 311.06°) |
| OKLab | oklab(51.95% 0.0861 -0.1325) |
| OKLCH | oklch(51.95% 0.158 303) |
| XYZ | xyz(18.9307, 12.6683, 43.5588) |
| Luminance | 0.1267 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple
#7851A9
ΔE00 2.27
Purply
#983FB2
ΔE00 6.13
Deep Lavender
#8D5EB7
ΔE00 6.31
Bluey Purple
#6241C7
ΔE00 6.92
Darkorchid
#9932CC
ΔE00 7.09
Light Indigo
#6D5ACF
ΔE00 7.39
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7C4CB2 #82B24C
analogous
#4C4FB2 #7C4CB2 #AF4CB2
triadic
#7C4CB2 #B27C4C #4CB27C
tetradic
#7C4CB2 #B24C4F #82B24C #4CB2AF
square
#7C4CB2 #B24C4F #82B24C #4CB2AF
split-complementary
#7C4CB2 #B2AF4C #4FB24C
monochromatic
#40275C #5E3A87 #7C4CB2 #9B76C5 #BBA1D7
Accessibility & contrast
On white
5.94
#7C4CB2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.53
#7C4CB2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7C4CB2
5.94:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7C4CB2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7C4CB2 | 1.00 | 5.94 | 3.53 | 5.94 |
| #FFFFFF | 5.94 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.53 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.94 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2163B5
Deuteranopia (green-blind)
#3464B0
Tritanopia (blue-blind)
#726078
Achromatopsia (no color)
#646464
Design tokens & code
CSS
--color: #7c4cb2; /* rgb */ color: rgb(124, 76, 178); /* oklch */ color: oklch(52.0% 0.158 303.0);
Tailwind
colors: {
custom: {
50: '#a580ca',
500: '#7c4cb2',
950: '#000000',
},
}SCSS
$custom: #7c4cb2; $custom-light: #a580ca; $custom-dark: #000000;
JSON
{
"hex": "#7c4cb2",
"rgb": {
"r": 124,
"g": 76,
"b": 178
},
"hsl": {
"h": 268.235,
"s": 40.157,
"l": 49.804
},
"oklch": {
"l": 0.51953,
"c": 0.15807,
"h": 303
},
"luminance": 0.12668
}Semantic roles & 50–950 ramp
primary
#7C4CB2
secondary
#AEC496
accent
#D05897
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#100A13
muted
#7F7C82