#7A51F2#7A51F2
#7A51F2 is a mid, highly saturated violet. Relative luminance 0.164; OKLCH L 57.1% C 0.228 H 288.8°. Best body text is #FFFFFF at 4.90:1 contrast (WCAG AA passes).
Color values
| HEX | #7A51F2 |
|---|---|
| RGB | rgb(122, 81, 242) |
| HSL | hsl(255, 86%, 63%) |
| HSV | hsv(255, 67%, 95%) |
| CMYK | cmyk(49.6%, 66.5%, 0%, 5.1%) |
| CIE-LAB | lab(47.54, 54.78, -75.14) |
| CIE-LCH | lch(47.54, 92.99, 306.10°) |
| OKLab | oklab(57.15% 0.0733 -0.2155) |
| OKLCH | oklch(57.15% 0.228 288.8) |
| XYZ | xyz(26.9908, 16.4320, 85.7367) |
| Luminance | 0.1643 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 3.09
Light Indigo
#6D5ACF
ΔE00 5.49
Purpleish Blue
#6140EF
ΔE00 5.62
Bluish Purple
#703BE7
ΔE00 5.75
Slate Blue
#6A5ACD
ΔE00 5.97
Mediumslateblue
#7B68EE
ΔE00 6.17
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7A51F2 #C9F251
analogous
#5178F2 #7A51F2 #CB51F2
triadic
#7A51F2 #F27A51 #51F27A
tetradic
#7A51F2 #F25178 #C9F251 #51F2CB
square
#7A51F2 #F25178 #C9F251 #51F2CB
split-complementary
#7A51F2 #F2CB51 #78F251
monochromatic
#3A0EBB #4E18EE #7A51F2 #A68AF6 #D1C3FB
Accessibility & contrast
On white
4.90
#7A51F2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.29
#7A51F2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7A51F2
4.90:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7A51F2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7A51F2 | 1.00 | 4.90 | 4.29 | 4.90 |
| #FFFFFF | 4.90 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.29 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.90 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0074F7
Deuteranopia (green-blind)
#006DEF
Tritanopia (blue-blind)
#50799B
Achromatopsia (no color)
#717171
Design tokens & code
CSS
--color: #7a51f2; /* rgb */ color: rgb(122, 81, 242); /* oklch */ color: oklch(57.1% 0.228 288.8);
Tailwind
colors: {
custom: {
50: '#aa84f7',
500: '#7a51f2',
950: '#000000',
},
}SCSS
$custom: #7a51f2; $custom-light: #aa84f7; $custom-dark: #000000;
JSON
{
"hex": "#7a51f2",
"rgb": {
"r": 122,
"g": 81,
"b": 242
},
"hsl": {
"h": 255.28,
"s": 86.096,
"l": 63.333
},
"oklch": {
"l": 0.57148,
"c": 0.22767,
"h": 288.8
},
"luminance": 0.16433
}Semantic roles & 50–950 ramp
primary
#7A51F2
secondary
#DDECB3
accent
#E303AA
background
#FBF8FF
surface
#F6EFFF
border
#D0CAD7
text
#110B17
muted
#807C85