#6740E2#6740E2
#6740E2 is a mid, highly saturated violet. Relative luminance 0.120; OKLCH L 51.9% C 0.229 H 286.4°. Best body text is #FFFFFF at 6.16:1 contrast (WCAG AA passes).
Color values
| HEX | #6740E2 |
|---|---|
| RGB | rgb(103, 64, 226) |
| HSL | hsl(254, 74%, 57%) |
| HSV | hsv(254, 72%, 89%) |
| CMYK | cmyk(54.4%, 71.7%, 0%, 11.4%) |
| CIE-LAB | lab(41.28, 56.09, -76.40) |
| CIE-LCH | lch(41.28, 94.78, 306.29°) |
| OKLab | oklab(51.85% 0.0646 -0.2198) |
| OKLCH | oklch(51.85% 0.229 286.4) |
| XYZ | xyz(21.1503, 12.0402, 73.1463) |
| Luminance | 0.1204 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Bluish Purple
#703BE7
ΔE00 1.61
Purpleish Blue
#6140EF
ΔE00 1.70
Purpley Blue
#5F34E7
ΔE00 2.57
Burple
#6832E3
ΔE00 2.64
Bluey Purple
#6241C7
ΔE00 3.65
Blurple
#5539CC
ΔE00 4.46
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#6740E2 #BBE240
analogous
#406AE2 #6740E2 #B840E2
triadic
#6740E2 #E26740 #40E267
tetradic
#6740E2 #E2406A #BBE240 #40E2B8
square
#6740E2 #E2406A #BBE240 #40E2B8
split-complementary
#6740E2 #E2B840 #6AE240
monochromatic
#341692 #471EC7 #6740E2 #9175EA #BCAAF2
Accessibility & contrast
On white
6.16
#6740E2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.41
#6740E2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #6740E2
6.16:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##6740E2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##6740E2 | 1.00 | 6.16 | 3.41 | 6.16 |
| #FFFFFF | 6.16 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.41 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.16 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0065E7
Deuteranopia (green-blind)
#005DDF
Tritanopia (blue-blind)
#316C8D
Achromatopsia (no color)
#616161
Design tokens & code
CSS
--color: #6740e2; /* rgb */ color: rgb(103, 64, 226); /* oklch */ color: oklch(51.9% 0.229 286.4);
Tailwind
colors: {
custom: {
50: '#9e78ec',
500: '#6740e2',
950: '#000000',
},
}SCSS
$custom: #6740e2; $custom-light: #9e78ec; $custom-dark: #000000;
JSON
{
"hex": "#6740e2",
"rgb": {
"r": 103,
"g": 64,
"b": 226
},
"hsl": {
"h": 254.444,
"s": 73.636,
"l": 56.863
},
"oklch": {
"l": 0.51853,
"c": 0.22909,
"h": 286.4
},
"luminance": 0.12041
}Semantic roles & 50–950 ramp
primary
#6740E2
secondary
#D0E09E
accent
#F038C4
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#100916
muted
#7F7B84