#7938C6#7938C6
#7938C6 is a mid, highly saturated violet. Relative luminance 0.110; OKLCH L 50.3% C 0.207 H 299.8°. Best body text is #FFFFFF at 6.57:1 contrast (WCAG AA passes).
Color values
| HEX | #7938C6 |
|---|---|
| RGB | rgb(121, 56, 198) |
| HSL | hsl(267, 56%, 50%) |
| HSV | hsv(267, 72%, 78%) |
| CMYK | cmyk(38.9%, 71.7%, 0%, 22.4%) |
| CIE-LAB | lab(39.53, 55.49, -63.06) |
| CIE-LCH | lch(39.53, 84.00, 311.35°) |
| OKLab | oklab(50.35% 0.1029 -0.18) |
| OKLCH | oklch(50.35% 0.207 299.8) |
| XYZ | xyz(19.4898, 10.9703, 54.5058) |
| Luminance | 0.1097 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Bluey Purple
#6241C7
ΔE00 4.31
Blueviolet
#8A2BE2
ΔE00 4.33
Burple
#6832E3
ΔE00 4.74
Bluish Purple
#703BE7
ΔE00 4.84
Darkorchid
#9932CC
ΔE00 5.57
Darkviolet
#9400D3
ΔE00 5.63
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7938C6 #85C638
analogous
#383EC6 #7938C6 #C038C6
triadic
#7938C6 #C67938 #38C679
tetradic
#7938C6 #C6383E #85C638 #38C6C0
square
#7938C6 #C6383E #85C638 #38C6C0
split-complementary
#7938C6 #C6C038 #3EC638
monochromatic
#3F1D67 #5C2B96 #7938C6 #9967D4 #B997E2
Accessibility & contrast
On white
6.57
#7938C6 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.19
#7938C6 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7938C6
6.57:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7938C6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7938C6 | 1.00 | 6.57 | 3.19 | 6.57 |
| #FFFFFF | 6.57 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.19 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.57 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005DCA
Deuteranopia (green-blind)
#005CC3
Tritanopia (blue-blind)
#675B7C
Achromatopsia (no color)
#5D5D5D
Design tokens & code
CSS
--color: #7938c6; /* rgb */ color: rgb(121, 56, 198); /* oklch */ color: oklch(50.3% 0.207 299.8);
Tailwind
colors: {
custom: {
50: '#a674d8',
500: '#7938c6',
950: '#000000',
},
}SCSS
$custom: #7938c6; $custom-light: #a674d8; $custom-dark: #000000;
JSON
{
"hex": "#7938c6",
"rgb": {
"r": 121,
"g": 56,
"b": 198
},
"hsl": {
"h": 267.465,
"s": 55.906,
"l": 49.804
},
"oklch": {
"l": 0.50345,
"c": 0.20733,
"h": 299.8
},
"luminance": 0.10971
}Semantic roles & 50–950 ramp
primary
#7938C6
secondary
#B0CD8D
accent
#DF499A
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100915
muted
#7F7B83