#6938C6#6938C6
#6938C6 is a mid, highly saturated violet. Relative luminance 0.099; OKLCH L 48.6% C 0.206 H 292.9°. Best body text is #FFFFFF at 7.04:1 contrast (WCAG AA passes).
Color values
| HEX | #6938C6 |
|---|---|
| RGB | rgb(105, 56, 198) |
| HSL | hsl(261, 56%, 50%) |
| HSV | hsv(261, 72%, 78%) |
| CMYK | cmyk(47%, 71.7%, 0%, 22.4%) |
| CIE-LAB | lab(37.68, 52.70, -66.16) |
| CIE-LCH | lch(37.68, 84.59, 308.54°) |
| OKLab | oklab(48.61% 0.0801 -0.1897) |
| OKLCH | oklch(48.61% 0.206 292.9) |
| XYZ | xyz(17.4301, 9.9083, 54.4092) |
| Luminance | 0.0991 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Bluey Purple
#6241C7
ΔE00 2.34
Blurple
#5539CC
ΔE00 3.15
Blue With A Hint Of Purple
#533CC6
ΔE00 3.52
Burple
#6832E3
ΔE00 3.70
Purpley Blue
#5F34E7
ΔE00 4.35
Purple Blue
#5D21D0
ΔE00 4.38
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#6938C6 #95C638
analogous
#384EC6 #6938C6 #B038C6
triadic
#6938C6 #C66938 #38C669
tetradic
#6938C6 #C6384E #95C638 #38C6B0
square
#6938C6 #C6384E #95C638 #38C6B0
split-complementary
#6938C6 #C6B038 #4EC638
monochromatic
#361D67 #502B96 #6938C6 #8D67D4 #B197E2
Accessibility & contrast
On white
7.04
#6938C6 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.98
#6938C6 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #6938C6
7.04:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##6938C6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##6938C6 | 1.00 | 7.04 | 2.98 | 7.04 |
| #FFFFFF | 7.04 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.98 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.04 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005ACA
Deuteranopia (green-blind)
#0056C3
Tritanopia (blue-blind)
#4D5D7B
Achromatopsia (no color)
#595959
Design tokens & code
CSS
--color: #6938c6; /* rgb */ color: rgb(105, 56, 198); /* oklch */ color: oklch(48.6% 0.206 292.9);
Tailwind
colors: {
custom: {
50: '#9c73d8',
500: '#6938c6',
950: '#000000',
},
}SCSS
$custom: #6938c6; $custom-light: #9c73d8; $custom-dark: #000000;
JSON
{
"hex": "#6938c6",
"rgb": {
"r": 105,
"g": 56,
"b": 198
},
"hsl": {
"h": 260.704,
"s": 55.906,
"l": 49.804
},
"oklch": {
"l": 0.48614,
"c": 0.20587,
"h": 292.9
},
"luminance": 0.09909
}Semantic roles & 50–950 ramp
primary
#6938C6
secondary
#B7CD8D
accent
#DF49AB
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#0F0815
muted
#7F7B83