#7F54DA#7F54DA
#7F54DA is a mid, vivid violet. Relative luminance 0.159; OKLCH L 56.2% C 0.196 H 294.0°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).
Color values
| HEX | #7F54DA |
|---|---|
| RGB | rgb(127, 84, 218) |
| HSL | hsl(259, 64%, 59%) |
| HSV | hsv(259, 61%, 85%) |
| CMYK | cmyk(41.7%, 61.5%, 0%, 14.5%) |
| CIE-LAB | lab(46.86, 47.58, -62.65) |
| CIE-LCH | lch(46.86, 78.67, 307.21°) |
| OKLab | oklab(56.22% 0.0794 -0.1787) |
| OKLCH | oklch(56.22% 0.196 294) |
| XYZ | xyz(24.5742, 15.9140, 68.0930) |
| Luminance | 0.1592 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 2.10
Light Indigo
#6D5ACF
ΔE00 3.94
Slate Blue
#6A5ACD
ΔE00 4.52
Dark Periwinkle
#665FD1
ΔE00 5.81
Iris
#6258C4
ΔE00 6.21
Bluish Purple
#703BE7
ΔE00 6.29
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7F54DA #AFDA54
analogous
#546CDA #7F54DA #C254DA
triadic
#7F54DA #DA7F54 #54DA7F
tetradic
#7F54DA #DA546C #AFDA54 #54DAC2
square
#7F54DA #DA546C #AFDA54 #54DAC2
split-complementary
#7F54DA #DAC254 #6CDA54
monochromatic
#452094 #5D2BC6 #7F54DA #A586E5 #CAB9F0
Accessibility & contrast
On white
5.02
#7F54DA on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.18
#7F54DA on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7F54DA
5.02:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7F54DA | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7F54DA | 1.00 | 5.02 | 4.18 | 5.02 |
| #FFFFFF | 5.02 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.18 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.02 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0070DE
Deuteranopia (green-blind)
#006DD7
Tritanopia (blue-blind)
#67728F
Achromatopsia (no color)
#6F6F6F
Design tokens & code
CSS
--color: #7f54da; /* rgb */ color: rgb(127, 84, 218); /* oklch */ color: oklch(56.2% 0.196 294.0);
Tailwind
colors: {
custom: {
50: '#aa86e6',
500: '#7f54da',
950: '#000000',
},
}SCSS
$custom: #7f54da; $custom-light: #aa86e6; $custom-dark: #000000;
JSON
{
"hex": "#7f54da",
"rgb": {
"r": 127,
"g": 84,
"b": 218
},
"hsl": {
"h": 259.254,
"s": 64.423,
"l": 59.216
},
"oklch": {
"l": 0.56224,
"c": 0.19554,
"h": 294
},
"luminance": 0.15915
}Semantic roles & 50–950 ramp
primary
#7F54DA
secondary
#CEDFAB
accent
#E740B2
background
#FAF8FE
surface
#F5EFFC
border
#CFCAD5
text
#110B16
muted
#807C84