#7D42C4#7D42C4
#7D42C4 is a mid, vivid violet. Relative luminance 0.122; OKLCH L 51.9% C 0.194 H 300.6°. Best body text is #FFFFFF at 6.09:1 contrast (WCAG AA passes).
Color values
| HEX | #7D42C4 |
|---|---|
| RGB | rgb(125, 66, 196) |
| HSL | hsl(267, 52%, 51%) |
| HSV | hsv(267, 66%, 77%) |
| CMYK | cmyk(36.2%, 66.3%, 0%, 23.1%) |
| CIE-LAB | lab(41.60, 50.94, -58.52) |
| CIE-LCH | lch(41.60, 77.58, 311.04°) |
| OKLab | oklab(51.88% 0.0985 -0.1665) |
| OKLCH | oklch(51.88% 0.194 300.6) |
| XYZ | xyz(20.3670, 12.2418, 53.5037) |
| Luminance | 0.1224 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Bluey Purple
#6241C7
ΔE00 4.85
Blueviolet
#8A2BE2
ΔE00 4.99
Darkorchid
#9932CC
ΔE00 5.13
Bluish Purple
#703BE7
ΔE00 5.38
Royal Purple
#7851A9
ΔE00 5.92
Burple
#6832E3
ΔE00 6.13
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7D42C4 #89C442
analogous
#4248C4 #7D42C4 #BE42C4
triadic
#7D42C4 #C47D42 #42C47D
tetradic
#7D42C4 #C44248 #89C442 #42C4BE
square
#7D42C4 #C44248 #89C442 #42C4BE
split-complementary
#7D42C4 #C4BE42 #48C442
monochromatic
#42216A #603099 #7D42C4 #9D71D3 #BD9FE1
Accessibility & contrast
On white
6.09
#7D42C4 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.45
#7D42C4 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7D42C4
6.09:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7D42C4 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7D42C4 | 1.00 | 6.09 | 3.45 | 6.09 |
| #FFFFFF | 6.09 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.45 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.09 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0062C8
Deuteranopia (green-blind)
#0061C1
Tritanopia (blue-blind)
#6E607D
Achromatopsia (no color)
#626262
Design tokens & code
CSS
--color: #7d42c4; /* rgb */ color: rgb(125, 66, 196); /* oklch */ color: oklch(51.9% 0.194 300.6);
Tailwind
colors: {
custom: {
50: '#a87ad7',
500: '#7d42c4',
950: '#000000',
},
}SCSS
$custom: #7d42c4; $custom-light: #a87ad7; $custom-dark: #000000;
JSON
{
"hex": "#7d42c4",
"rgb": {
"r": 125,
"g": 66,
"b": 196
},
"hsl": {
"h": 267.231,
"s": 52.419,
"l": 51.373
},
"oklch": {
"l": 0.5188,
"c": 0.19351,
"h": 300.6
},
"luminance": 0.12242
}Semantic roles & 50–950 ramp
primary
#7D42C4
secondary
#B4CE94
accent
#DC4C9B
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100914
muted
#7F7B83