#7F45B9#7F45B9
#7F45B9 is a mid, vivid violet. Relative luminance 0.123; OKLCH L 51.7% C 0.177 H 303.8°. Best body text is #FFFFFF at 6.08:1 contrast (WCAG AA passes).
Color values
| HEX | #7F45B9 |
|---|---|
| RGB | rgb(127, 69, 185) |
| HSL | hsl(270, 46%, 50%) |
| HSV | hsv(270, 63%, 73%) |
| CMYK | cmyk(31.4%, 62.7%, 0%, 27.5%) |
| CIE-LAB | lab(41.64, 47.11, -52.00) |
| CIE-LCH | lch(41.64, 70.17, 312.17°) |
| OKLab | oklab(51.73% 0.0987 -0.1474) |
| OKLCH | oklch(51.73% 0.177 303.8) |
| XYZ | xyz(19.6355, 12.2711, 47.2236) |
| Luminance | 0.1227 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple
#7851A9
ΔE00 4.35
Darkorchid
#9932CC
ΔE00 5.38
Purply
#983FB2
ΔE00 5.50
Bluey Purple
#6241C7
ΔE00 6.12
Blueviolet
#8A2BE2
ΔE00 6.56
Bluish Purple
#703BE7
ΔE00 7.32
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7F45B9 #7FB945
analogous
#4545B9 #7F45B9 #B945B9
triadic
#7F45B9 #B97F45 #45B97F
tetradic
#7F45B9 #B94545 #7FB945 #45B9B9
square
#7F45B9 #B94545 #7FB945 #45B9B9
split-complementary
#7F45B9 #B9B945 #45B945
monochromatic
#422460 #60348C #7F45B9 #9E71CA #BC9EDB
Accessibility & contrast
On white
6.08
#7F45B9 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.45
#7F45B9 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7F45B9
6.08:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7F45B9 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7F45B9 | 1.00 | 6.08 | 3.45 | 6.08 |
| #FFFFFF | 6.08 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.45 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.08 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0061BD
Deuteranopia (green-blind)
#2562B6
Tritanopia (blue-blind)
#745D79
Achromatopsia (no color)
#626262
Design tokens & code
CSS
--color: #7f45b9; /* rgb */ color: rgb(127, 69, 185); /* oklch */ color: oklch(51.7% 0.177 303.8);
Tailwind
colors: {
custom: {
50: '#a87ccf',
500: '#7f45b9',
950: '#000000',
},
}SCSS
$custom: #7f45b9; $custom-light: #a87ccf; $custom-dark: #000000;
JSON
{
"hex": "#7f45b9",
"rgb": {
"r": 127,
"g": 69,
"b": 185
},
"hsl": {
"h": 270,
"s": 45.669,
"l": 49.804
},
"oklch": {
"l": 0.51726,
"c": 0.17738,
"h": 303.8
},
"luminance": 0.12271
}Semantic roles & 50–950 ramp
primary
#7F45B9
secondary
#ADC793
accent
#D55294
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100A14
muted
#7F7C82