#7948B8#7948B8
#7948B8 is a mid, vivid violet. Relative luminance 0.122; OKLCH L 51.4% C 0.171 H 300.7°. Best body text is #FFFFFF at 6.12:1 contrast (WCAG AA passes).
Color values
| HEX | #7948B8 |
|---|---|
| RGB | rgb(121, 72, 184) |
| HSL | hsl(266, 44%, 50%) |
| HSV | hsv(266, 61%, 72%) |
| CMYK | cmyk(34.2%, 60.9%, 0%, 27.8%) |
| CIE-LAB | lab(41.47, 43.88, -51.73) |
| CIE-LCH | lch(41.47, 67.84, 310.30°) |
| OKLab | oklab(51.42% 0.0871 -0.1468) |
| OKLCH | oklch(51.42% 0.171 300.7) |
| XYZ | xyz(18.8522, 12.1603, 46.6921) |
| Luminance | 0.1216 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple
#7851A9
ΔE00 3.74
Bluey Purple
#6241C7
ΔE00 5.34
Darkorchid
#9932CC
ΔE00 6.61
Purply
#983FB2
ΔE00 6.71
Light Indigo
#6D5ACF
ΔE00 7.00
Slate Blue
#6A5ACD
ΔE00 7.16
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7948B8 #87B848
analogous
#484FB8 #7948B8 #B148B8
triadic
#7948B8 #B87948 #48B879
tetradic
#7948B8 #B8484F #87B848 #48B8B1
square
#7948B8 #B8484F #87B848 #48B8B1
split-complementary
#7948B8 #B8B148 #4FB848
monochromatic
#3F2560 #5C368C #7948B8 #9974C9 #BAA0DA
Accessibility & contrast
On white
6.12
#7948B8 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.43
#7948B8 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7948B8
6.12:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7948B8 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7948B8 | 1.00 | 6.12 | 3.43 | 6.12 |
| #FFFFFF | 6.12 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.43 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.12 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0061BC
Deuteranopia (green-blind)
#2361B6
Tritanopia (blue-blind)
#6C6079
Achromatopsia (no color)
#626262
Design tokens & code
CSS
--color: #7948b8; /* rgb */ color: rgb(121, 72, 184); /* oklch */ color: oklch(51.4% 0.171 300.7);
Tailwind
colors: {
custom: {
50: '#a47dce',
500: '#7948b8',
950: '#000000',
},
}SCSS
$custom: #7948b8; $custom-light: #a47dce; $custom-dark: #000000;
JSON
{
"hex": "#7948b8",
"rgb": {
"r": 121,
"g": 72,
"b": 184
},
"hsl": {
"h": 266.25,
"s": 44.094,
"l": 50.196
},
"oklch": {
"l": 0.51421,
"c": 0.17066,
"h": 300.7
},
"luminance": 0.1216
}Semantic roles & 50–950 ramp
primary
#7948B8
secondary
#B1C795
accent
#D4549C
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100A14
muted
#7F7C82