#7A54DC#7A54DC
#7A54DC is a mid, vivid violet. Relative luminance 0.156; OKLCH L 55.9% C 0.198 H 291.6°. Best body text is #FFFFFF at 5.09:1 contrast (WCAG AA passes).
Color values
| HEX | #7A54DC |
|---|---|
| RGB | rgb(122, 84, 220) |
| HSL | hsl(257, 66%, 60%) |
| HSV | hsv(257, 62%, 86%) |
| CMYK | cmyk(44.5%, 61.8%, 0%, 13.7%) |
| CIE-LAB | lab(46.50, 47.10, -64.39) |
| CIE-LCH | lch(46.50, 79.78, 306.18°) |
| OKLab | oklab(55.89% 0.0727 -0.184) |
| OKLCH | oklch(55.89% 0.198 291.6) |
| XYZ | xyz(24.1110, 15.6447, 69.4456) |
| Luminance | 0.1565 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 2.64
Light Indigo
#6D5ACF
ΔE00 3.34
Slate Blue
#6A5ACD
ΔE00 3.90
Dark Periwinkle
#665FD1
ΔE00 5.15
Iris
#6258C4
ΔE00 5.59
Bluish Purple
#703BE7
ΔE00 5.90
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7A54DC #B6DC54
analogous
#5472DC #7A54DC #BE54DC
triadic
#7A54DC #DC7A54 #54DC7A
tetradic
#7A54DC #DC5472 #B6DC54 #54DCBE
square
#7A54DC #DC5472 #B6DC54 #54DCBE
split-complementary
#7A54DC #DCBE54 #72DC54
monochromatic
#401F97 #5629CA #7A54DC #A287E6 #C9BAF1
Accessibility & contrast
On white
5.09
#7A54DC on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.13
#7A54DC on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7A54DC
5.09:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7A54DC | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7A54DC | 1.00 | 5.09 | 4.13 | 5.09 |
| #FFFFFF | 5.09 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.13 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.09 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0070E0
Deuteranopia (green-blind)
#006BD9
Tritanopia (blue-blind)
#5D7390
Achromatopsia (no color)
#6E6E6E
Design tokens & code
CSS
--color: #7a54dc; /* rgb */ color: rgb(122, 84, 220); /* oklch */ color: oklch(55.9% 0.198 291.6);
Tailwind
colors: {
custom: {
50: '#a786e8',
500: '#7a54dc',
950: '#000000',
},
}SCSS
$custom: #7a54dc; $custom-light: #a786e8; $custom-dark: #000000;
JSON
{
"hex": "#7a54dc",
"rgb": {
"r": 122,
"g": 84,
"b": 220
},
"hsl": {
"h": 256.765,
"s": 66.019,
"l": 59.608
},
"oklch": {
"l": 0.55892,
"c": 0.1978,
"h": 291.6
},
"luminance": 0.15646
}Semantic roles & 50–950 ramp
primary
#7A54DC
secondary
#D2E0AC
accent
#E93FB9
background
#FAF8FE
surface
#F4EFFD
border
#CECAD5
text
#100B16
muted
#7F7C84