#6840C2#6840C2
#6840C2 is a mid, vivid violet. Relative luminance 0.105; OKLCH L 49.2% C 0.192 H 292.0°. Best body text is #FFFFFF at 6.77:1 contrast (WCAG AA passes).
Color values
| HEX | #6840C2 |
|---|---|
| RGB | rgb(104, 64, 194) |
| HSL | hsl(258, 52%, 51%) |
| HSV | hsv(258, 67%, 76%) |
| CMYK | cmyk(46.4%, 67%, 0%, 23.9%) |
| CIE-LAB | lab(38.73, 47.32, -62.11) |
| CIE-LCH | lch(38.73, 78.08, 307.30°) |
| OKLab | oklab(49.24% 0.0718 -0.1778) |
| OKLCH | oklch(49.24% 0.192 292) |
| XYZ | xyz(17.2772, 10.5043, 52.1457) |
| Luminance | 0.1051 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Bluey Purple
#6241C7
ΔE00 1.32
Blue With A Hint Of Purple
#533CC6
ΔE00 3.47
Blurple
#5539CC
ΔE00 3.56
Ocean Blue
#4F42B5
ΔE00 4.58
Burple
#6832E3
ΔE00 4.70
Bluish Purple
#703BE7
ΔE00 4.98
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#6840C2 #9AC240
analogous
#4059C2 #6840C2 #A940C2
triadic
#6840C2 #C26840 #40C268
tetradic
#6840C2 #C24059 #9AC240 #40C2A9
square
#6840C2 #C24059 #9AC240 #40C2A9
split-complementary
#6840C2 #C2A940 #59C240
monochromatic
#362167 #4F3095 #6840C2 #8D6ED1 #B19DE0
Accessibility & contrast
On white
6.77
#6840C2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.10
#6840C2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #6840C2
6.77:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##6840C2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##6840C2 | 1.00 | 6.77 | 3.10 | 6.77 |
| #FFFFFF | 6.77 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.10 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.77 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005DC6
Deuteranopia (green-blind)
#0059BF
Tritanopia (blue-blind)
#4D607C
Achromatopsia (no color)
#5B5B5B
Design tokens & code
CSS
--color: #6840c2; /* rgb */ color: rgb(104, 64, 194); /* oklch */ color: oklch(49.2% 0.192 292.0);
Tailwind
colors: {
custom: {
50: '#9a77d5',
500: '#6840c2',
950: '#000000',
},
}SCSS
$custom: #6840c2; $custom-light: #9a77d5; $custom-dark: #000000;
JSON
{
"hex": "#6840c2",
"rgb": {
"r": 104,
"g": 64,
"b": 194
},
"hsl": {
"h": 258.462,
"s": 51.587,
"l": 50.588
},
"oklch": {
"l": 0.49242,
"c": 0.19175,
"h": 292
},
"luminance": 0.10505
}Semantic roles & 50–950 ramp
primary
#6840C2
secondary
#BACC92
accent
#DB4DAF
background
#FAF7FD
surface
#F3EDFA
border
#CDC8D3
text
#0F0914
muted
#7F7B83