#772AA4#772AA4
#772AA4 is a mid, vivid violet. Relative luminance 0.083; OKLCH L 45.9% C 0.188 H 309.6°. Best body text is #FFFFFF at 7.92:1 contrast (WCAG AA passes).
Color values
| HEX | #772AA4 |
|---|---|
| RGB | rgb(119, 42, 164) |
| HSL | hsl(278, 59%, 40%) |
| HSV | hsv(278, 74%, 64%) |
| CMYK | cmyk(27.4%, 74.4%, 0%, 35.7%) |
| CIE-LAB | lab(34.52, 53.27, -51.09) |
| CIE-LCH | lch(34.52, 73.81, 316.20°) |
| OKLab | oklab(45.93% 0.12 -0.1448) |
| OKLCH | oklch(45.93% 0.188 309.6) |
| XYZ | xyz(15.1352, 8.2585, 35.9115) |
| Luminance | 0.0826 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purple (survey)
#7E1E9C
ΔE00 2.62
Rebeccapurple
#663399
ΔE00 3.62
Darkmagenta
#8B008B
ΔE00 7.26
Darkviolet
#9400D3
ΔE00 7.37
Purple
#800080
ΔE00 8.04
Purple Blue
#5D21D0
ΔE00 8.06
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#772AA4 #57A42A
analogous
#3A2AA4 #772AA4 #A42A94
triadic
#772AA4 #A4772A #2AA477
tetradic
#772AA4 #A43A2A #57A42A #2A94A4
square
#772AA4 #A43A2A #57A42A #2A94A4
split-complementary
#772AA4 #94A42A #2AA43A
monochromatic
#301143 #541E73 #772AA4 #983ECD #B26EDA
Accessibility & contrast
On white
7.92
#772AA4 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.65
#772AA4 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #772AA4
7.92:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##772AA4 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##772AA4 | 1.00 | 7.92 | 2.65 | 7.92 |
| #FFFFFF | 7.92 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.65 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.92 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004EA7
Deuteranopia (green-blind)
#0A52A1
Tritanopia (blue-blind)
#704665
Achromatopsia (no color)
#515151
Design tokens & code
CSS
--color: #772aa4; /* rgb */ color: rgb(119, 42, 164); /* oklch */ color: oklch(45.9% 0.188 309.6);
Tailwind
colors: {
custom: {
50: '#a36bc0',
500: '#772aa4',
950: '#000000',
},
}SCSS
$custom: #772aa4; $custom-light: #a36bc0; $custom-dark: #000000;
JSON
{
"hex": "#772aa4",
"rgb": {
"r": 119,
"g": 42,
"b": 164
},
"hsl": {
"h": 277.869,
"s": 59.223,
"l": 40.392
},
"oklch": {
"l": 0.45926,
"c": 0.18805,
"h": 309.6
},
"luminance": 0.08258
}Semantic roles & 50–950 ramp
primary
#772AA4
secondary
#89C169
accent
#E2457F
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81