#7F46CB#7F46CB
#7F46CB is a mid, vivid violet. Relative luminance 0.132; OKLCH L 53.1% C 0.197 H 299.3°. Best body text is #FFFFFF at 5.77:1 contrast (WCAG AA passes).
Color values
| HEX | #7F46CB |
|---|---|
| RGB | rgb(127, 70, 203) |
| HSL | hsl(266, 56%, 54%) |
| HSV | hsv(266, 66%, 80%) |
| CMYK | cmyk(37.4%, 65.5%, 0%, 20.4%) |
| CIE-LAB | lab(43.07, 51.08, -60.18) |
| CIE-LCH | lch(43.07, 78.94, 310.32°) |
| OKLab | oklab(53.15% 0.0961 -0.1714) |
| OKLCH | oklch(53.15% 0.197 299.3) |
| XYZ | xyz(21.7194, 13.2039, 57.8927) |
| Luminance | 0.1320 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Blueviolet
#8A2BE2
ΔE00 4.90
Bluish Purple
#703BE7
ΔE00 4.96
Bluey Purple
#6241C7
ΔE00 5.25
Darkorchid
#9932CC
ΔE00 5.28
Purpley
#8756E4
ΔE00 5.88
Royal Purple
#7851A9
ΔE00 6.23
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7F46CB #92CB46
analogous
#464FCB #7F46CB #C146CB
triadic
#7F46CB #CB7F46 #46CB7F
tetradic
#7F46CB #CB464F #92CB46 #46CBC1
square
#7F46CB #CB464F #92CB46 #46CBC1
split-complementary
#7F46CB #CBC146 #4FCB46
monochromatic
#452176 #612EA5 #7F46CB #A076D8 #C1A6E6
Accessibility & contrast
On white
5.77
#7F46CB on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.64
#7F46CB on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7F46CB
5.77:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7F46CB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7F46CB | 1.00 | 5.77 | 3.64 | 5.77 |
| #FFFFFF | 5.77 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.64 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.77 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0066CF
Deuteranopia (green-blind)
#0065C8
Tritanopia (blue-blind)
#6E6482
Achromatopsia (no color)
#666666
Design tokens & code
CSS
--color: #7f46cb; /* rgb */ color: rgb(127, 70, 203); /* oklch */ color: oklch(53.1% 0.197 299.3);
Tailwind
colors: {
custom: {
50: '#aa7ddc',
500: '#7f46cb',
950: '#000000',
},
}SCSS
$custom: #7f46cb; $custom-light: #aa7ddc; $custom-dark: #000000;
JSON
{
"hex": "#7f46cb",
"rgb": {
"r": 127,
"g": 70,
"b": 203
},
"hsl": {
"h": 265.714,
"s": 56.118,
"l": 53.529
},
"oklch": {
"l": 0.53147,
"c": 0.19651,
"h": 299.3
},
"luminance": 0.13204
}Semantic roles & 50–950 ramp
primary
#7F46CB
secondary
#BAD39A
accent
#DF489F
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100A15
muted
#7F7C83