#7C51F2#7C51F2
#7C51F2 is a mid, highly saturated violet. Relative luminance 0.166; OKLCH L 57.3% C 0.228 H 289.5°. Best body text is #FFFFFF at 4.87:1 contrast (WCAG AA passes).
Color values
| HEX | #7C51F2 |
|---|---|
| RGB | rgb(124, 81, 242) |
| HSL | hsl(256, 86%, 63%) |
| HSV | hsv(256, 67%, 95%) |
| CMYK | cmyk(48.8%, 66.5%, 0%, 5.1%) |
| CIE-LAB | lab(47.73, 55.12, -74.82) |
| CIE-LCH | lch(47.73, 92.94, 306.38°) |
| OKLab | oklab(57.33% 0.076 -0.2146) |
| OKLCH | oklch(57.33% 0.228 289.5) |
| XYZ | xyz(27.2770, 16.5796, 85.7501) |
| Luminance | 0.1658 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 2.86
Light Indigo
#6D5ACF
ΔE00 5.63
Purpleish Blue
#6140EF
ΔE00 5.84
Bluish Purple
#703BE7
ΔE00 5.87
Slate Blue
#6A5ACD
ΔE00 6.12
Mediumslateblue
#7B68EE
ΔE00 6.14
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7C51F2 #C7F251
analogous
#5176F2 #7C51F2 #CC51F2
triadic
#7C51F2 #F27C51 #51F27C
tetradic
#7C51F2 #F25176 #C7F251 #51F2CC
square
#7C51F2 #F25176 #C7F251 #51F2CC
split-complementary
#7C51F2 #F2CC51 #76F251
monochromatic
#3C0EBB #5118EE #7C51F2 #A78AF6 #D2C3FB
Accessibility & contrast
On white
4.87
#7C51F2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.32
#7C51F2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7C51F2
4.87:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7C51F2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7C51F2 | 1.00 | 4.87 | 4.32 | 4.87 |
| #FFFFFF | 4.87 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.32 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.87 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0074F7
Deuteranopia (green-blind)
#006DEF
Tritanopia (blue-blind)
#54799B
Achromatopsia (no color)
#717171
Design tokens & code
CSS
--color: #7c51f2; /* rgb */ color: rgb(124, 81, 242); /* oklch */ color: oklch(57.3% 0.228 289.5);
Tailwind
colors: {
custom: {
50: '#ab85f7',
500: '#7c51f2',
950: '#000000',
},
}SCSS
$custom: #7c51f2; $custom-light: #ab85f7; $custom-dark: #000000;
JSON
{
"hex": "#7c51f2",
"rgb": {
"r": 124,
"g": 81,
"b": 242
},
"hsl": {
"h": 256.025,
"s": 86.096,
"l": 63.333
},
"oklch": {
"l": 0.57329,
"c": 0.22761,
"h": 289.5
},
"luminance": 0.16581
}Semantic roles & 50–950 ramp
primary
#7C51F2
secondary
#DDECB3
accent
#E303A7
background
#FBF8FF
surface
#F6EFFF
border
#D0CAD7
text
#110B17
muted
#807C85