#7C2EB2#7C2EB2
#7C2EB2 is a mid, vivid violet. Relative luminance 0.095; OKLCH L 48.0% C 0.199 H 307.3°. Best body text is #FFFFFF at 7.26:1 contrast (WCAG AA passes).
Color values
| HEX | #7C2EB2 |
|---|---|
| RGB | rgb(124, 46, 178) |
| HSL | hsl(275, 59%, 44%) |
| HSV | hsv(275, 74%, 70%) |
| CMYK | cmyk(30.3%, 74.2%, 0%, 30.2%) |
| CIE-LAB | lab(36.84, 55.71, -55.65) |
| CIE-LCH | lch(36.84, 78.75, 315.03°) |
| OKLab | oklab(48.05% 0.1205 -0.1581) |
| OKLCH | oklch(48.05% 0.199 307.3) |
| XYZ | xyz(17.3233, 9.4537, 43.0230) |
| Luminance | 0.0945 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purple (survey)
#7E1E9C
ΔE00 4.44
Rebeccapurple
#663399
ΔE00 5.03
Darkviolet
#9400D3
ΔE00 5.58
Darkorchid
#9932CC
ΔE00 6.28
Blueviolet
#8A2BE2
ΔE00 6.84
Purply
#983FB2
ΔE00 7.07
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7C2EB2 #64B22E
analogous
#3A2EB2 #7C2EB2 #B22EA6
triadic
#7C2EB2 #B27C2E #2EB27C
tetradic
#7C2EB2 #B23A2E #64B22E #2EA6B2
square
#7C2EB2 #B23A2E #64B22E #2EA6B2
split-complementary
#7C2EB2 #A6B22E #2EB23A
monochromatic
#381551 #5A2181 #7C2EB2 #9B4CD1 #B67DDD
Accessibility & contrast
On white
7.26
#7C2EB2 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.89
#7C2EB2 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #7C2EB2
7.26:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7C2EB2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7C2EB2 | 1.00 | 7.26 | 2.89 | 7.26 |
| #FFFFFF | 7.26 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.89 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.26 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0054B6
Deuteranopia (green-blind)
#0057AF
Tritanopia (blue-blind)
#734E6E
Achromatopsia (no color)
#575757
Design tokens & code
CSS
--color: #7c2eb2; /* rgb */ color: rgb(124, 46, 178); /* oklch */ color: oklch(48.0% 0.199 307.3);
Tailwind
colors: {
custom: {
50: '#a76eca',
500: '#7c2eb2',
950: '#000000',
},
}SCSS
$custom: #7c2eb2; $custom-light: #a76eca; $custom-dark: #000000;
JSON
{
"hex": "#7c2eb2",
"rgb": {
"r": 124,
"g": 46,
"b": 178
},
"hsl": {
"h": 275.455,
"s": 58.929,
"l": 43.922
},
"oklch": {
"l": 0.48049,
"c": 0.19874,
"h": 307.3
},
"luminance": 0.09453
}Semantic roles & 50–950 ramp
primary
#7C2EB2
secondary
#97C676
accent
#E24686
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100813
muted
#7F7B82