#7F5ABA#7F5ABA
#7F5ABA is a mid, vivid violet. Relative luminance 0.154; OKLCH L 55.0% C 0.147 H 299.3°. Best body text is #FFFFFF at 5.15:1 contrast (WCAG AA passes).
Color values
| HEX | #7F5ABA |
|---|---|
| RGB | rgb(127, 90, 186) |
| HSL | hsl(263, 41%, 54%) |
| HSV | hsv(263, 52%, 73%) |
| CMYK | cmyk(31.7%, 51.6%, 0%, 27.1%) |
| CIE-LAB | lab(46.14, 35.73, -45.39) |
| CIE-LCH | lch(46.14, 57.77, 308.21°) |
| OKLab | oklab(55.04% 0.0719 -0.128) |
| OKLCH | oklch(55.04% 0.147 299.3) |
| XYZ | xyz(21.2694, 15.3694, 48.2909) |
| Luminance | 0.1537 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Deep Lavender
#8D5EB7
ΔE00 3.62
Royal Purple
#7851A9
ΔE00 3.88
Light Indigo
#6D5ACF
ΔE00 5.53
Slate Blue
#6A5ACD
ΔE00 5.80
Amethyst
#9B5FC0
ΔE00 6.22
Iris
#6258C4
ΔE00 6.53
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7F5ABA #95BA5A
analogous
#5A65BA #7F5ABA #AF5ABA
triadic
#7F5ABA #BA7F5A #5ABA7F
tetradic
#7F5ABA #BA5A65 #95BA5A #5ABAAF
square
#7F5ABA #BA5A65 #95BA5A #5ABAAF
split-complementary
#7F5ABA #BAAF5A #65BA5A
monochromatic
#462D6C #613F97 #7F5ABA #A085CC #C2B0DE
Accessibility & contrast
On white
5.15
#7F5ABA on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.07
#7F5ABA on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7F5ABA
5.15:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7F5ABA | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7F5ABA | 1.00 | 5.15 | 4.07 | 5.15 |
| #FFFFFF | 5.15 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.07 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.15 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#386DBD
Deuteranopia (green-blind)
#426DB8
Tritanopia (blue-blind)
#736C81
Achromatopsia (no color)
#6D6D6D
Design tokens & code
CSS
--color: #7f5aba; /* rgb */ color: rgb(127, 90, 186); /* oklch */ color: oklch(55.0% 0.147 299.3);
Tailwind
colors: {
custom: {
50: '#a789cf',
500: '#7f5aba',
950: '#000000',
},
}SCSS
$custom: #7f5aba; $custom-light: #a789cf; $custom-dark: #000000;
JSON
{
"hex": "#7f5aba",
"rgb": {
"r": 127,
"g": 90,
"b": 186
},
"hsl": {
"h": 263.125,
"s": 41.026,
"l": 54.118
},
"oklch": {
"l": 0.55044,
"c": 0.14683,
"h": 299.3
},
"luminance": 0.1537
}Semantic roles & 50–950 ramp
primary
#7F5ABA
secondary
#BDCCA3
accent
#D157A2
background
#FAF8FC
surface
#F4F0F9
border
#CECBD2
text
#100C14
muted
#7F7D82