#7D2EB2#7D2EB2
#7D2EB2 is a mid, vivid violet. Relative luminance 0.095; OKLCH L 48.2% C 0.199 H 307.8°. Best body text is #FFFFFF at 7.23:1 contrast (WCAG AA passes).
Color values
| HEX | #7D2EB2 |
|---|---|
| RGB | rgb(125, 46, 178) |
| HSL | hsl(276, 59%, 44%) |
| HSV | hsv(276, 74%, 70%) |
| CMYK | cmyk(29.8%, 74.2%, 0%, 30.2%) |
| CIE-LAB | lab(36.98, 55.90, -55.42) |
| CIE-LCH | lch(36.98, 78.72, 315.25°) |
| OKLab | oklab(48.18% 0.1218 -0.1573) |
| OKLCH | oklch(48.18% 0.199 307.8) |
| XYZ | xyz(17.4686, 9.5286, 43.0298) |
| Luminance | 0.0953 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purple (survey)
#7E1E9C
ΔE00 4.41
Rebeccapurple
#663399
ΔE00 5.15
Darkviolet
#9400D3
ΔE00 5.51
Darkorchid
#9932CC
ΔE00 6.15
Blueviolet
#8A2BE2
ΔE00 6.81
Purply
#983FB2
ΔE00 6.90
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7D2EB2 #63B22E
analogous
#3B2EB2 #7D2EB2 #B22EA5
triadic
#7D2EB2 #B27D2E #2EB27D
tetradic
#7D2EB2 #B23B2E #63B22E #2EA5B2
square
#7D2EB2 #B23B2E #63B22E #2EA5B2
split-complementary
#7D2EB2 #A5B22E #2EB23B
monochromatic
#391551 #5B2181 #7D2EB2 #9C4CD1 #B77DDD
Accessibility & contrast
On white
7.23
#7D2EB2 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.91
#7D2EB2 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #7D2EB2
7.23:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7D2EB2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7D2EB2 | 1.00 | 7.23 | 2.91 | 7.23 |
| #FFFFFF | 7.23 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.91 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.23 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0054B6
Deuteranopia (green-blind)
#0058AF
Tritanopia (blue-blind)
#744D6E
Achromatopsia (no color)
#575757
Design tokens & code
CSS
--color: #7d2eb2; /* rgb */ color: rgb(125, 46, 178); /* oklch */ color: oklch(48.2% 0.199 307.8);
Tailwind
colors: {
custom: {
50: '#a86fca',
500: '#7d2eb2',
950: '#000000',
},
}SCSS
$custom: #7d2eb2; $custom-light: #a86fca; $custom-dark: #000000;
JSON
{
"hex": "#7d2eb2",
"rgb": {
"r": 125,
"g": 46,
"b": 178
},
"hsl": {
"h": 275.909,
"s": 58.929,
"l": 43.922
},
"oklch": {
"l": 0.48176,
"c": 0.19899,
"h": 307.8
},
"luminance": 0.09528
}Semantic roles & 50–950 ramp
primary
#7D2EB2
secondary
#96C676
accent
#E24684
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100813
muted
#7F7B82