#7F42C8#7F42C8
#7F42C8 is a mid, vivid violet. Relative luminance 0.126; OKLCH L 52.4% C 0.198 H 300.5°. Best body text is #FFFFFF at 5.97:1 contrast (WCAG AA passes).
Color values
| HEX | #7F42C8 |
|---|---|
| RGB | rgb(127, 66, 200) |
| HSL | hsl(267, 55%, 52%) |
| HSV | hsv(267, 67%, 78%) |
| CMYK | cmyk(36.5%, 67%, 0%, 21.6%) |
| CIE-LAB | lab(42.12, 52.34, -59.98) |
| CIE-LCH | lch(42.12, 79.61, 311.11°) |
| OKLab | oklab(52.4% 0.1008 -0.1708) |
| OKLCH | oklch(52.4% 0.198 300.5) |
| XYZ | xyz(21.1234, 12.5784, 55.9474) |
| Luminance | 0.1258 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Blueviolet
#8A2BE2
ΔE00 4.54
Darkorchid
#9932CC
ΔE00 4.83
Bluish Purple
#703BE7
ΔE00 5.05
Bluey Purple
#6241C7
ΔE00 5.09
Burple
#6832E3
ΔE00 5.99
Royal Purple
#7851A9
ΔE00 6.32
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7F42C8 #8BC842
analogous
#4248C8 #7F42C8 #C242C8
triadic
#7F42C8 #C87F42 #42C87F
tetradic
#7F42C8 #C84248 #8BC842 #42C8C2
square
#7F42C8 #C84248 #8BC842 #42C8C2
split-complementary
#7F42C8 #C8C242 #48C842
monochromatic
#44206F #612E9F #7F42C8 #9F71D6 #BFA1E4
Accessibility & contrast
On white
5.97
#7F42C8 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.52
#7F42C8 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7F42C8
5.97:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7F42C8 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7F42C8 | 1.00 | 5.97 | 3.52 | 5.97 |
| #FFFFFF | 5.97 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.52 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.97 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0063CC
Deuteranopia (green-blind)
#0063C5
Tritanopia (blue-blind)
#6F6180
Achromatopsia (no color)
#636363
Design tokens & code
CSS
--color: #7f42c8; /* rgb */ color: rgb(127, 66, 200); /* oklch */ color: oklch(52.4% 0.198 300.5);
Tailwind
colors: {
custom: {
50: '#a97ada',
500: '#7f42c8',
950: '#000000',
},
}SCSS
$custom: #7f42c8; $custom-light: #a97ada; $custom-dark: #000000;
JSON
{
"hex": "#7f42c8",
"rgb": {
"r": 127,
"g": 66,
"b": 200
},
"hsl": {
"h": 267.313,
"s": 54.918,
"l": 52.157
},
"oklch": {
"l": 0.52399,
"c": 0.1983,
"h": 300.5
},
"luminance": 0.12579
}Semantic roles & 50–950 ramp
primary
#7F42C8
secondary
#B6D096
accent
#DE4A9B
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83