#7938B9#7938B9
#7938B9 is a mid, vivid violet. Relative luminance 0.104; OKLCH L 49.3% C 0.193 H 302.9°. Best body text is #FFFFFF at 6.82:1 contrast (WCAG AA passes).
Color values
| HEX | #7938B9 |
|---|---|
| RGB | rgb(121, 56, 185) |
| HSL | hsl(270, 54%, 47%) |
| HSV | hsv(270, 70%, 73%) |
| CMYK | cmyk(34.6%, 69.7%, 0%, 27.5%) |
| CIE-LAB | lab(38.54, 52.32, -57.05) |
| CIE-LCH | lch(38.54, 77.41, 312.52°) |
| OKLab | oklab(49.33% 0.1051 -0.1623) |
| OKLCH | oklch(49.33% 0.193 302.9) |
| XYZ | xyz(18.0542, 10.3961, 46.9450) |
| Luminance | 0.1040 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Bluey Purple
#6241C7
ΔE00 5.21
Rebeccapurple
#663399
ΔE00 5.71
Darkorchid
#9932CC
ΔE00 5.86
Blueviolet
#8A2BE2
ΔE00 5.87
Darkviolet
#9400D3
ΔE00 6.09
Burple
#6832E3
ΔE00 6.47
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7938B9 #78B938
analogous
#3938B9 #7938B9 #B938B8
triadic
#7938B9 #B97938 #38B979
tetradic
#7938B9 #B93938 #78B938 #38B8B9
square
#7938B9 #B93938 #78B938 #38B8B9
split-complementary
#7938B9 #B8B938 #38B939
monochromatic
#3C1C5B #5A2A8A #7938B9 #985FCF #B68EDD
Accessibility & contrast
On white
6.82
#7938B9 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.08
#7938B9 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7938B9
6.82:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7938B9 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7938B9 | 1.00 | 6.82 | 3.08 | 6.82 |
| #FFFFFF | 6.82 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.08 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.82 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005ABD
Deuteranopia (green-blind)
#005AB6
Tritanopia (blue-blind)
#6C5674
Achromatopsia (no color)
#5B5B5B
Design tokens & code
CSS
--color: #7938b9; /* rgb */ color: rgb(121, 56, 185); /* oklch */ color: oklch(49.3% 0.193 302.9);
Tailwind
colors: {
custom: {
50: '#a574cf',
500: '#7938b9',
950: '#000000',
},
}SCSS
$custom: #7938b9; $custom-light: #a574cf; $custom-dark: #000000;
JSON
{
"hex": "#7938b9",
"rgb": {
"r": 121,
"g": 56,
"b": 185
},
"hsl": {
"h": 270.233,
"s": 53.527,
"l": 47.255
},
"oklch": {
"l": 0.49334,
"c": 0.1934,
"h": 302.9
},
"luminance": 0.10396
}Semantic roles & 50–950 ramp
primary
#7938B9
secondary
#A6C885
accent
#DD4B93
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100814
muted
#7F7B82