#7F40BB#7F40BB
#7F40BB is a mid, vivid violet. Relative luminance 0.118; OKLCH L 51.2% C 0.187 H 304.0°. Best body text is #FFFFFF at 6.26:1 contrast (WCAG AA passes).
Color values
| HEX | #7F40BB |
|---|---|
| RGB | rgb(127, 64, 187) |
| HSL | hsl(271, 49%, 49%) |
| HSV | hsv(271, 66%, 73%) |
| CMYK | cmyk(32.1%, 65.8%, 0%, 26.7%) |
| CIE-LAB | lab(40.84, 50.15, -54.47) |
| CIE-LCH | lch(40.84, 74.04, 312.64°) |
| OKLab | oklab(51.19% 0.1044 -0.1546) |
| OKLCH | oklch(51.19% 0.187 304) |
| XYZ | xyz(19.5534, 11.7667, 48.2452) |
| Luminance | 0.1177 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 4.90
Royal Purple
#7851A9
ΔE00 5.40
Purply
#983FB2
ΔE00 5.65
Blueviolet
#8A2BE2
ΔE00 5.79
Bluey Purple
#6241C7
ΔE00 5.79
Darkviolet
#9400D3
ΔE00 6.69
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7F40BB #7CBB40
analogous
#4240BB #7F40BB #BB40BA
triadic
#7F40BB #BB7F40 #40BB7F
tetradic
#7F40BB #BB4240 #7CBB40 #40BABB
square
#7F40BB #BB4240 #7CBB40 #40BABB
split-complementary
#7F40BB #BABB40 #40BB42
monochromatic
#412160 #60308D #7F40BB #9D6CCD #BC99DC
Accessibility & contrast
On white
6.26
#7F40BB on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.35
#7F40BB on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7F40BB
6.26:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7F40BB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7F40BB | 1.00 | 6.26 | 3.35 | 6.26 |
| #FFFFFF | 6.26 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.35 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.26 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005FBF
Deuteranopia (green-blind)
#1760B8
Tritanopia (blue-blind)
#745B78
Achromatopsia (no color)
#606060
Design tokens & code
CSS
--color: #7f40bb; /* rgb */ color: rgb(127, 64, 187); /* oklch */ color: oklch(51.2% 0.187 304.0);
Tailwind
colors: {
custom: {
50: '#a979d0',
500: '#7f40bb',
950: '#000000',
},
}SCSS
$custom: #7f40bb; $custom-light: #a979d0; $custom-dark: #000000;
JSON
{
"hex": "#7f40bb",
"rgb": {
"r": 127,
"g": 64,
"b": 187
},
"hsl": {
"h": 270.732,
"s": 49.004,
"l": 49.216
},
"oklch": {
"l": 0.51191,
"c": 0.18654,
"h": 304
},
"luminance": 0.11767
}Semantic roles & 50–950 ramp
primary
#7F40BB
secondary
#ABC88F
accent
#D94F92
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100914
muted
#7F7B82