#7F45BF#7F45BF
#7F45BF is a mid, vivid violet. Relative luminance 0.125; OKLCH L 52.1% C 0.184 H 302.3°. Best body text is #FFFFFF at 5.99:1 contrast (WCAG AA passes).
Color values
| HEX | #7F45BF |
|---|---|
| RGB | rgb(127, 69, 191) |
| HSL | hsl(269, 49%, 51%) |
| HSV | hsv(269, 64%, 75%) |
| CMYK | cmyk(33.5%, 63.9%, 0%, 25.1%) |
| CIE-LAB | lab(42.05, 48.59, -54.87) |
| CIE-LCH | lch(42.05, 73.29, 311.53°) |
| OKLab | oklab(52.15% 0.0983 -0.1558) |
| OKLCH | oklch(52.15% 0.184 302.3) |
| XYZ | xyz(20.2823, 12.5298, 50.6301) |
| Luminance | 0.1253 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple
#7851A9
ΔE00 4.95
Darkorchid
#9932CC
ΔE00 5.15
Bluey Purple
#6241C7
ΔE00 5.63
Blueviolet
#8A2BE2
ΔE00 5.85
Purply
#983FB2
ΔE00 5.98
Bluish Purple
#703BE7
ΔE00 6.43
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7F45BF #85BF45
analogous
#4548BF #7F45BF #BC45BF
triadic
#7F45BF #BF7F45 #45BF7F
tetradic
#7F45BF #BF4548 #85BF45 #45BFBC
square
#7F45BF #BF4548 #85BF45 #45BFBC
split-complementary
#7F45BF #BFBC45 #48BF45
monochromatic
#432366 #613394 #7F45BF #9E73CF #BEA0DE
Accessibility & contrast
On white
5.99
#7F45BF on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.51
#7F45BF on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7F45BF
5.99:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7F45BF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7F45BF | 1.00 | 5.99 | 3.51 | 5.99 |
| #FFFFFF | 5.99 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.51 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.99 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0062C3
Deuteranopia (green-blind)
#1A63BC
Tritanopia (blue-blind)
#725F7C
Achromatopsia (no color)
#636363
Design tokens & code
CSS
--color: #7f45bf; /* rgb */ color: rgb(127, 69, 191); /* oklch */ color: oklch(52.1% 0.184 302.3);
Tailwind
colors: {
custom: {
50: '#a97cd3',
500: '#7f45bf',
950: '#000000',
},
}SCSS
$custom: #7f45bf; $custom-light: #a97cd3; $custom-dark: #000000;
JSON
{
"hex": "#7f45bf",
"rgb": {
"r": 127,
"g": 69,
"b": 191
},
"hsl": {
"h": 268.525,
"s": 48.8,
"l": 50.98
},
"oklch": {
"l": 0.52145,
"c": 0.18421,
"h": 302.3
},
"luminance": 0.1253
}Semantic roles & 50–950 ramp
primary
#7F45BF
secondary
#B1CB95
accent
#D84F97
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100A14
muted
#7F7C83