#7F46C8#7F46C8
#7F46C8 is a mid, vivid violet. Relative luminance 0.131; OKLCH L 52.9% C 0.193 H 300.0°. Best body text is #FFFFFF at 5.81:1 contrast (WCAG AA passes).
Color values
| HEX | #7F46C8 |
|---|---|
| RGB | rgb(127, 70, 200) |
| HSL | hsl(266, 54%, 53%) |
| HSV | hsv(266, 65%, 78%) |
| CMYK | cmyk(36.5%, 65%, 0%, 21.6%) |
| CIE-LAB | lab(42.86, 50.32, -58.79) |
| CIE-LCH | lch(42.86, 77.38, 310.56°) |
| OKLab | oklab(52.93% 0.0964 -0.1673) |
| OKLCH | oklch(52.93% 0.193 300) |
| XYZ | xyz(21.3653, 13.0623, 56.0280) |
| Luminance | 0.1306 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Blueviolet
#8A2BE2
ΔE00 5.12
Darkorchid
#9932CC
ΔE00 5.22
Bluey Purple
#6241C7
ΔE00 5.29
Bluish Purple
#703BE7
ΔE00 5.31
Royal Purple
#7851A9
ΔE00 5.86
Purpley
#8756E4
ΔE00 6.19
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7F46C8 #8FC846
analogous
#464EC8 #7F46C8 #C046C8
triadic
#7F46C8 #C87F46 #46C87F
tetradic
#7F46C8 #C8464E #8FC846 #46C8C0
square
#7F46C8 #C8464E #8FC846 #46C8C0
split-complementary
#7F46C8 #C8C046 #4EC846
monochromatic
#452272 #6130A1 #7F46C8 #A075D6 #C0A4E4
Accessibility & contrast
On white
5.81
#7F46C8 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.61
#7F46C8 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7F46C8
5.81:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7F46C8 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7F46C8 | 1.00 | 5.81 | 3.61 | 5.81 |
| #FFFFFF | 5.81 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.61 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.81 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0065CC
Deuteranopia (green-blind)
#0064C5
Tritanopia (blue-blind)
#6F6381
Achromatopsia (no color)
#656565
Design tokens & code
CSS
--color: #7f46c8; /* rgb */ color: rgb(127, 70, 200); /* oklch */ color: oklch(52.9% 0.193 300.0);
Tailwind
colors: {
custom: {
50: '#a97dd9',
500: '#7f46c8',
950: '#000000',
},
}SCSS
$custom: #7f46c8; $custom-light: #a97dd9; $custom-dark: #000000;
JSON
{
"hex": "#7f46c8",
"rgb": {
"r": 127,
"g": 70,
"b": 200
},
"hsl": {
"h": 266.308,
"s": 54.167,
"l": 52.941
},
"oklch": {
"l": 0.52928,
"c": 0.1931,
"h": 300
},
"luminance": 0.13062
}Semantic roles & 50–950 ramp
primary
#7F46C8
secondary
#B8D199
accent
#DE4A9D
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100A15
muted
#7F7C83