#7F46B9#7F46B9
#7F46B9 is a mid, vivid violet. Relative luminance 0.124; OKLCH L 51.9% C 0.176 H 303.7°. Best body text is #FFFFFF at 6.04:1 contrast (WCAG AA passes).
Color values
| HEX | #7F46B9 |
|---|---|
| RGB | rgb(127, 70, 185) |
| HSL | hsl(270, 45%, 50%) |
| HSV | hsv(270, 62%, 73%) |
| CMYK | cmyk(31.4%, 62.2%, 0%, 27.5%) |
| CIE-LAB | lab(41.84, 46.59, -51.69) |
| CIE-LCH | lch(41.84, 69.59, 312.03°) |
| OKLab | oklab(51.87% 0.0975 -0.1464) |
| OKLCH | oklch(51.87% 0.176 303.7) |
| XYZ | xyz(19.6975, 12.3952, 47.2443) |
| Luminance | 0.1240 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple
#7851A9
ΔE00 4.17
Darkorchid
#9932CC
ΔE00 5.49
Purply
#983FB2
ΔE00 5.53
Bluey Purple
#6241C7
ΔE00 6.18
Blueviolet
#8A2BE2
ΔE00 6.69
Bluish Purple
#703BE7
ΔE00 7.38
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7F46B9 #80B946
analogous
#4647B9 #7F46B9 #B846B9
triadic
#7F46B9 #B97F46 #46B97F
tetradic
#7F46B9 #B94647 #80B946 #46B9B8
square
#7F46B9 #B94647 #80B946 #46B9B8
split-complementary
#7F46B9 #B9B846 #47B946
monochromatic
#422460 #61358D #7F46B9 #9E72CA #BC9FDB
Accessibility & contrast
On white
6.04
#7F46B9 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.48
#7F46B9 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7F46B9
6.04:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7F46B9 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7F46B9 | 1.00 | 6.04 | 3.48 | 6.04 |
| #FFFFFF | 6.04 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.48 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.04 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0061BD
Deuteranopia (green-blind)
#2763B6
Tritanopia (blue-blind)
#745E79
Achromatopsia (no color)
#636363
Design tokens & code
CSS
--color: #7f46b9; /* rgb */ color: rgb(127, 70, 185); /* oklch */ color: oklch(51.9% 0.176 303.7);
Tailwind
colors: {
custom: {
50: '#a87ccf',
500: '#7f46b9',
950: '#000000',
},
}SCSS
$custom: #7f46b9; $custom-light: #a87ccf; $custom-dark: #000000;
JSON
{
"hex": "#7f46b9",
"rgb": {
"r": 127,
"g": 70,
"b": 185
},
"hsl": {
"h": 269.739,
"s": 45.098,
"l": 50
},
"oklch": {
"l": 0.51866,
"c": 0.17594,
"h": 303.7
},
"luminance": 0.12395
}Semantic roles & 50–950 ramp
primary
#7F46B9
secondary
#AEC794
accent
#D55394
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100A14
muted
#7F7C82