#7954CF#7954CF
#7954CF is a mid, vivid violet. Relative luminance 0.149; OKLCH L 54.9% C 0.182 H 293.4°. Best body text is #FFFFFF at 5.27:1 contrast (WCAG AA passes).
Color values
| HEX | #7954CF |
|---|---|
| RGB | rgb(121, 84, 207) |
| HSL | hsl(258, 56%, 57%) |
| HSV | hsv(258, 59%, 81%) |
| CMYK | cmyk(41.5%, 59.4%, 0%, 18.8%) |
| CIE-LAB | lab(45.51, 43.32, -58.57) |
| CIE-LCH | lch(45.51, 72.85, 306.49°) |
| OKLab | oklab(54.86% 0.0721 -0.1669) |
| OKLCH | oklch(54.86% 0.182 293.4) |
| XYZ | xyz(22.3149, 14.9100, 60.7216) |
| Luminance | 0.1491 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Indigo
#6D5ACF
ΔE00 2.95
Slate Blue
#6A5ACD
ΔE00 3.43
Purpley
#8756E4
ΔE00 3.90
Iris
#6258C4
ΔE00 4.78
Dark Periwinkle
#665FD1
ΔE00 5.13
Bluish Purple
#703BE7
ΔE00 6.38
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7954CF #AACF54
analogous
#546DCF #7954CF #B754CF
triadic
#7954CF #CF7954 #54CF79
tetradic
#7954CF #CF546D #AACF54 #54CFB7
square
#7954CF #CF546D #AACF54 #54CFB7
split-complementary
#7954CF #CFB754 #6DCF54
monochromatic
#412584 #5932B3 #7954CF #9E84DC #C4B4EA
Accessibility & contrast
On white
5.27
#7954CF on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.98
#7954CF on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7954CF
5.27:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7954CF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7954CF | 1.00 | 5.27 | 3.98 | 5.27 |
| #FFFFFF | 5.27 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.98 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.27 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#006DD3
Deuteranopia (green-blind)
#0E6ACC
Tritanopia (blue-blind)
#626F89
Achromatopsia (no color)
#6C6C6C
Design tokens & code
CSS
--color: #7954cf; /* rgb */ color: rgb(121, 84, 207); /* oklch */ color: oklch(54.9% 0.182 293.4);
Tailwind
colors: {
custom: {
50: '#a586de',
500: '#7954cf',
950: '#000000',
},
}SCSS
$custom: #7954cf; $custom-light: #a586de; $custom-dark: #000000;
JSON
{
"hex": "#7954cf",
"rgb": {
"r": 121,
"g": 84,
"b": 207
},
"hsl": {
"h": 258.049,
"s": 56.164,
"l": 57.059
},
"oklch": {
"l": 0.5486,
"c": 0.18176,
"h": 293.4
},
"luminance": 0.14911
}Semantic roles & 50–950 ramp
primary
#7954CF
secondary
#C9D8A6
accent
#DF48B2
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83