#7D5EF6#7D5EF6
#7D5EF6 is a mid, highly saturated violet. Relative luminance 0.190; OKLCH L 59.6% C 0.217 H 287.3°. Best body text is #000000 at 4.80:1 contrast (WCAG AA passes).
Color values
| HEX | #7D5EF6 |
|---|---|
| RGB | rgb(125, 94, 246) |
| HSL | hsl(252, 89%, 67%) |
| HSV | hsv(252, 62%, 96%) |
| CMYK | cmyk(49.2%, 61.8%, 0%, 3.5%) |
| CIE-LAB | lab(50.71, 49.42, -72.20) |
| CIE-LCH | lch(50.71, 87.49, 304.39°) |
| OKLab | oklab(59.6% 0.0644 -0.2068) |
| OKLCH | oklch(59.6% 0.217 287.3) |
| XYZ | xyz(29.0898, 19.0179, 89.3089) |
| Luminance | 0.1902 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Mediumslateblue
#7B68EE
ΔE00 2.87
Purpley
#8756E4
ΔE00 3.88
Light Indigo
#6D5ACF
ΔE00 6.29
Dark Periwinkle
#665FD1
ΔE00 6.50
Slate Blue
#6A5ACD
ΔE00 6.77
Lighter Purple
#A55AF4
ΔE00 6.92
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7D5EF6 #D7F65E
analogous
#5E8BF6 #7D5EF6 #C95EF6
triadic
#7D5EF6 #F67D5E #5EF67D
tetradic
#7D5EF6 #F65E8B #D7F65E #5EF6C9
square
#7D5EF6 #F65E8B #D7F65E #5EF6C9
split-complementary
#7D5EF6 #F6C95E #8BF65E
monochromatic
#330CCE #4E24F3 #7D5EF6 #AC98F9 #DBD2FC
Accessibility & contrast
On white
4.37
#7D5EF6 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.80
#7D5EF6 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #7D5EF6
4.80:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7D5EF6 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##7D5EF6 | 1.00 | 4.37 | 4.80 | 4.80 |
| #FFFFFF | 4.37 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.80 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.80 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#007CFB
Deuteranopia (green-blind)
#0075F3
Tritanopia (blue-blind)
#5282A1
Achromatopsia (no color)
#797979
Design tokens & code
CSS
--color: #7d5ef6; /* rgb */ color: rgb(125, 94, 246); /* oklch */ color: oklch(59.6% 0.217 287.3);
Tailwind
colors: {
custom: {
50: '#ab8dfa',
500: '#7d5ef6',
950: '#000000',
},
}SCSS
$custom: #7d5ef6; $custom-light: #ab8dfa; $custom-dark: #000000;
JSON
{
"hex": "#7d5ef6",
"rgb": {
"r": 125,
"g": 94,
"b": 246
},
"hsl": {
"h": 252.237,
"s": 89.412,
"l": 66.667
},
"oklch": {
"l": 0.59601,
"c": 0.21661,
"h": 287.3
},
"luminance": 0.19019
}Semantic roles & 50–950 ramp
primary
#7D5EF6
secondary
#E6F0BF
accent
#E600B7
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C17
muted
#807D85