#7D27AB#7D27AB
#7D27AB is a mid, vivid violet. Relative luminance 0.088; OKLCH L 47.0% C 0.200 H 310.4°. Best body text is #FFFFFF at 7.64:1 contrast (WCAG AA passes).
Color values
| HEX | #7D27AB |
|---|---|
| RGB | rgb(125, 39, 171) |
| HSL | hsl(279, 63%, 41%) |
| HSV | hsv(279, 77%, 67%) |
| CMYK | cmyk(26.9%, 77.2%, 0%, 32.9%) |
| CIE-LAB | lab(35.50, 57.11, -53.65) |
| CIE-LCH | lch(35.50, 78.36, 316.79°) |
| OKLab | oklab(46.97% 0.1296 -0.1521) |
| OKLCH | oklch(46.97% 0.2 310.4) |
| XYZ | xyz(16.5322, 8.7517, 39.3385) |
| Luminance | 0.0875 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purple (survey)
#7E1E9C
ΔE00 2.85
Rebeccapurple
#663399
ΔE00 4.85
Darkviolet
#9400D3
ΔE00 6.07
Darkorchid
#9932CC
ΔE00 7.21
Darkmagenta
#8B008B
ΔE00 7.31
Purply
#983FB2
ΔE00 7.54
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7D27AB #55AB27
analogous
#3B27AB #7D27AB #AB2797
triadic
#7D27AB #AB7D27 #27AB7D
tetradic
#7D27AB #AB3B27 #55AB27 #2797AB
square
#7D27AB #AB3B27 #55AB27 #2797AB
split-complementary
#7D27AB #97AB27 #27AB3B
monochromatic
#341047 #591C79 #7D27AB #9E3DD3 #B76EDE
Accessibility & contrast
On white
7.64
#7D27AB on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.75
#7D27AB on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #7D27AB
7.64:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7D27AB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7D27AB | 1.00 | 7.64 | 2.75 | 7.64 |
| #FFFFFF | 7.64 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.75 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.64 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0050AF
Deuteranopia (green-blind)
#0055A8
Tritanopia (blue-blind)
#774768
Achromatopsia (no color)
#535353
Design tokens & code
CSS
--color: #7d27ab; /* rgb */ color: rgb(125, 39, 171); /* oklch */ color: oklch(47.0% 0.200 310.4);
Tailwind
colors: {
custom: {
50: '#a76bc5',
500: '#7d27ab',
950: '#000000',
},
}SCSS
$custom: #7d27ab; $custom-light: #a76bc5; $custom-dark: #000000;
JSON
{
"hex": "#7d27ab",
"rgb": {
"r": 125,
"g": 39,
"b": 171
},
"hsl": {
"h": 279.091,
"s": 62.857,
"l": 41.176
},
"oklch": {
"l": 0.46968,
"c": 0.19983,
"h": 310.4
},
"luminance": 0.08751
}Semantic roles & 50–950 ramp
primary
#7D27AB
secondary
#89C569
accent
#E6427B
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82