#7D51CD#7D51CD
#7D51CD is a mid, vivid violet. Relative luminance 0.147; OKLCH L 54.7% C 0.184 H 296.1°. Best body text is #FFFFFF at 5.34:1 contrast (WCAG AA passes).
Color values
| HEX | #7D51CD |
|---|---|
| RGB | rgb(125, 81, 205) |
| HSL | hsl(261, 55%, 56%) |
| HSV | hsv(261, 60%, 80%) |
| CMYK | cmyk(39%, 60.5%, 0%, 19.6%) |
| CIE-LAB | lab(45.15, 45.33, -57.98) |
| CIE-LCH | lch(45.15, 73.59, 308.02°) |
| OKLab | oklab(54.65% 0.0809 -0.165) |
| OKLCH | oklch(54.65% 0.184 296.1) |
| XYZ | xyz(22.4165, 14.6522, 59.3929) |
| Luminance | 0.1465 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 4.06
Light Indigo
#6D5ACF
ΔE00 4.11
Slate Blue
#6A5ACD
ΔE00 4.56
Iris
#6258C4
ΔE00 5.72
Royal Purple
#7851A9
ΔE00 5.99
Bluish Purple
#703BE7
ΔE00 6.16
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7D51CD #A1CD51
analogous
#5163CD #7D51CD #BB51CD
triadic
#7D51CD #CD7D51 #51CD7D
tetradic
#7D51CD #CD5163 #A1CD51 #51CDBB
square
#7D51CD #CD5163 #A1CD51 #51CDBB
split-complementary
#7D51CD #CDBB51 #63CD51
monochromatic
#45257F #5E32AF #7D51CD #A181DB #C4B0E8
Accessibility & contrast
On white
5.34
#7D51CD on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.93
#7D51CD on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7D51CD
5.34:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7D51CD | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7D51CD | 1.00 | 5.34 | 3.93 | 5.34 |
| #FFFFFF | 5.34 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.93 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.34 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#006CD1
Deuteranopia (green-blind)
#1469CA
Tritanopia (blue-blind)
#696C87
Achromatopsia (no color)
#6B6B6B
Design tokens & code
CSS
--color: #7d51cd; /* rgb */ color: rgb(125, 81, 205); /* oklch */ color: oklch(54.7% 0.184 296.1);
Tailwind
colors: {
custom: {
50: '#a884dd',
500: '#7d51cd',
950: '#000000',
},
}SCSS
$custom: #7d51cd; $custom-light: #a884dd; $custom-dark: #000000;
JSON
{
"hex": "#7d51cd",
"rgb": {
"r": 125,
"g": 81,
"b": 205
},
"hsl": {
"h": 261.29,
"s": 55.357,
"l": 56.078
},
"oklch": {
"l": 0.54652,
"c": 0.18376,
"h": 296.1
},
"luminance": 0.14653
}Semantic roles & 50–950 ramp
primary
#7D51CD
secondary
#C4D7A3
accent
#DF49AA
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83