#7C54CB#7C54CB
#7C54CB is a mid, vivid violet. Relative luminance 0.149; OKLCH L 54.9% C 0.177 H 295.5°. Best body text is #FFFFFF at 5.27:1 contrast (WCAG AA passes).
Color values
| HEX | #7C54CB |
|---|---|
| RGB | rgb(124, 84, 203) |
| HSL | hsl(260, 53%, 56%) |
| HSV | hsv(260, 59%, 80%) |
| CMYK | cmyk(38.9%, 58.6%, 0%, 20.4%) |
| CIE-LAB | lab(45.55, 42.90, -56.19) |
| CIE-LCH | lch(45.55, 70.70, 307.36°) |
| OKLab | oklab(54.87% 0.0761 -0.1598) |
| OKLCH | oklch(54.87% 0.177 295.5) |
| XYZ | xyz(22.2592, 14.9371, 58.1987) |
| Luminance | 0.1494 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Indigo
#6D5ACF
ΔE00 3.59
Slate Blue
#6A5ACD
ΔE00 4.05
Purpley
#8756E4
ΔE00 4.11
Iris
#6258C4
ΔE00 5.28
Dark Periwinkle
#665FD1
ΔE00 5.75
Royal Purple
#7851A9
ΔE00 5.78
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7C54CB #A3CB54
analogous
#5468CB #7C54CB #B854CB
triadic
#7C54CB #CB7C54 #54CB7C
tetradic
#7C54CB #CB5468 #A3CB54 #54CBB8
square
#7C54CB #CB5468 #A3CB54 #54CBB8
split-complementary
#7C54CB #CBB854 #68CB54
monochromatic
#44267E #5D35AD #7C54CB #A083D9 #C4B2E8
Accessibility & contrast
On white
5.27
#7C54CB on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.99
#7C54CB on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7C54CB
5.27:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7C54CB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7C54CB | 1.00 | 5.27 | 3.99 | 5.27 |
| #FFFFFF | 5.27 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.99 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.27 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#056DCF
Deuteranopia (green-blind)
#206AC8
Tritanopia (blue-blind)
#686E87
Achromatopsia (no color)
#6C6C6C
Design tokens & code
CSS
--color: #7c54cb; /* rgb */ color: rgb(124, 84, 203); /* oklch */ color: oklch(54.9% 0.177 295.5);
Tailwind
colors: {
custom: {
50: '#a786db',
500: '#7c54cb',
950: '#000000',
},
}SCSS
$custom: #7c54cb; $custom-light: #a786db; $custom-dark: #000000;
JSON
{
"hex": "#7c54cb",
"rgb": {
"r": 124,
"g": 84,
"b": 203
},
"hsl": {
"h": 260.168,
"s": 53.363,
"l": 56.275
},
"oklch": {
"l": 0.54873,
"c": 0.17699,
"h": 295.5
},
"luminance": 0.14938
}Semantic roles & 50–950 ramp
primary
#7C54CB
secondary
#C5D6A5
accent
#DD4BAC
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83