#7540C8#7540C8
#7540C8 is a mid, vivid violet. Relative luminance 0.116; OKLCH L 51.1% C 0.200 H 296.5°. Best body text is #FFFFFF at 6.32:1 contrast (WCAG AA passes).
Color values
| HEX | #7540C8 |
|---|---|
| RGB | rgb(117, 64, 200) |
| HSL | hsl(263, 55%, 52%) |
| HSV | hsv(263, 68%, 78%) |
| CMYK | cmyk(41.5%, 68%, 0%, 21.6%) |
| CIE-LAB | lab(40.60, 51.38, -62.50) |
| CIE-LCH | lch(40.60, 80.91, 309.42°) |
| OKLab | oklab(51.05% 0.089 -0.1785) |
| OKLCH | oklch(51.05% 0.2 296.5) |
| XYZ | xyz(19.5921, 11.6184, 55.8427) |
| Luminance | 0.1162 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Bluey Purple
#6241C7
ΔE00 3.24
Bluish Purple
#703BE7
ΔE00 4.19
Burple
#6832E3
ΔE00 4.65
Blueviolet
#8A2BE2
ΔE00 4.97
Blurple
#5539CC
ΔE00 5.38
Purpley Blue
#5F34E7
ΔE00 5.47
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7540C8 #93C840
analogous
#404FC8 #7540C8 #B940C8
triadic
#7540C8 #C87540 #40C875
tetradic
#7540C8 #C8404F #93C840 #40C8B9
square
#7540C8 #C8404F #93C840 #40C8B9
split-complementary
#7540C8 #C8B940 #4FC840
monochromatic
#3E206E #592D9D #7540C8 #9770D6 #BA9FE3
Accessibility & contrast
On white
6.32
#7540C8 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.32
#7540C8 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7540C8
6.32:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7540C8 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7540C8 | 1.00 | 6.32 | 3.32 | 6.32 |
| #FFFFFF | 6.32 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.32 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.32 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0060CC
Deuteranopia (green-blind)
#005EC5
Tritanopia (blue-blind)
#60617F
Achromatopsia (no color)
#606060
Design tokens & code
CSS
--color: #7540c8; /* rgb */ color: rgb(117, 64, 200); /* oklch */ color: oklch(51.1% 0.200 296.5);
Tailwind
colors: {
custom: {
50: '#a379da',
500: '#7540c8',
950: '#000000',
},
}SCSS
$custom: #7540c8; $custom-light: #a379da; $custom-dark: #000000;
JSON
{
"hex": "#7540c8",
"rgb": {
"r": 117,
"g": 64,
"b": 200
},
"hsl": {
"h": 263.382,
"s": 55.285,
"l": 51.765
},
"oklch": {
"l": 0.51052,
"c": 0.1995,
"h": 296.5
},
"luminance": 0.11619
}Semantic roles & 50–950 ramp
primary
#7540C8
secondary
#B8D094
accent
#DF49A4
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83