#7F54DC#7F54DC
#7F54DC is a mid, vivid violet. Relative luminance 0.160; OKLCH L 56.4% C 0.198 H 293.6°. Best body text is #FFFFFF at 5.00:1 contrast (WCAG AA passes).
Color values
| HEX | #7F54DC |
|---|---|
| RGB | rgb(127, 84, 220) |
| HSL | hsl(259, 66%, 60%) |
| HSV | hsv(259, 62%, 86%) |
| CMYK | cmyk(42.3%, 61.8%, 0%, 13.7%) |
| CIE-LAB | lab(47.00, 48.11, -63.56) |
| CIE-LCH | lch(47.00, 79.72, 307.12°) |
| OKLab | oklab(56.37% 0.0793 -0.1814) |
| OKLCH | oklch(56.37% 0.198 293.6) |
| XYZ | xyz(24.8375, 16.0193, 69.4797) |
| Luminance | 0.1602 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 1.92
Light Indigo
#6D5ACF
ΔE00 4.01
Slate Blue
#6A5ACD
ΔE00 4.60
Dark Periwinkle
#665FD1
ΔE00 5.82
Bluish Purple
#703BE7
ΔE00 6.25
Iris
#6258C4
ΔE00 6.32
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7F54DC #B1DC54
analogous
#546DDC #7F54DC #C354DC
triadic
#7F54DC #DC7F54 #54DC7F
tetradic
#7F54DC #DC546D #B1DC54 #54DCC3
square
#7F54DC #DC546D #B1DC54 #54DCC3
split-complementary
#7F54DC #DCC354 #6DDC54
monochromatic
#451F97 #5C29CA #7F54DC #A587E6 #CBBAF1
Accessibility & contrast
On white
5.00
#7F54DC on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.20
#7F54DC on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7F54DC
5.00:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7F54DC | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7F54DC | 1.00 | 5.00 | 4.20 | 5.00 |
| #FFFFFF | 5.00 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.20 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.00 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0071E0
Deuteranopia (green-blind)
#006DD9
Tritanopia (blue-blind)
#667390
Achromatopsia (no color)
#6F6F6F
Design tokens & code
CSS
--color: #7f54dc; /* rgb */ color: rgb(127, 84, 220); /* oklch */ color: oklch(56.4% 0.198 293.6);
Tailwind
colors: {
custom: {
50: '#aa86e8',
500: '#7f54dc',
950: '#000000',
},
}SCSS
$custom: #7f54dc; $custom-light: #aa86e8; $custom-dark: #000000;
JSON
{
"hex": "#7f54dc",
"rgb": {
"r": 127,
"g": 84,
"b": 220
},
"hsl": {
"h": 258.971,
"s": 66.019,
"l": 59.608
},
"oklch": {
"l": 0.56368,
"c": 0.19795,
"h": 293.6
},
"luminance": 0.1602
}Semantic roles & 50–950 ramp
primary
#7F54DC
secondary
#D0E0AC
accent
#E93FB3
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B16
muted
#807C84