#7F45C7#7F45C7
#7F45C7 is a mid, vivid violet. Relative luminance 0.129; OKLCH L 52.7% C 0.193 H 300.3°. Best body text is #FFFFFF at 5.87:1 contrast (WCAG AA passes).
Color values
| HEX | #7F45C7 |
|---|---|
| RGB | rgb(127, 69, 199) |
| HSL | hsl(267, 54%, 53%) |
| HSV | hsv(267, 65%, 78%) |
| CMYK | cmyk(36.2%, 65.3%, 0%, 22%) |
| CIE-LAB | lab(42.60, 50.58, -58.63) |
| CIE-LCH | lch(42.60, 77.43, 310.79°) |
| OKLab | oklab(52.72% 0.0976 -0.1668) |
| OKLCH | oklch(52.72% 0.193 300.3) |
| XYZ | xyz(21.1868, 12.8916, 55.3939) |
| Luminance | 0.1289 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Blueviolet
#8A2BE2
ΔE00 5.05
Darkorchid
#9932CC
ΔE00 5.10
Bluey Purple
#6241C7
ΔE00 5.25
Bluish Purple
#703BE7
ΔE00 5.35
Royal Purple
#7851A9
ΔE00 5.85
Burple
#6832E3
ΔE00 6.44
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7F45C7 #8DC745
analogous
#454CC7 #7F45C7 #C045C7
triadic
#7F45C7 #C77F45 #45C77F
tetradic
#7F45C7 #C7454C #8DC745 #45C7C0
square
#7F45C7 #C7454C #8DC745 #45C7C0
split-complementary
#7F45C7 #C7C045 #4CC745
monochromatic
#452270 #61309F #7F45C7 #9F74D5 #C0A3E3
Accessibility & contrast
On white
5.87
#7F45C7 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.58
#7F45C7 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7F45C7
5.87:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7F45C7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7F45C7 | 1.00 | 5.87 | 3.58 | 5.87 |
| #FFFFFF | 5.87 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.58 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.87 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0064CB
Deuteranopia (green-blind)
#0064C4
Tritanopia (blue-blind)
#6F6280
Achromatopsia (no color)
#656565
Design tokens & code
CSS
--color: #7f45c7; /* rgb */ color: rgb(127, 69, 199); /* oklch */ color: oklch(52.7% 0.193 300.3);
Tailwind
colors: {
custom: {
50: '#a97cd9',
500: '#7f45c7',
950: '#000000',
},
}SCSS
$custom: #7f45c7; $custom-light: #a97cd9; $custom-dark: #000000;
JSON
{
"hex": "#7f45c7",
"rgb": {
"r": 127,
"g": 69,
"b": 199
},
"hsl": {
"h": 266.769,
"s": 53.719,
"l": 52.549
},
"oklch": {
"l": 0.5272,
"c": 0.19329,
"h": 300.3
},
"luminance": 0.12892
}Semantic roles & 50–950 ramp
primary
#7F45C7
secondary
#B7D098
accent
#DD4B9C
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100A15
muted
#7F7C83