#764EF2#764EF2
#764EF2 is a mid, highly saturated violet. Relative luminance 0.157; OKLCH L 56.4% C 0.231 H 287.8°. Best body text is #FFFFFF at 5.07:1 contrast (WCAG AA passes).
Color values
| HEX | #764EF2 |
|---|---|
| RGB | rgb(118, 78, 242) |
| HSL | hsl(255, 86%, 63%) |
| HSV | hsv(255, 68%, 95%) |
| CMYK | cmyk(51.2%, 67.8%, 0%, 5.1%) |
| CIE-LAB | lab(46.59, 55.69, -76.70) |
| CIE-LCH | lch(46.59, 94.78, 305.98°) |
| OKLab | oklab(56.38% 0.0706 -0.2202) |
| OKLCH | oklch(56.38% 0.231 287.8) |
| XYZ | xyz(26.2179, 15.7099, 85.6380) |
| Luminance | 0.1571 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 3.86
Purpleish Blue
#6140EF
ΔE00 4.62
Bluish Purple
#703BE7
ΔE00 4.86
Light Indigo
#6D5ACF
ΔE00 5.53
Slate Blue
#6A5ACD
ΔE00 5.94
Dark Periwinkle
#665FD1
ΔE00 6.68
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#764EF2 #CAF24E
analogous
#4E78F2 #764EF2 #C84EF2
triadic
#764EF2 #F2764E #4EF276
tetradic
#764EF2 #F24E78 #CAF24E #4EF2C8
square
#764EF2 #F24E78 #CAF24E #4EF2C8
split-complementary
#764EF2 #F2C84E #78F24E
monochromatic
#370EB8 #4A15EE #764EF2 #A287F6 #CEC0FA
Accessibility & contrast
On white
5.07
#764EF2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.14
#764EF2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #764EF2
5.07:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##764EF2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##764EF2 | 1.00 | 5.07 | 4.14 | 5.07 |
| #FFFFFF | 5.07 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.14 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.07 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0072F7
Deuteranopia (green-blind)
#006AEF
Tritanopia (blue-blind)
#47789A
Achromatopsia (no color)
#6E6E6E
Design tokens & code
CSS
--color: #764ef2; /* rgb */ color: rgb(118, 78, 242); /* oklch */ color: oklch(56.4% 0.231 287.8);
Tailwind
colors: {
custom: {
50: '#a882f7',
500: '#764ef2',
950: '#000000',
},
}SCSS
$custom: #764ef2; $custom-light: #a882f7; $custom-dark: #000000;
JSON
{
"hex": "#764ef2",
"rgb": {
"r": 118,
"g": 78,
"b": 242
},
"hsl": {
"h": 254.634,
"s": 86.316,
"l": 62.745
},
"oklch": {
"l": 0.56381,
"c": 0.23129,
"h": 287.8
},
"luminance": 0.15711
}Semantic roles & 50–950 ramp
primary
#764EF2
secondary
#DDECB0
accent
#E303AC
background
#FBF8FF
surface
#F6EFFF
border
#D0CAD7
text
#110B17
muted
#807C85