#772CA1#772CA1
#772CA1 is a mid, vivid violet. Relative luminance 0.083; OKLCH L 45.9% C 0.183 H 310.4°. Best body text is #FFFFFF at 7.90:1 contrast (WCAG AA passes).
Color values
| HEX | #772CA1 |
|---|---|
| RGB | rgb(119, 44, 161) |
| HSL | hsl(278, 57%, 40%) |
| HSV | hsv(278, 73%, 63%) |
| CMYK | cmyk(26.1%, 72.7%, 0%, 36.9%) |
| CIE-LAB | lab(34.59, 51.77, -49.15) |
| CIE-LCH | lch(34.59, 71.38, 316.48°) |
| OKLab | oklab(45.91% 0.1185 -0.1391) |
| OKLCH | oklch(45.91% 0.183 310.4) |
| XYZ | xyz(14.9402, 8.2968, 34.5257) |
| Luminance | 0.0830 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purple (survey)
#7E1E9C
ΔE00 2.53
Rebeccapurple
#663399
ΔE00 3.43
Darkmagenta
#8B008B
ΔE00 7.05
Darkviolet
#9400D3
ΔE00 7.79
Purple
#800080
ΔE00 7.80
Purply
#983FB2
ΔE00 8.05
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#772CA1 #56A12C
analogous
#3D2CA1 #772CA1 #A12C90
triadic
#772CA1 #A1772C #2CA177
tetradic
#772CA1 #A13D2C #56A12C #2C90A1
square
#772CA1 #A13D2C #56A12C #2C90A1
split-complementary
#772CA1 #90A12C #2CA13D
monochromatic
#301241 #531F71 #772CA1 #9940CB #B270D8
Accessibility & contrast
On white
7.90
#772CA1 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.66
#772CA1 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #772CA1
7.90:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##772CA1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##772CA1 | 1.00 | 7.90 | 2.66 | 7.90 |
| #FFFFFF | 7.90 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.66 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.90 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004EA4
Deuteranopia (green-blind)
#16539E
Tritanopia (blue-blind)
#714664
Achromatopsia (no color)
#515151
Design tokens & code
CSS
--color: #772ca1; /* rgb */ color: rgb(119, 44, 161); /* oklch */ color: oklch(45.9% 0.183 310.4);
Tailwind
colors: {
custom: {
50: '#a26cbe',
500: '#772ca1',
950: '#000000',
},
}SCSS
$custom: #772ca1; $custom-light: #a26cbe; $custom-dark: #000000;
JSON
{
"hex": "#772ca1",
"rgb": {
"r": 119,
"g": 44,
"b": 161
},
"hsl": {
"h": 278.462,
"s": 57.073,
"l": 40.196
},
"oklch": {
"l": 0.45913,
"c": 0.18272,
"h": 310.4
},
"luminance": 0.08297
}Semantic roles & 50–950 ramp
primary
#772CA1
secondary
#88BF6A
accent
#E0477E
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#0F0712
muted
#7F7A81