#7D42E5#7D42E5
#7D42E5 is a mid, highly saturated violet. Relative luminance 0.139; OKLCH L 54.5% C 0.230 H 293.9°. Best body text is #FFFFFF at 5.55:1 contrast (WCAG AA passes).
Color values
| HEX | #7D42E5 |
|---|---|
| RGB | rgb(125, 66, 229) |
| HSL | hsl(262, 76%, 58%) |
| HSV | hsv(262, 71%, 90%) |
| CMYK | cmyk(45.4%, 71.2%, 0%, 10.2%) |
| CIE-LAB | lab(44.11, 59.32, -73.39) |
| CIE-LCH | lch(44.11, 94.37, 308.95°) |
| OKLab | oklab(54.46% 0.0932 -0.2103) |
| OKLCH | oklch(54.46% 0.23 293.9) |
| XYZ | xyz(24.5446, 13.9128, 75.5058) |
| Luminance | 0.1391 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Bluish Purple
#703BE7
ΔE00 2.58
Blueviolet
#8A2BE2
ΔE00 3.94
Purpleish Blue
#6140EF
ΔE00 4.16
Burple
#6832E3
ΔE00 4.76
Purpley
#8756E4
ΔE00 5.09
Purpley Blue
#5F34E7
ΔE00 5.37
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7D42E5 #AAE542
analogous
#4258E5 #7D42E5 #CF42E5
triadic
#7D42E5 #E57D42 #42E57D
tetradic
#7D42E5 #E54258 #AAE542 #42E5CF
square
#7D42E5 #E54258 #AAE542 #42E5CF
split-complementary
#7D42E5 #E5CF42 #58E542
monochromatic
#441598 #5C1CCE #7D42E5 #A278EC #C7AEF4
Accessibility & contrast
On white
5.55
#7D42E5 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.78
#7D42E5 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7D42E5
5.55:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7D42E5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7D42E5 | 1.00 | 5.55 | 3.78 | 5.55 |
| #FFFFFF | 5.55 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.78 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.55 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#006AEA
Deuteranopia (green-blind)
#0065E2
Tritanopia (blue-blind)
#5F6C8F
Achromatopsia (no color)
#686868
Design tokens & code
CSS
--color: #7d42e5; /* rgb */ color: rgb(125, 66, 229); /* oklch */ color: oklch(54.5% 0.230 293.9);
Tailwind
colors: {
custom: {
50: '#ab7bee',
500: '#7d42e5',
950: '#000000',
},
}SCSS
$custom: #7d42e5; $custom-light: #ab7bee; $custom-dark: #000000;
JSON
{
"hex": "#7d42e5",
"rgb": {
"r": 125,
"g": 66,
"b": 229
},
"hsl": {
"h": 261.718,
"s": 75.814,
"l": 57.843
},
"oklch": {
"l": 0.54455,
"c": 0.22998,
"h": 293.9
},
"luminance": 0.13914
}Semantic roles & 50–950 ramp
primary
#7D42E5
secondary
#CAE2A1
accent
#F235AE
background
#FBF7FE
surface
#F6EEFD
border
#D0C9D5
text
#110A17
muted
#807C85