#6740C5#6740C5
#6740C5 is a mid, vivid violet. Relative luminance 0.106; OKLCH L 49.4% C 0.195 H 291.0°. Best body text is #FFFFFF at 6.74:1 contrast (WCAG AA passes).
Color values
| HEX | #6740C5 |
|---|---|
| RGB | rgb(103, 64, 197) |
| HSL | hsl(258, 53%, 51%) |
| HSV | hsv(258, 68%, 77%) |
| CMYK | cmyk(47.7%, 67.5%, 0%, 22.7%) |
| CIE-LAB | lab(38.87, 47.97, -63.65) |
| CIE-LCH | lch(38.87, 79.70, 307.00°) |
| OKLab | oklab(49.39% 0.0699 -0.1824) |
| OKLCH | oklch(49.39% 0.195 291) |
| XYZ | xyz(17.5021, 10.5809, 53.9326) |
| Luminance | 0.1058 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Bluey Purple
#6241C7
ΔE00 0.94
Blue With A Hint Of Purple
#533CC6
ΔE00 3.24
Blurple
#5539CC
ΔE00 3.26
Burple
#6832E3
ΔE00 4.34
Ocean Blue
#4F42B5
ΔE00 4.57
Bluish Purple
#703BE7
ΔE00 4.62
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#6740C5 #9EC540
analogous
#405BC5 #6740C5 #A940C5
triadic
#6740C5 #C56740 #40C567
tetradic
#6740C5 #C5405B #9EC540 #40C5A9
square
#6740C5 #C5405B #9EC540 #40C5A9
split-complementary
#6740C5 #C5A940 #5BC540
monochromatic
#36206A #4E2F99 #6740C5 #8C6FD3 #B29EE2
Accessibility & contrast
On white
6.74
#6740C5 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.12
#6740C5 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #6740C5
6.74:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##6740C5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##6740C5 | 1.00 | 6.74 | 3.12 | 6.74 |
| #FFFFFF | 6.74 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.12 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.74 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005EC9
Deuteranopia (green-blind)
#0059C2
Tritanopia (blue-blind)
#49617D
Achromatopsia (no color)
#5B5B5B
Design tokens & code
CSS
--color: #6740c5; /* rgb */ color: rgb(103, 64, 197); /* oklch */ color: oklch(49.4% 0.195 291.0);
Tailwind
colors: {
custom: {
50: '#9a77d8',
500: '#6740c5',
950: '#000000',
},
}SCSS
$custom: #6740c5; $custom-light: #9a77d8; $custom-dark: #000000;
JSON
{
"hex": "#6740c5",
"rgb": {
"r": 103,
"g": 64,
"b": 197
},
"hsl": {
"h": 257.594,
"s": 53.414,
"l": 51.176
},
"oklch": {
"l": 0.49387,
"c": 0.19532,
"h": 291
},
"luminance": 0.10582
}Semantic roles & 50–950 ramp
primary
#6740C5
secondary
#BDCE93
accent
#DD4BB2
background
#FAF7FD
surface
#F3EDFA
border
#CDC8D3
text
#0F0915
muted
#7F7B83