#7F42CD#7F42CD
#7F42CD is a mid, highly saturated violet. Relative luminance 0.128; OKLCH L 52.8% C 0.204 H 299.4°. Best body text is #FFFFFF at 5.89:1 contrast (WCAG AA passes).
Color values
| HEX | #7F42CD |
|---|---|
| RGB | rgb(127, 66, 205) |
| HSL | hsl(266, 58%, 53%) |
| HSV | hsv(266, 68%, 80%) |
| CMYK | cmyk(38%, 67.8%, 0%, 19.6%) |
| CIE-LAB | lab(42.48, 53.59, -62.29) |
| CIE-LCH | lch(42.48, 82.16, 310.71°) |
| OKLab | oklab(52.77% 0.1001 -0.1776) |
| OKLCH | oklch(52.77% 0.204 299.4) |
| XYZ | xyz(21.7173, 12.8160, 59.0753) |
| Luminance | 0.1282 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Blueviolet
#8A2BE2
ΔE00 4.13
Bluish Purple
#703BE7
ΔE00 4.43
Darkorchid
#9932CC
ΔE00 4.94
Bluey Purple
#6241C7
ΔE00 5.02
Burple
#6832E3
ΔE00 5.57
Purpleish Blue
#6140EF
ΔE00 6.35
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7F42CD #90CD42
analogous
#424ACD #7F42CD #C442CD
triadic
#7F42CD #CD7F42 #42CD7F
tetradic
#7F42CD #CD424A #90CD42 #42CDC4
square
#7F42CD #CD424A #90CD42 #42CDC4
split-complementary
#7F42CD #CDC442 #4ACD42
monochromatic
#451F76 #612CA6 #7F42CD #A072DA #C1A3E7
Accessibility & contrast
On white
5.89
#7F42CD on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.56
#7F42CD on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7F42CD
5.89:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7F42CD | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7F42CD | 1.00 | 5.89 | 3.56 | 5.89 |
| #FFFFFF | 5.89 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.56 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.89 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0064D1
Deuteranopia (green-blind)
#0063CA
Tritanopia (blue-blind)
#6D6382
Achromatopsia (no color)
#646464
Design tokens & code
CSS
--color: #7f42cd; /* rgb */ color: rgb(127, 66, 205); /* oklch */ color: oklch(52.8% 0.204 299.4);
Tailwind
colors: {
custom: {
50: '#aa7bdd',
500: '#7f42cd',
950: '#000000',
},
}SCSS
$custom: #7f42cd; $custom-light: #aa7bdd; $custom-dark: #000000;
JSON
{
"hex": "#7f42cd",
"rgb": {
"r": 127,
"g": 66,
"b": 205
},
"hsl": {
"h": 266.331,
"s": 58.159,
"l": 53.137
},
"oklch": {
"l": 0.52774,
"c": 0.20385,
"h": 299.4
},
"luminance": 0.12816
}Semantic roles & 50–950 ramp
primary
#7F42CD
secondary
#B9D397
accent
#E1469D
background
#FAF7FD
surface
#F5EEFB
border
#CFC9D4
text
#110A15
muted
#807C83