#7B40CF#7B40CF
#7B40CF is a mid, highly saturated violet. Relative luminance 0.124; OKLCH L 52.2% C 0.208 H 297.6°. Best body text is #FFFFFF at 6.04:1 contrast (WCAG AA passes).
Color values
| HEX | #7B40CF |
|---|---|
| RGB | rgb(123, 64, 207) |
| HSL | hsl(265, 60%, 53%) |
| HSV | hsv(265, 69%, 81%) |
| CMYK | cmyk(40.6%, 69.1%, 0%, 18.8%) |
| CIE-LAB | lab(41.82, 54.31, -64.55) |
| CIE-LCH | lch(41.82, 84.35, 310.08°) |
| OKLab | oklab(52.24% 0.0963 -0.1843) |
| OKLCH | oklch(52.24% 0.208 297.6) |
| XYZ | xyz(21.2614, 12.3824, 60.2892) |
| Luminance | 0.1238 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Bluish Purple
#703BE7
ΔE00 3.68
Blueviolet
#8A2BE2
ΔE00 3.95
Bluey Purple
#6241C7
ΔE00 4.29
Burple
#6832E3
ΔE00 4.67
Darkorchid
#9932CC
ΔE00 5.51
Purpley Blue
#5F34E7
ΔE00 5.59
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7B40CF #94CF40
analogous
#404CCF #7B40CF #C240CF
triadic
#7B40CF #CF7B40 #40CF7B
tetradic
#7B40CF #CF404C #94CF40 #40CFC2
square
#7B40CF #CF404C #94CF40 #40CFC2
split-complementary
#7B40CF #CFC240 #4CCF40
monochromatic
#431E77 #5E2AA8 #7B40CF #9D71DB #BFA2E8
Accessibility & contrast
On white
6.04
#7B40CF on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.48
#7B40CF on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7B40CF
6.04:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7B40CF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7B40CF | 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)
#0063D3
Deuteranopia (green-blind)
#0061CC
Tritanopia (blue-blind)
#666383
Achromatopsia (no color)
#636363
Design tokens & code
CSS
--color: #7b40cf; /* rgb */ color: rgb(123, 64, 207); /* oklch */ color: oklch(52.2% 0.208 297.6);
Tailwind
colors: {
custom: {
50: '#a879df',
500: '#7b40cf',
950: '#000000',
},
}SCSS
$custom: #7b40cf; $custom-light: #a879df; $custom-dark: #000000;
JSON
{
"hex": "#7b40cf",
"rgb": {
"r": 123,
"g": 64,
"b": 207
},
"hsl": {
"h": 264.755,
"s": 59.833,
"l": 53.137
},
"oklch": {
"l": 0.5224,
"c": 0.20798,
"h": 297.6
},
"luminance": 0.12383
}Semantic roles & 50–950 ramp
primary
#7B40CF
secondary
#BBD497
accent
#E345A2
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83