#7F56BF#7F56BF
#7F56BF is a mid, vivid violet. Relative luminance 0.149; OKLCH L 54.7% C 0.159 H 299.1°. Best body text is #FFFFFF at 5.27:1 contrast (WCAG AA passes).
Color values
| HEX | #7F56BF |
|---|---|
| RGB | rgb(127, 86, 191) |
| HSL | hsl(263, 45%, 54%) |
| HSV | hsv(263, 55%, 75%) |
| CMYK | cmyk(33.5%, 55%, 0%, 25.1%) |
| CIE-LAB | lab(45.54, 39.32, -49.25) |
| CIE-LCH | lch(45.54, 63.03, 308.60°) |
| OKLab | oklab(54.7% 0.0775 -0.1393) |
| OKLCH | oklch(54.7% 0.159 299.1) |
| XYZ | xyz(21.4819, 14.9290, 51.0299) |
| Luminance | 0.1493 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple
#7851A9
ΔE00 4.02
Deep Lavender
#8D5EB7
ΔE00 4.56
Light Indigo
#6D5ACF
ΔE00 5.00
Slate Blue
#6A5ACD
ΔE00 5.33
Purpley
#8756E4
ΔE00 5.67
Iris
#6258C4
ΔE00 6.18
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7F56BF #96BF56
analogous
#5662BF #7F56BF #B456BF
triadic
#7F56BF #BF7F56 #56BF7F
tetradic
#7F56BF #BF5662 #96BF56 #56BFB4
square
#7F56BF #BF5662 #96BF56 #56BFB4
split-complementary
#7F56BF #BFB456 #62BF56
monochromatic
#462A70 #613B9D #7F56BF #A182D0 #C2AFE1
Accessibility & contrast
On white
5.27
#7F56BF on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.99
#7F56BF on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7F56BF
5.27:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7F56BF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7F56BF | 1.00 | 5.27 | 3.99 | 5.27 |
| #FFFFFF | 5.27 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.99 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.27 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2A6CC3
Deuteranopia (green-blind)
#386BBD
Tritanopia (blue-blind)
#716B82
Achromatopsia (no color)
#6C6C6C
Design tokens & code
CSS
--color: #7f56bf; /* rgb */ color: rgb(127, 86, 191); /* oklch */ color: oklch(54.7% 0.159 299.1);
Tailwind
colors: {
custom: {
50: '#a887d3',
500: '#7f56bf',
950: '#000000',
},
}SCSS
$custom: #7f56bf; $custom-light: #a887d3; $custom-dark: #000000;
JSON
{
"hex": "#7f56bf",
"rgb": {
"r": 127,
"g": 86,
"b": 191
},
"hsl": {
"h": 263.429,
"s": 45.064,
"l": 54.314
},
"oklch": {
"l": 0.54695,
"c": 0.15941,
"h": 299.1
},
"luminance": 0.14929
}Semantic roles & 50–950 ramp
primary
#7F56BF
secondary
#BDCFA2
accent
#D553A2
background
#FAF8FD
surface
#F4EFFA
border
#CECAD3
text
#100B14
muted
#7F7C83