#7854C8#7854C8
#7854C8 is a mid, vivid violet. Relative luminance 0.145; OKLCH L 54.3% C 0.173 H 294.2°. Best body text is #FFFFFF at 5.38:1 contrast (WCAG AA passes).
Color values
| HEX | #7854C8 |
|---|---|
| RGB | rgb(120, 84, 200) |
| HSL | hsl(259, 51%, 56%) |
| HSV | hsv(259, 58%, 78%) |
| CMYK | cmyk(40%, 58%, 0%, 21.6%) |
| CIE-LAB | lab(44.95, 41.19, -55.45) |
| CIE-LCH | lch(44.95, 69.08, 306.60°) |
| OKLab | oklab(54.28% 0.0709 -0.1577) |
| OKLCH | oklch(54.28% 0.173 294.2) |
| XYZ | xyz(21.3386, 14.5033, 56.3075) |
| Luminance | 0.1450 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Indigo
#6D5ACF
ΔE00 3.17
Slate Blue
#6A5ACD
ΔE00 3.53
Iris
#6258C4
ΔE00 4.55
Purpley
#8756E4
ΔE00 4.81
Dark Periwinkle
#665FD1
ΔE00 5.35
Royal Purple
#7851A9
ΔE00 5.45
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7854C8 #A4C854
analogous
#546AC8 #7854C8 #B254C8
triadic
#7854C8 #C87854 #54C878
tetradic
#7854C8 #C8546A #A4C854 #54C8B2
square
#7854C8 #C8546A #A4C854 #54C8B2
split-complementary
#7854C8 #C8B254 #6AC854
monochromatic
#41277A #5A36A9 #7854C8 #9D82D7 #C1B1E6
Accessibility & contrast
On white
5.38
#7854C8 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.90
#7854C8 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7854C8
5.38:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7854C8 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7854C8 | 1.00 | 5.38 | 3.90 | 5.38 |
| #FFFFFF | 5.38 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.90 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.38 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0C6CCC
Deuteranopia (green-blind)
#1F68C5
Tritanopia (blue-blind)
#636D86
Achromatopsia (no color)
#6A6A6A
Design tokens & code
CSS
--color: #7854c8; /* rgb */ color: rgb(120, 84, 200); /* oklch */ color: oklch(54.3% 0.173 294.2);
Tailwind
colors: {
custom: {
50: '#a485d9',
500: '#7854c8',
950: '#000000',
},
}SCSS
$custom: #7854c8; $custom-light: #a485d9; $custom-dark: #000000;
JSON
{
"hex": "#7854c8",
"rgb": {
"r": 120,
"g": 84,
"b": 200
},
"hsl": {
"h": 258.621,
"s": 51.327,
"l": 55.686
},
"oklch": {
"l": 0.54275,
"c": 0.17294,
"h": 294.2
},
"luminance": 0.14504
}Semantic roles & 50–950 ramp
primary
#7854C8
secondary
#C5D4A4
accent
#DB4DAF
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83