#7C51CE#7C51CE
#7C51CE is a mid, vivid violet. Relative luminance 0.146; OKLCH L 54.6% C 0.185 H 295.5°. Best body text is #FFFFFF at 5.35:1 contrast (WCAG AA passes).
Color values
| HEX | #7C51CE |
|---|---|
| RGB | rgb(124, 81, 206) |
| HSL | hsl(261, 56%, 56%) |
| HSV | hsv(261, 61%, 81%) |
| CMYK | cmyk(39.8%, 60.7%, 0%, 19.2%) |
| CIE-LAB | lab(45.12, 45.37, -58.62) |
| CIE-LCH | lch(45.12, 74.12, 307.74°) |
| OKLab | oklab(54.62% 0.0795 -0.1669) |
| OKLCH | oklch(54.62% 0.185 295.5) |
| XYZ | xyz(22.3923, 14.6257, 60.0238) |
| Luminance | 0.1463 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Indigo
#6D5ACF
ΔE00 3.93
Purpley
#8756E4
ΔE00 4.02
Slate Blue
#6A5ACD
ΔE00 4.38
Iris
#6258C4
ΔE00 5.56
Bluish Purple
#703BE7
ΔE00 6.00
Dark Periwinkle
#665FD1
ΔE00 6.13
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7C51CE #A3CE51
analogous
#5165CE #7C51CE #BB51CE
triadic
#7C51CE #CE7C51 #51CE7C
tetradic
#7C51CE #CE5165 #A3CE51 #51CEBB
square
#7C51CE #CE5165 #A3CE51 #51CEBB
split-complementary
#7C51CE #CEBB51 #65CE51
monochromatic
#442480 #5D32B0 #7C51CE #A081DB #C4B1E9
Accessibility & contrast
On white
5.35
#7C51CE on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.93
#7C51CE on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7C51CE
5.35:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7C51CE | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7C51CE | 1.00 | 5.35 | 3.93 | 5.35 |
| #FFFFFF | 5.35 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.93 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.35 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#006CD2
Deuteranopia (green-blind)
#0D69CB
Tritanopia (blue-blind)
#676D88
Achromatopsia (no color)
#6B6B6B
Design tokens & code
CSS
--color: #7c51ce; /* rgb */ color: rgb(124, 81, 206); /* oklch */ color: oklch(54.6% 0.185 295.5);
Tailwind
colors: {
custom: {
50: '#a784de',
500: '#7c51ce',
950: '#000000',
},
}SCSS
$custom: #7c51ce; $custom-light: #a784de; $custom-dark: #000000;
JSON
{
"hex": "#7c51ce",
"rgb": {
"r": 124,
"g": 81,
"b": 206
},
"hsl": {
"h": 260.64,
"s": 56.054,
"l": 56.275
},
"oklch": {
"l": 0.54622,
"c": 0.18488,
"h": 295.5
},
"luminance": 0.14626
}Semantic roles & 50–950 ramp
primary
#7C51CE
secondary
#C5D7A4
accent
#DF48AB
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83