#7954CB#7954CB
#7954CB is a mid, vivid violet. Relative luminance 0.147; OKLCH L 54.6% C 0.177 H 294.1°. Best body text is #FFFFFF at 5.33:1 contrast (WCAG AA passes).
Color values
| HEX | #7954CB |
|---|---|
| RGB | rgb(121, 84, 203) |
| HSL | hsl(259, 53%, 56%) |
| HSV | hsv(259, 59%, 80%) |
| CMYK | cmyk(40.4%, 58.6%, 0%, 20.4%) |
| CIE-LAB | lab(45.24, 42.23, -56.70) |
| CIE-LCH | lch(45.24, 70.70, 306.68°) |
| OKLab | oklab(54.58% 0.0722 -0.1614) |
| OKLCH | oklch(54.58% 0.177 294.1) |
| XYZ | xyz(21.8321, 14.7169, 58.1787) |
| Luminance | 0.1472 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Indigo
#6D5ACF
ΔE00 3.12
Slate Blue
#6A5ACD
ΔE00 3.54
Purpley
#8756E4
ΔE00 4.35
Iris
#6258C4
ΔE00 4.72
Dark Periwinkle
#665FD1
ΔE00 5.31
Royal Purple
#7851A9
ΔE00 5.87
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7954CB #A6CB54
analogous
#546BCB #7954CB #B454CB
triadic
#7954CB #CB7954 #54CB79
tetradic
#7954CB #CB546B #A6CB54 #54CBB4
square
#7954CB #CB546B #A6CB54 #54CBB4
split-complementary
#7954CB #CBB454 #6BCB54
monochromatic
#42267E #5A35AD #7954CB #9E83D9 #C3B2E8
Accessibility & contrast
On white
5.33
#7954CB on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.94
#7954CB on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7954CB
5.33:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7954CB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7954CB | 1.00 | 5.33 | 3.94 | 5.33 |
| #FFFFFF | 5.33 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.94 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.33 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#006CCF
Deuteranopia (green-blind)
#1A69C8
Tritanopia (blue-blind)
#646E87
Achromatopsia (no color)
#6B6B6B
Design tokens & code
CSS
--color: #7954cb; /* rgb */ color: rgb(121, 84, 203); /* oklch */ color: oklch(54.6% 0.177 294.1);
Tailwind
colors: {
custom: {
50: '#a585dc',
500: '#7954cb',
950: '#000000',
},
}SCSS
$custom: #7954cb; $custom-light: #a585dc; $custom-dark: #000000;
JSON
{
"hex": "#7954cb",
"rgb": {
"r": 121,
"g": 84,
"b": 203
},
"hsl": {
"h": 258.655,
"s": 53.363,
"l": 56.275
},
"oklch": {
"l": 0.5458,
"c": 0.17677,
"h": 294.1
},
"luminance": 0.14717
}Semantic roles & 50–950 ramp
primary
#7954CB
secondary
#C7D6A5
accent
#DD4BAF
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83