#7B42CF#7B42CF
#7B42CF is a mid, highly saturated violet. Relative luminance 0.126; OKLCH L 52.5% C 0.206 H 297.3°. Best body text is #FFFFFF at 5.96:1 contrast (WCAG AA passes).
Color values
| HEX | #7B42CF |
|---|---|
| RGB | rgb(123, 66, 207) |
| HSL | hsl(264, 59%, 54%) |
| HSV | hsv(264, 68%, 81%) |
| CMYK | cmyk(40.6%, 68.1%, 0%, 18.8%) |
| CIE-LAB | lab(42.17, 53.32, -63.97) |
| CIE-LCH | lch(42.17, 83.28, 309.81°) |
| OKLab | oklab(52.49% 0.0943 -0.1826) |
| OKLCH | oklch(52.49% 0.206 297.3) |
| XYZ | xyz(21.3762, 12.6120, 60.3275) |
| Luminance | 0.1261 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Bluish Purple
#703BE7
ΔE00 3.78
Blueviolet
#8A2BE2
ΔE00 4.22
Bluey Purple
#6241C7
ΔE00 4.34
Burple
#6832E3
ΔE00 4.92
Purpleish Blue
#6140EF
ΔE00 5.62
Darkorchid
#9932CC
ΔE00 5.64
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7B42CF #96CF42
analogous
#424FCF #7B42CF #C142CF
triadic
#7B42CF #CF7B42 #42CF7B
tetradic
#7B42CF #CF424F #96CF42 #42CFC1
square
#7B42CF #CF424F #96CF42 #42CFC1
split-complementary
#7B42CF #CFC142 #4FCF42
monochromatic
#431F78 #5E2BA9 #7B42CF #9D73DB #BFA4E8
Accessibility & contrast
On white
5.96
#7B42CF on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.52
#7B42CF on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7B42CF
5.96:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7B42CF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7B42CF | 1.00 | 5.96 | 3.52 | 5.96 |
| #FFFFFF | 5.96 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.52 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.96 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0064D3
Deuteranopia (green-blind)
#0062CC
Tritanopia (blue-blind)
#666483
Achromatopsia (no color)
#646464
Design tokens & code
CSS
--color: #7b42cf; /* rgb */ color: rgb(123, 66, 207); /* oklch */ color: oklch(52.5% 0.206 297.3);
Tailwind
colors: {
custom: {
50: '#a87adf',
500: '#7b42cf',
950: '#000000',
},
}SCSS
$custom: #7b42cf; $custom-light: #a87adf; $custom-dark: #000000;
JSON
{
"hex": "#7b42cf",
"rgb": {
"r": 123,
"g": 66,
"b": 207
},
"hsl": {
"h": 264.255,
"s": 59.494,
"l": 53.529
},
"oklch": {
"l": 0.52494,
"c": 0.20556,
"h": 297.3
},
"luminance": 0.12612
}Semantic roles & 50–950 ramp
primary
#7B42CF
secondary
#BCD598
accent
#E345A3
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83