#7C40CD#7C40CD
#7C40CD is a mid, highly saturated violet. Relative luminance 0.124; OKLCH L 52.2% C 0.206 H 298.4°. Best body text is #FFFFFF at 6.05:1 contrast (WCAG AA passes).
Color values
| HEX | #7C40CD |
|---|---|
| RGB | rgb(124, 64, 205) |
| HSL | hsl(266, 59%, 53%) |
| HSV | hsv(266, 69%, 80%) |
| CMYK | cmyk(39.5%, 68.8%, 0%, 19.6%) |
| CIE-LAB | lab(41.78, 53.99, -63.44) |
| CIE-LCH | lch(41.78, 83.31, 310.40°) |
| OKLab | oklab(52.19% 0.098 -0.1811) |
| OKLCH | oklch(52.19% 0.206 298.4) |
| XYZ | xyz(21.1622, 12.3594, 59.0164) |
| Luminance | 0.1236 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Blueviolet
#8A2BE2
ΔE00 4.02
Bluish Purple
#703BE7
ΔE00 4.03
Bluey Purple
#6241C7
ΔE00 4.44
Burple
#6832E3
ΔE00 4.95
Darkorchid
#9932CC
ΔE00 5.29
Purpley Blue
#5F34E7
ΔE00 5.89
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7C40CD #91CD40
analogous
#404ACD #7C40CD #C240CD
triadic
#7C40CD #CD7C40 #40CD7C
tetradic
#7C40CD #CD404A #91CD40 #40CDC2
square
#7C40CD #CD404A #91CD40 #40CDC2
split-complementary
#7C40CD #CDC240 #4ACD40
monochromatic
#431E74 #5F2BA5 #7C40CD #9D71DA #BFA1E6
Accessibility & contrast
On white
6.05
#7C40CD on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.47
#7C40CD on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7C40CD
6.05:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7C40CD | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7C40CD | 1.00 | 6.05 | 3.47 | 6.05 |
| #FFFFFF | 6.05 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.47 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.05 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0063D1
Deuteranopia (green-blind)
#0061CA
Tritanopia (blue-blind)
#696282
Achromatopsia (no color)
#636363
Design tokens & code
CSS
--color: #7c40cd; /* rgb */ color: rgb(124, 64, 205); /* oklch */ color: oklch(52.2% 0.206 298.4);
Tailwind
colors: {
custom: {
50: '#a879dd',
500: '#7c40cd',
950: '#000000',
},
}SCSS
$custom: #7c40cd; $custom-light: #a879dd; $custom-dark: #000000;
JSON
{
"hex": "#7c40cd",
"rgb": {
"r": 124,
"g": 64,
"b": 205
},
"hsl": {
"h": 265.532,
"s": 58.506,
"l": 52.745
},
"oklch": {
"l": 0.52193,
"c": 0.20589,
"h": 298.4
},
"luminance": 0.1236
}Semantic roles & 50–950 ramp
primary
#7C40CD
secondary
#B9D396
accent
#E2469F
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83