#7948C1#7948C1
#7948C1 is a mid, vivid violet. Relative luminance 0.126; OKLCH L 52.1% C 0.181 H 298.5°. Best body text is #FFFFFF at 5.98:1 contrast (WCAG AA passes).
Color values
| HEX | #7948C1 |
|---|---|
| RGB | rgb(121, 72, 193) |
| HSL | hsl(264, 49%, 52%) |
| HSV | hsv(264, 63%, 76%) |
| CMYK | cmyk(37.3%, 62.7%, 0%, 24.3%) |
| CIE-LAB | lab(42.08, 46.20, -56.02) |
| CIE-LCH | lch(42.08, 72.61, 309.51°) |
| OKLab | oklab(52.06% 0.0866 -0.1594) |
| OKLCH | oklch(52.06% 0.181 298.5) |
| XYZ | xyz(19.8258, 12.5497, 51.8195) |
| Luminance | 0.1255 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Bluey Purple
#6241C7
ΔE00 4.63
Royal Purple
#7851A9
ΔE00 4.87
Bluish Purple
#703BE7
ΔE00 5.87
Light Indigo
#6D5ACF
ΔE00 6.17
Blueviolet
#8A2BE2
ΔE00 6.28
Darkorchid
#9932CC
ΔE00 6.36
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7948C1 #90C148
analogous
#4853C1 #7948C1 #B648C1
triadic
#7948C1 #C17948 #48C179
tetradic
#7948C1 #C14853 #90C148 #48C1B6
square
#7948C1 #C14853 #90C148 #48C1B6
split-complementary
#7948C1 #C1B648 #53C148
monochromatic
#41246B #5C3498 #7948C1 #9A76D0 #BCA3E0
Accessibility & contrast
On white
5.98
#7948C1 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.51
#7948C1 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7948C1
5.98:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7948C1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7948C1 | 1.00 | 5.98 | 3.51 | 5.98 |
| #FFFFFF | 5.98 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.51 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.98 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0063C5
Deuteranopia (green-blind)
#0E62BE
Tritanopia (blue-blind)
#68637E
Achromatopsia (no color)
#636363
Design tokens & code
CSS
--color: #7948c1; /* rgb */ color: rgb(121, 72, 193); /* oklch */ color: oklch(52.1% 0.181 298.5);
Tailwind
colors: {
custom: {
50: '#a57dd4',
500: '#7948c1',
950: '#000000',
},
}SCSS
$custom: #7948c1; $custom-light: #a57dd4; $custom-dark: #000000;
JSON
{
"hex": "#7948c1",
"rgb": {
"r": 121,
"g": 72,
"b": 193
},
"hsl": {
"h": 264.298,
"s": 49.388,
"l": 51.961
},
"oklch": {
"l": 0.52056,
"c": 0.18138,
"h": 298.5
},
"luminance": 0.1255
}Semantic roles & 50–950 ramp
primary
#7948C1
secondary
#B7CD98
accent
#D94FA1
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100A14
muted
#7F7C83