#7F42BC#7F42BC
#7F42BC is a mid, vivid violet. Relative luminance 0.120; OKLCH L 51.5% C 0.185 H 303.5°. Best body text is #FFFFFF at 6.16:1 contrast (WCAG AA passes).
Color values
| HEX | #7F42BC |
|---|---|
| RGB | rgb(127, 66, 188) |
| HSL | hsl(270, 48%, 50%) |
| HSV | hsv(270, 65%, 74%) |
| CMYK | cmyk(32.4%, 64.9%, 0%, 26.3%) |
| CIE-LAB | lab(41.28, 49.39, -54.35) |
| CIE-LCH | lch(41.28, 73.44, 312.26°) |
| OKLab | oklab(51.53% 0.102 -0.1542) |
| OKLCH | oklch(51.53% 0.185 303.5) |
| XYZ | xyz(19.7756, 12.0393, 48.8492) |
| Luminance | 0.1204 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 4.98
Royal Purple
#7851A9
ΔE00 5.13
Purply
#983FB2
ΔE00 5.70
Bluey Purple
#6241C7
ΔE00 5.74
Blueviolet
#8A2BE2
ΔE00 5.85
Bluish Purple
#703BE7
ΔE00 6.72
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7F42BC #7FBC42
analogous
#4242BC #7F42BC #BC42BC
triadic
#7F42BC #BC7F42 #42BC7F
tetradic
#7F42BC #BC4242 #7FBC42 #42BCBC
square
#7F42BC #BC4242 #7FBC42 #42BCBC
split-complementary
#7F42BC #BCBC42 #42BC42
monochromatic
#422261 #60328F #7F42BC #9E6FCC #BC9CDC
Accessibility & contrast
On white
6.16
#7F42BC on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.41
#7F42BC on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7F42BC
6.16:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7F42BC | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7F42BC | 1.00 | 6.16 | 3.41 | 6.16 |
| #FFFFFF | 6.16 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.41 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.16 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0060C0
Deuteranopia (green-blind)
#1A61B9
Tritanopia (blue-blind)
#735D79
Achromatopsia (no color)
#616161
Design tokens & code
CSS
--color: #7f42bc; /* rgb */ color: rgb(127, 66, 188); /* oklch */ color: oklch(51.5% 0.185 303.5);
Tailwind
colors: {
custom: {
50: '#a87ad1',
500: '#7f42bc',
950: '#000000',
},
}SCSS
$custom: #7f42bc; $custom-light: #a87ad1; $custom-dark: #000000;
JSON
{
"hex": "#7f42bc",
"rgb": {
"r": 127,
"g": 66,
"b": 188
},
"hsl": {
"h": 270,
"s": 48.031,
"l": 49.804
},
"oklch": {
"l": 0.51526,
"c": 0.18494,
"h": 303.5
},
"luminance": 0.12039
}Semantic roles & 50–950 ramp
primary
#7F42BC
secondary
#ADC991
accent
#D85094
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100914
muted
#7F7B82