#7F54DB#7F54DB
#7F54DB is a mid, vivid violet. Relative luminance 0.160; OKLCH L 56.3% C 0.197 H 293.8°. Best body text is #FFFFFF at 5.01:1 contrast (WCAG AA passes).
Color values
| HEX | #7F54DB |
|---|---|
| RGB | rgb(127, 84, 219) |
| HSL | hsl(259, 65%, 59%) |
| HSV | hsv(259, 62%, 86%) |
| CMYK | cmyk(42%, 61.6%, 0%, 14.1%) |
| CIE-LAB | lab(46.93, 47.84, -63.11) |
| CIE-LCH | lch(46.93, 79.19, 307.17°) |
| OKLab | oklab(56.3% 0.0794 -0.18) |
| OKLCH | oklch(56.3% 0.197 293.8) |
| XYZ | xyz(24.7055, 15.9665, 68.7843) |
| Luminance | 0.1597 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 2.01
Light Indigo
#6D5ACF
ΔE00 3.97
Slate Blue
#6A5ACD
ΔE00 4.56
Dark Periwinkle
#665FD1
ΔE00 5.82
Iris
#6258C4
ΔE00 6.26
Bluish Purple
#703BE7
ΔE00 6.27
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7F54DB #B0DB54
analogous
#546DDB #7F54DB #C254DB
triadic
#7F54DB #DB7F54 #54DB7F
tetradic
#7F54DB #DB546D #B0DB54 #54DBC2
square
#7F54DB #DB546D #B0DB54 #54DBC2
split-complementary
#7F54DB #DBC254 #6DDB54
monochromatic
#451F95 #5C2AC8 #7F54DB #A587E6 #CBB9F0
Accessibility & contrast
On white
5.01
#7F54DB on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.19
#7F54DB on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7F54DB
5.01:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7F54DB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7F54DB | 1.00 | 5.01 | 4.19 | 5.01 |
| #FFFFFF | 5.01 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.19 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.01 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0071DF
Deuteranopia (green-blind)
#006DD8
Tritanopia (blue-blind)
#667390
Achromatopsia (no color)
#6F6F6F
Design tokens & code
CSS
--color: #7f54db; /* rgb */ color: rgb(127, 84, 219); /* oklch */ color: oklch(56.3% 0.197 293.8);
Tailwind
colors: {
custom: {
50: '#aa86e7',
500: '#7f54db',
950: '#000000',
},
}SCSS
$custom: #7f54db; $custom-light: #aa86e7; $custom-dark: #000000;
JSON
{
"hex": "#7f54db",
"rgb": {
"r": 127,
"g": 84,
"b": 219
},
"hsl": {
"h": 259.111,
"s": 65.217,
"l": 59.412
},
"oklch": {
"l": 0.56296,
"c": 0.19675,
"h": 293.8
},
"luminance": 0.15967
}Semantic roles & 50–950 ramp
primary
#7F54DB
secondary
#CFE0AB
accent
#E840B2
background
#FAF8FE
surface
#F5EFFD
border
#CFCAD5
text
#110B16
muted
#807C84