#7C40AF#7C40AF
#7C40AF is a mid, vivid violet. Relative luminance 0.110; OKLCH L 50.0% C 0.172 H 306.0°. Best body text is #FFFFFF at 6.54:1 contrast (WCAG AA passes).
Color values
| HEX | #7C40AF |
|---|---|
| RGB | rgb(124, 64, 175) |
| HSL | hsl(272, 46%, 47%) |
| HSV | hsv(272, 63%, 69%) |
| CMYK | cmyk(29.1%, 63.4%, 0%, 31.4%) |
| CIE-LAB | lab(39.66, 46.59, -49.32) |
| CIE-LCH | lch(39.66, 67.85, 313.37°) |
| OKLab | oklab(50% 0.1013 -0.1396) |
| OKLCH | oklch(50% 0.172 306) |
| XYZ | xyz(17.8818, 11.0472, 41.7394) |
| Luminance | 0.1105 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple
#7851A9
ΔE00 4.70
Purply
#983FB2
ΔE00 5.57
Rebeccapurple
#663399
ΔE00 5.78
Darkorchid
#9932CC
ΔE00 6.13
Bluey Purple
#6241C7
ΔE00 6.60
Purple (survey)
#7E1E9C
ΔE00 6.85
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7C40AF #73AF40
analogous
#4440AF #7C40AF #AF40AB
triadic
#7C40AF #AF7C40 #40AF7C
tetradic
#7C40AF #AF4440 #73AF40 #40ABAF
square
#7C40AF #AF4440 #73AF40 #40ABAF
split-complementary
#7C40AF #ABAF40 #40AF44
monochromatic
#3C1F55 #5C3082 #7C40AF #9A65C7 #B792D7
Accessibility & contrast
On white
6.54
#7C40AF on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.21
#7C40AF on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7C40AF
6.54:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7C40AF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7C40AF | 1.00 | 6.54 | 3.21 | 6.54 |
| #FFFFFF | 6.54 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.21 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.54 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005CB2
Deuteranopia (green-blind)
#275EAC
Tritanopia (blue-blind)
#735771
Achromatopsia (no color)
#5D5D5D
Design tokens & code
CSS
--color: #7c40af; /* rgb */ color: rgb(124, 64, 175); /* oklch */ color: oklch(50.0% 0.172 306.0);
Tailwind
colors: {
custom: {
50: '#a678c7',
500: '#7c40af',
950: '#000000',
},
}SCSS
$custom: #7c40af; $custom-light: #a678c7; $custom-dark: #000000;
JSON
{
"hex": "#7c40af",
"rgb": {
"r": 124,
"g": 64,
"b": 175
},
"hsl": {
"h": 272.432,
"s": 46.444,
"l": 46.863
},
"oklch": {
"l": 0.49997,
"c": 0.17242,
"h": 306
},
"luminance": 0.11047
}Semantic roles & 50–950 ramp
primary
#7C40AF
secondary
#A3C388
accent
#D6528F
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100913
muted
#7F7B82