#7F51BF#7F51BF
#7F51BF is a mid, vivid violet. Relative luminance 0.142; OKLCH L 53.9% C 0.167 H 300.1°. Best body text is #FFFFFF at 5.48:1 contrast (WCAG AA passes).
Color values
| HEX | #7F51BF |
|---|---|
| RGB | rgb(127, 81, 191) |
| HSL | hsl(265, 46%, 53%) |
| HSV | hsv(265, 58%, 75%) |
| CMYK | cmyk(33.5%, 57.6%, 0%, 25.1%) |
| CIE-LAB | lab(44.46, 42.13, -50.98) |
| CIE-LCH | lch(44.46, 66.14, 309.57°) |
| OKLab | oklab(53.9% 0.0838 -0.1444) |
| OKLCH | oklch(53.9% 0.167 300.1) |
| XYZ | xyz(21.0965, 14.1583, 50.9015) |
| Luminance | 0.1416 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple
#7851A9
ΔE00 3.83
Deep Lavender
#8D5EB7
ΔE00 5.42
Light Indigo
#6D5ACF
ΔE00 5.50
Slate Blue
#6A5ACD
ΔE00 5.82
Purpley
#8756E4
ΔE00 5.91
Iris
#6258C4
ΔE00 6.52
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7F51BF #91BF51
analogous
#515ABF #7F51BF #B651BF
triadic
#7F51BF #BF7F51 #51BF7F
tetradic
#7F51BF #BF515A #91BF51 #51BFB6
square
#7F51BF #BF515A #91BF51 #51BFB6
split-complementary
#7F51BF #BFB651 #5ABF51
monochromatic
#45286D #61399A #7F51BF #A07ECF #C1AAE0
Accessibility & contrast
On white
5.48
#7F51BF on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.83
#7F51BF on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7F51BF
5.48:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7F51BF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7F51BF | 1.00 | 5.48 | 3.83 | 5.48 |
| #FFFFFF | 5.48 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.83 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.48 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1D69C3
Deuteranopia (green-blind)
#3068BC
Tritanopia (blue-blind)
#726780
Achromatopsia (no color)
#696969
Design tokens & code
CSS
--color: #7f51bf; /* rgb */ color: rgb(127, 81, 191); /* oklch */ color: oklch(53.9% 0.167 300.1);
Tailwind
colors: {
custom: {
50: '#a884d3',
500: '#7f51bf',
950: '#000000',
},
}SCSS
$custom: #7f51bf; $custom-light: #a884d3; $custom-dark: #000000;
JSON
{
"hex": "#7f51bf",
"rgb": {
"r": 127,
"g": 81,
"b": 191
},
"hsl": {
"h": 265.091,
"s": 46.218,
"l": 53.333
},
"oklch": {
"l": 0.53902,
"c": 0.16695,
"h": 300.1
},
"luminance": 0.14158
}Semantic roles & 50–950 ramp
primary
#7F51BF
secondary
#BACE9E
accent
#D6529F
background
#FAF8FD
surface
#F4EFFA
border
#CECAD3
text
#100B14
muted
#7F7C83