#7D42CD#7D42CD
#7D42CD is a mid, highly saturated violet. Relative luminance 0.127; OKLCH L 52.6% C 0.204 H 298.6°. Best body text is #FFFFFF at 5.94:1 contrast (WCAG AA passes).
Color values
| HEX | #7D42CD |
|---|---|
| RGB | rgb(125, 66, 205) |
| HSL | hsl(265, 58%, 53%) |
| HSV | hsv(265, 68%, 80%) |
| CMYK | cmyk(39%, 67.8%, 0%, 19.6%) |
| CIE-LAB | lab(42.25, 53.20, -62.67) |
| CIE-LCH | lch(42.25, 82.21, 310.32°) |
| OKLab | oklab(52.55% 0.0974 -0.1788) |
| OKLCH | oklch(52.55% 0.204 298.6) |
| XYZ | xyz(21.4223, 12.6639, 59.0615) |
| Luminance | 0.1266 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Bluish Purple
#703BE7
ΔE00 4.21
Blueviolet
#8A2BE2
ΔE00 4.22
Bluey Purple
#6241C7
ΔE00 4.67
Darkorchid
#9932CC
ΔE00 5.26
Burple
#6832E3
ΔE00 5.31
Purpleish Blue
#6140EF
ΔE00 6.10
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7D42CD #92CD42
analogous
#424CCD #7D42CD #C342CD
triadic
#7D42CD #CD7D42 #42CD7D
tetradic
#7D42CD #CD424C #92CD42 #42CDC3
square
#7D42CD #CD424C #92CD42 #42CDC3
split-complementary
#7D42CD #CDC342 #4CCD42
monochromatic
#441F76 #602CA6 #7D42CD #9E72DA #C0A3E7
Accessibility & contrast
On white
5.94
#7D42CD on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.53
#7D42CD on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7D42CD
5.94:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7D42CD | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7D42CD | 1.00 | 5.94 | 3.53 | 5.94 |
| #FFFFFF | 5.94 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.53 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.94 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0064D1
Deuteranopia (green-blind)
#0062CA
Tritanopia (blue-blind)
#6A6382
Achromatopsia (no color)
#646464
Design tokens & code
CSS
--color: #7d42cd; /* rgb */ color: rgb(125, 66, 205); /* oklch */ color: oklch(52.6% 0.204 298.6);
Tailwind
colors: {
custom: {
50: '#a97add',
500: '#7d42cd',
950: '#000000',
},
}SCSS
$custom: #7d42cd; $custom-light: #a97add; $custom-dark: #000000;
JSON
{
"hex": "#7d42cd",
"rgb": {
"r": 125,
"g": 66,
"b": 205
},
"hsl": {
"h": 265.468,
"s": 58.159,
"l": 53.137
},
"oklch": {
"l": 0.52555,
"c": 0.20357,
"h": 298.6
},
"luminance": 0.12664
}Semantic roles & 50–950 ramp
primary
#7D42CD
secondary
#BAD397
accent
#E146A0
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83