#7F46CA#7F46CA
#7F46CA is a mid, vivid violet. Relative luminance 0.132; OKLCH L 53.1% C 0.195 H 299.5°. Best body text is #FFFFFF at 5.78:1 contrast (WCAG AA passes).
Color values
| HEX | #7F46CA |
|---|---|
| RGB | rgb(127, 70, 202) |
| HSL | hsl(266, 55%, 53%) |
| HSV | hsv(266, 65%, 79%) |
| CMYK | cmyk(37.1%, 65.3%, 0%, 20.8%) |
| CIE-LAB | lab(43.00, 50.82, -59.72) |
| CIE-LCH | lch(43.00, 78.42, 310.40°) |
| OKLab | oklab(53.07% 0.0962 -0.17) |
| OKLCH | oklch(53.07% 0.195 299.5) |
| XYZ | xyz(21.6006, 13.1564, 57.2671) |
| Luminance | 0.1316 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Blueviolet
#8A2BE2
ΔE00 4.97
Bluish Purple
#703BE7
ΔE00 5.07
Bluey Purple
#6241C7
ΔE00 5.25
Darkorchid
#9932CC
ΔE00 5.26
Purpley
#8756E4
ΔE00 5.98
Royal Purple
#7851A9
ΔE00 6.11
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7F46CA #91CA46
analogous
#464FCA #7F46CA #C146CA
triadic
#7F46CA #CA7F46 #46CA7F
tetradic
#7F46CA #CA464F #91CA46 #46CAC1
square
#7F46CA #CA464F #91CA46 #46CAC1
split-complementary
#7F46CA #CAC146 #4FCA46
monochromatic
#452174 #612FA4 #7F46CA #A076D8 #C1A5E5
Accessibility & contrast
On white
5.78
#7F46CA on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.63
#7F46CA on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7F46CA
5.78:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7F46CA | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7F46CA | 1.00 | 5.78 | 3.63 | 5.78 |
| #FFFFFF | 5.78 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.63 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.78 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0065CE
Deuteranopia (green-blind)
#0064C7
Tritanopia (blue-blind)
#6E6482
Achromatopsia (no color)
#666666
Design tokens & code
CSS
--color: #7f46ca; /* rgb */ color: rgb(127, 70, 202); /* oklch */ color: oklch(53.1% 0.195 299.5);
Tailwind
colors: {
custom: {
50: '#a97ddb',
500: '#7f46ca',
950: '#000000',
},
}SCSS
$custom: #7f46ca; $custom-light: #a97ddb; $custom-dark: #000000;
JSON
{
"hex": "#7f46ca",
"rgb": {
"r": 127,
"g": 70,
"b": 202
},
"hsl": {
"h": 265.909,
"s": 55.462,
"l": 53.333
},
"oklch": {
"l": 0.53074,
"c": 0.19537,
"h": 299.5
},
"luminance": 0.13157
}Semantic roles & 50–950 ramp
primary
#7F46CA
secondary
#BAD29A
accent
#DF499E
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100A15
muted
#7F7C83