#7D5EF2#7D5EF2
#7D5EF2 is a mid, highly saturated violet. Relative luminance 0.188; OKLCH L 59.3% C 0.212 H 287.8°. Best body text is #000000 at 4.76:1 contrast (WCAG AA passes).
Color values
| HEX | #7D5EF2 |
|---|---|
| RGB | rgb(125, 94, 242) |
| HSL | hsl(253, 85%, 66%) |
| HSV | hsv(253, 61%, 95%) |
| CMYK | cmyk(48.3%, 61.2%, 0%, 5.1%) |
| CIE-LAB | lab(50.42, 48.29, -70.43) |
| CIE-LCH | lch(50.42, 85.39, 304.43°) |
| OKLab | oklab(59.3% 0.0647 -0.2016) |
| OKLCH | oklch(59.3% 0.212 287.8) |
| XYZ | xyz(28.4825, 18.7749, 86.1103) |
| Luminance | 0.1878 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Mediumslateblue
#7B68EE
ΔE00 2.84
Purpley
#8756E4
ΔE00 3.52
Light Indigo
#6D5ACF
ΔE00 5.82
Dark Periwinkle
#665FD1
ΔE00 6.11
Slate Blue
#6A5ACD
ΔE00 6.32
Lighter Purple
#A55AF4
ΔE00 6.94
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7D5EF2 #D3F25E
analogous
#5E89F2 #7D5EF2 #C75EF2
triadic
#7D5EF2 #F27D5E #5EF27D
tetradic
#7D5EF2 #F25E89 #D3F25E #5EF2C7
square
#7D5EF2 #F25E89 #D3F25E #5EF2C7
split-complementary
#7D5EF2 #F2C75E #89F25E
monochromatic
#3610C6 #4F25ED #7D5EF2 #AB97F7 #D8CFFB
Accessibility & contrast
On white
4.42
#7D5EF2 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.76
#7D5EF2 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #7D5EF2
4.76:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7D5EF2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##7D5EF2 | 1.00 | 4.42 | 4.76 | 4.76 |
| #FFFFFF | 4.42 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.76 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.76 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#007BF7
Deuteranopia (green-blind)
#0074EF
Tritanopia (blue-blind)
#55819F
Achromatopsia (no color)
#787878
Design tokens & code
CSS
--color: #7d5ef2; /* rgb */ color: rgb(125, 94, 242); /* oklch */ color: oklch(59.3% 0.212 287.8);
Tailwind
colors: {
custom: {
50: '#ab8df7',
500: '#7d5ef2',
950: '#000000',
},
}SCSS
$custom: #7d5ef2; $custom-light: #ab8df7; $custom-dark: #000000;
JSON
{
"hex": "#7d5ef2",
"rgb": {
"r": 125,
"g": 94,
"b": 242
},
"hsl": {
"h": 252.568,
"s": 85.057,
"l": 65.882
},
"oklch": {
"l": 0.59303,
"c": 0.21173,
"h": 287.8
},
"luminance": 0.18776
}Semantic roles & 50–950 ramp
primary
#7D5EF2
secondary
#E4EEBD
accent
#E204B3
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C17
muted
#807D85