#7948C2#7948C2
#7948C2 is a mid, vivid violet. Relative luminance 0.126; OKLCH L 52.1% C 0.183 H 298.3°. Best body text is #FFFFFF at 5.97:1 contrast (WCAG AA passes).
Color values
| HEX | #7948C2 |
|---|---|
| RGB | rgb(121, 72, 194) |
| HSL | hsl(264, 50%, 52%) |
| HSV | hsv(264, 63%, 76%) |
| CMYK | cmyk(37.6%, 62.9%, 0%, 23.9%) |
| CIE-LAB | lab(42.15, 46.46, -56.49) |
| CIE-LCH | lch(42.15, 73.14, 309.43°) |
| OKLab | oklab(52.13% 0.0865 -0.1607) |
| OKLCH | oklch(52.13% 0.183 298.3) |
| XYZ | xyz(19.9377, 12.5945, 52.4090) |
| Luminance | 0.1260 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Bluey Purple
#6241C7
ΔE00 4.58
Royal Purple
#7851A9
ΔE00 5.00
Bluish Purple
#703BE7
ΔE00 5.73
Light Indigo
#6D5ACF
ΔE00 6.09
Blueviolet
#8A2BE2
ΔE00 6.19
Slate Blue
#6A5ACD
ΔE00 6.30
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7948C2 #91C248
analogous
#4854C2 #7948C2 #B648C2
triadic
#7948C2 #C27948 #48C279
tetradic
#7948C2 #C24854 #91C248 #48C2B6
square
#7948C2 #C24854 #91C248 #48C2B6
split-complementary
#7948C2 #C2B648 #54C248
monochromatic
#41246C #5C339A #7948C2 #9B76D1 #BCA4E1
Accessibility & contrast
On white
5.97
#7948C2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.52
#7948C2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7948C2
5.97:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7948C2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7948C2 | 1.00 | 5.97 | 3.52 | 5.97 |
| #FFFFFF | 5.97 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.52 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.97 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0064C6
Deuteranopia (green-blind)
#0A62BF
Tritanopia (blue-blind)
#68637E
Achromatopsia (no color)
#636363
Design tokens & code
CSS
--color: #7948c2; /* rgb */ color: rgb(121, 72, 194); /* oklch */ color: oklch(52.1% 0.183 298.3);
Tailwind
colors: {
custom: {
50: '#a57ed5',
500: '#7948c2',
950: '#000000',
},
}SCSS
$custom: #7948c2; $custom-light: #a57ed5; $custom-dark: #000000;
JSON
{
"hex": "#7948c2",
"rgb": {
"r": 121,
"g": 72,
"b": 194
},
"hsl": {
"h": 264.098,
"s": 50,
"l": 52.157
},
"oklch": {
"l": 0.52127,
"c": 0.18256,
"h": 298.3
},
"luminance": 0.12595
}Semantic roles & 50–950 ramp
primary
#7948C2
secondary
#B8CE98
accent
#DA4EA2
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100A14
muted
#7F7C83