#764FB2#764FB2
#764FB2 is a mid, vivid violet. Relative luminance 0.127; OKLCH L 51.8% C 0.152 H 299.2°. Best body text is #FFFFFF at 5.95:1 contrast (WCAG AA passes).
Color values
| HEX | #764FB2 |
|---|---|
| RGB | rgb(118, 79, 178) |
| HSL | hsl(264, 39%, 50%) |
| HSV | hsv(264, 56%, 70%) |
| CMYK | cmyk(33.7%, 55.6%, 0%, 30.2%) |
| CIE-LAB | lab(42.24, 37.68, -46.98) |
| CIE-LCH | lch(42.24, 60.22, 308.73°) |
| OKLab | oklab(51.79% 0.0743 -0.1329) |
| OKLCH | oklch(51.79% 0.152 299.2) |
| XYZ | xyz(18.3011, 12.6577, 43.5898) |
| Luminance | 0.1266 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple
#7851A9
ΔE00 2.00
Iris
#6258C4
ΔE00 6.29
Light Indigo
#6D5ACF
ΔE00 6.33
Slate Blue
#6A5ACD
ΔE00 6.40
Bluey Purple
#6241C7
ΔE00 6.42
Deep Lavender
#8D5EB7
ΔE00 6.56
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#764FB2 #8BB24F
analogous
#4F5AB2 #764FB2 #A74FB2
triadic
#764FB2 #B2764F #4FB276
tetradic
#764FB2 #B24F5A #8BB24F #4FB2A7
square
#764FB2 #B24F5A #8BB24F #4FB2A7
split-complementary
#764FB2 #B2A74F #5AB24F
monochromatic
#3E295E #5A3C88 #764FB2 #977AC5 #B8A4D7
Accessibility & contrast
On white
5.95
#764FB2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.53
#764FB2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #764FB2
5.95:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##764FB2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##764FB2 | 1.00 | 5.95 | 3.53 | 5.95 |
| #FFFFFF | 5.95 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.53 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.95 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2564B5
Deuteranopia (green-blind)
#3263B0
Tritanopia (blue-blind)
#696379
Achromatopsia (no color)
#646464
Design tokens & code
CSS
--color: #764fb2; /* rgb */ color: rgb(118, 79, 178); /* oklch */ color: oklch(51.8% 0.152 299.2);
Tailwind
colors: {
custom: {
50: '#a182c9',
500: '#764fb2',
950: '#000000',
},
}SCSS
$custom: #764fb2; $custom-light: #a182c9; $custom-dark: #000000;
JSON
{
"hex": "#764fb2",
"rgb": {
"r": 118,
"g": 79,
"b": 178
},
"hsl": {
"h": 263.636,
"s": 39.13,
"l": 50.392
},
"oklch": {
"l": 0.51789,
"c": 0.15228,
"h": 299.2
},
"luminance": 0.12658
}Semantic roles & 50–950 ramp
primary
#764FB2
secondary
#B3C498
accent
#CF59A0
background
#FAF8FC
surface
#F4EFF8
border
#CECAD1
text
#0F0A13
muted
#7F7C82