#7F42BF#7F42BF
#7F42BF is a mid, vivid violet. Relative luminance 0.122; OKLCH L 51.7% C 0.188 H 302.7°. Best body text is #FFFFFF at 6.12:1 contrast (WCAG AA passes).
Color values
| HEX | #7F42BF |
|---|---|
| RGB | rgb(127, 66, 191) |
| HSL | hsl(269, 49%, 50%) |
| HSV | hsv(269, 65%, 75%) |
| CMYK | cmyk(33.5%, 65.4%, 0%, 25.1%) |
| CIE-LAB | lab(41.48, 50.12, -55.77) |
| CIE-LCH | lch(41.48, 74.98, 311.95°) |
| OKLab | oklab(51.74% 0.1018 -0.1584) |
| OKLCH | oklch(51.74% 0.188 302.7) |
| XYZ | xyz(20.1024, 12.1700, 50.5701) |
| Luminance | 0.1217 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 4.88
Royal Purple
#7851A9
ΔE00 5.41
Blueviolet
#8A2BE2
ΔE00 5.49
Bluey Purple
#6241C7
ΔE00 5.51
Purply
#983FB2
ΔE00 5.94
Bluish Purple
#703BE7
ΔE00 6.28
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7F42BF #82BF42
analogous
#4243BF #7F42BF #BD42BF
triadic
#7F42BF #BF7F42 #42BF7F
tetradic
#7F42BF #BF4243 #82BF42 #42BFBD
square
#7F42BF #BF4243 #82BF42 #42BFBD
split-complementary
#7F42BF #BFBD42 #43BF42
monochromatic
#432265 #613292 #7F42BF #9E70CE #BD9DDE
Accessibility & contrast
On white
6.12
#7F42BF on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.43
#7F42BF on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7F42BF
6.12:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7F42BF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7F42BF | 1.00 | 6.12 | 3.43 | 6.12 |
| #FFFFFF | 6.12 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.43 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.12 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0061C3
Deuteranopia (green-blind)
#1261BC
Tritanopia (blue-blind)
#725E7B
Achromatopsia (no color)
#626262
Design tokens & code
CSS
--color: #7f42bf; /* rgb */ color: rgb(127, 66, 191); /* oklch */ color: oklch(51.7% 0.188 302.7);
Tailwind
colors: {
custom: {
50: '#a97ad3',
500: '#7f42bf',
950: '#000000',
},
}SCSS
$custom: #7f42bf; $custom-light: #a97ad3; $custom-dark: #000000;
JSON
{
"hex": "#7f42bf",
"rgb": {
"r": 127,
"g": 66,
"b": 191
},
"hsl": {
"h": 269.28,
"s": 49.407,
"l": 50.392
},
"oklch": {
"l": 0.5174,
"c": 0.18829,
"h": 302.7
},
"luminance": 0.1217
}Semantic roles & 50–950 ramp
primary
#7F42BF
secondary
#AFCA93
accent
#D94F96
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100914
muted
#7F7B83