#7F4AC2#7F4AC2
#7F4AC2 is a mid, vivid violet. Relative luminance 0.133; OKLCH L 53.1% C 0.181 H 300.7°. Best body text is #FFFFFF at 5.74:1 contrast (WCAG AA passes).
Color values
| HEX | #7F4AC2 |
|---|---|
| RGB | rgb(127, 74, 194) |
| HSL | hsl(267, 50%, 53%) |
| HSV | hsv(267, 62%, 76%) |
| CMYK | cmyk(34.5%, 61.9%, 0%, 23.9%) |
| CIE-LAB | lab(43.22, 46.71, -54.72) |
| CIE-LCH | lch(43.22, 71.95, 310.49°) |
| OKLab | oklab(53.06% 0.0923 -0.1554) |
| OKLCH | oklch(53.06% 0.181 300.7) |
| XYZ | xyz(20.9364, 13.3045, 52.4935) |
| Luminance | 0.1331 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple
#7851A9
ΔE00 4.69
Darkorchid
#9932CC
ΔE00 5.75
Bluey Purple
#6241C7
ΔE00 5.85
Purpley
#8756E4
ΔE00 6.28
Light Indigo
#6D5ACF
ΔE00 6.29
Blueviolet
#8A2BE2
ΔE00 6.31
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7F4AC2 #8DC24A
analogous
#4A51C2 #7F4AC2 #BB4AC2
triadic
#7F4AC2 #C27F4A #4AC27F
tetradic
#7F4AC2 #C24A51 #8DC24A #4AC2BB
square
#7F4AC2 #C24A51 #8DC24A #4AC2BB
split-complementary
#7F4AC2 #C2BB4A #51C24A
monochromatic
#45256D #61349B #7F4AC2 #9F78D1 #C0A6E1
Accessibility & contrast
On white
5.74
#7F4AC2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.66
#7F4AC2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7F4AC2
5.74:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7F4AC2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7F4AC2 | 1.00 | 5.74 | 3.66 | 5.74 |
| #FFFFFF | 5.74 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.66 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.74 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0066C6
Deuteranopia (green-blind)
#1F65BF
Tritanopia (blue-blind)
#71647F
Achromatopsia (no color)
#666666
Design tokens & code
CSS
--color: #7f4ac2; /* rgb */ color: rgb(127, 74, 194); /* oklch */ color: oklch(53.1% 0.181 300.7);
Tailwind
colors: {
custom: {
50: '#a87fd5',
500: '#7f4ac2',
950: '#000000',
},
}SCSS
$custom: #7f4ac2; $custom-light: #a87fd5; $custom-dark: #000000;
JSON
{
"hex": "#7f4ac2",
"rgb": {
"r": 127,
"g": 74,
"b": 194
},
"hsl": {
"h": 266.5,
"s": 49.587,
"l": 52.549
},
"oklch": {
"l": 0.53059,
"c": 0.1807,
"h": 300.7
},
"luminance": 0.13305
}Semantic roles & 50–950 ramp
primary
#7F4AC2
secondary
#B7CE9A
accent
#D94F9C
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100A14
muted
#7F7C83