#764AB6#764AB6
#764AB6 is a mid, vivid violet. Relative luminance 0.121; OKLCH L 51.3% C 0.165 H 299.3°. Best body text is #FFFFFF at 6.13:1 contrast (WCAG AA passes).
Color values
| HEX | #764AB6 |
|---|---|
| RGB | rgb(118, 74, 182) |
| HSL | hsl(264, 43%, 50%) |
| HSV | hsv(264, 59%, 71%) |
| CMYK | cmyk(35.2%, 59.3%, 0%, 28.6%) |
| CIE-LAB | lab(41.42, 41.56, -50.66) |
| CIE-LCH | lch(41.42, 65.53, 309.36°) |
| OKLab | oklab(51.26% 0.0807 -0.1437) |
| OKLCH | oklch(51.26% 0.165 299.3) |
| XYZ | xyz(18.3614, 12.1263, 45.6202) |
| Luminance | 0.1213 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple
#7851A9
ΔE00 3.30
Bluey Purple
#6241C7
ΔE00 5.26
Light Indigo
#6D5ACF
ΔE00 6.61
Iris
#6258C4
ΔE00 6.64
Slate Blue
#6A5ACD
ΔE00 6.71
Purply
#983FB2
ΔE00 7.31
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#764AB6 #8AB64A
analogous
#4A54B6 #764AB6 #AC4AB6
triadic
#764AB6 #B6764A #4AB676
tetradic
#764AB6 #B64A54 #8AB64A #4AB6AC
square
#764AB6 #B64A54 #8AB64A #4AB6AC
split-complementary
#764AB6 #B6AC4A #54B64A
monochromatic
#3E265F #5A388B #764AB6 #9776C8 #B8A1D9
Accessibility & contrast
On white
6.13
#764AB6 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.43
#764AB6 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #764AB6
6.13:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##764AB6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##764AB6 | 1.00 | 6.13 | 3.43 | 6.13 |
| #FFFFFF | 6.13 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.43 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.13 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0C62BA
Deuteranopia (green-blind)
#2561B4
Tritanopia (blue-blind)
#686179
Achromatopsia (no color)
#626262
Design tokens & code
CSS
--color: #764ab6; /* rgb */ color: rgb(118, 74, 182); /* oklch */ color: oklch(51.3% 0.165 299.3);
Tailwind
colors: {
custom: {
50: '#a27ecc',
500: '#764ab6',
950: '#000000',
},
}SCSS
$custom: #764ab6; $custom-light: #a27ecc; $custom-dark: #000000;
JSON
{
"hex": "#764ab6",
"rgb": {
"r": 118,
"g": 74,
"b": 182
},
"hsl": {
"h": 264.444,
"s": 42.52,
"l": 50.196
},
"oklch": {
"l": 0.51264,
"c": 0.16481,
"h": 299.3
},
"luminance": 0.12127
}Semantic roles & 50–950 ramp
primary
#764AB6
secondary
#B2C696
accent
#D2559F
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#0F0A13
muted
#7F7C82